# Microsoft Designer API
### Installation
```$ pip3 install MicrosoftDesigner```
### Usage
```
$ python3 -m MicrosoftDesigner -h
options:
-h, --help show this help message and exit
--user_id USER_ID User ID
--auth_token AUTH_TOKEN
Auth Token
--prompt PROMPT Prompt
--save_path FILE_PATH
File Path to save the output (optional)
--file_name FILE_NAME
File Name to save the output (optional)
--resolution RESOLUTION
Resolution of the image (optional)
(default: 1024x1024, available: 1024x1792, 1792x1024)
```
## Getting Started
- Create a new user account or login [Microsoft Designer](https://designer.microsoft.com/)
- Open the developer tools and go to the network tab
- Create a new image using random text
- Find the request with post method and copy the request headers
- Copy the user id, auth token (Authorization: value) from the request headers
- Run the script with the copied values
- Note: **auth_token will expire after 24 hours**
- Note: **Do not pass resolution other than 1024x1024, 1024x1792, 1792x1024**
```bash
$ python3 -m MicrosoftDesigner --user_id <user_id> --auth_token <auth_token> --prompt <prompt> --resolution <resolution> --save_path <save_path>
```
### **Python Example**
```python
from msdesigner.gen_images import create_image
create_image(user_id, auth_token, prompt, resolution)
# Image wiil be saved in images folder
```
Raw data
{
"_id": null,
"home_page": "https://github.com/imnotdev25/Msdesigner-api",
"name": "MicrosoftDesigner",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": null,
"author": "imnotdev25",
"author_email": "85677268+imnotdev25@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/6d/07/c29b19550009c054181d2bcb189838701e618464f422597ea2686210dca1/microsoftdesigner-0.0.9.tar.gz",
"platform": null,
"description": "# Microsoft Designer API\n\n### Installation\n\n```$ pip3 install MicrosoftDesigner```\n\n### Usage\n\n``` \n$ python3 -m MicrosoftDesigner -h\n\noptions:\n -h, --help show this help message and exit\n --user_id USER_ID User ID\n --auth_token AUTH_TOKEN\n Auth Token\n --prompt PROMPT Prompt\n --save_path FILE_PATH\n File Path to save the output (optional)\n --file_name FILE_NAME\n File Name to save the output (optional)\n --resolution RESOLUTION\n Resolution of the image (optional)\n (default: 1024x1024, available: 1024x1792, 1792x1024)\n\n```\n## Getting Started\n- Create a new user account or login [Microsoft Designer](https://designer.microsoft.com/)\n- Open the developer tools and go to the network tab\n- Create a new image using random text\n- Find the request with post method and copy the request headers\n- Copy the user id, auth token (Authorization: value) from the request headers\n- Run the script with the copied values\n- Note: **auth_token will expire after 24 hours**\n- Note: **Do not pass resolution other than 1024x1024, 1024x1792, 1792x1024**\n\n```bash\n$ python3 -m MicrosoftDesigner --user_id <user_id> --auth_token <auth_token> --prompt <prompt> --resolution <resolution> --save_path <save_path>\n\n```\n### **Python Example**\n\n```python\nfrom msdesigner.gen_images import create_image\ncreate_image(user_id, auth_token, prompt, resolution)\n\n# Image wiil be saved in images folder\n```\n\n",
"bugtrack_url": null,
"license": "GNU General Public License v3.0",
"summary": "High quality image generation by Microsoft Designer. Reverse engineered API.",
"version": "0.0.9",
"project_urls": {
"Homepage": "https://github.com/imnotdev25/Msdesigner-api",
"Issues": "https://github.com/imnotdev25/Msdesigner-api/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1888848f4d577c00ddd75c52f70d21e9b7b9c0d04cc1db325d2abf567f6ad2f8",
"md5": "97fbe3dd9f4d047e0871981f914f0acd",
"sha256": "ee4158045352cc718eb2a1d5d6f849470e4b5c41f4e9541fc10961c3fd4cb1b3"
},
"downloads": -1,
"filename": "microsoftdesigner-0.0.9-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "97fbe3dd9f4d047e0871981f914f0acd",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": "<4.0,>=3.10",
"size": 17640,
"upload_time": "2025-01-31T09:15:32",
"upload_time_iso_8601": "2025-01-31T09:15:32.299503Z",
"url": "https://files.pythonhosted.org/packages/18/88/848f4d577c00ddd75c52f70d21e9b7b9c0d04cc1db325d2abf567f6ad2f8/microsoftdesigner-0.0.9-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6d07c29b19550009c054181d2bcb189838701e618464f422597ea2686210dca1",
"md5": "30ec1f2b231503da5b51754c088940f6",
"sha256": "84c84a399012dee97902cb630b9c68f2ab196a57d3673ccca7cd0c4d702d9524"
},
"downloads": -1,
"filename": "microsoftdesigner-0.0.9.tar.gz",
"has_sig": false,
"md5_digest": "30ec1f2b231503da5b51754c088940f6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 26133,
"upload_time": "2025-01-31T09:15:33",
"upload_time_iso_8601": "2025-01-31T09:15:33.636660Z",
"url": "https://files.pythonhosted.org/packages/6d/07/c29b19550009c054181d2bcb189838701e618464f422597ea2686210dca1/microsoftdesigner-0.0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-31 09:15:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "imnotdev25",
"github_project": "Msdesigner-api",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "microsoftdesigner"
}