High quality image generation by Microsoft Designer. Reverse engineered API.
Project description
Microsoft Designer API
Installation
bash 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
--session_id SESSION_ID
Session ID
--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)
Getting Started
- Create a new user account or login Microsoft Designer
- 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 and session id from the request headers
- Run the script with the copied values
$ python3 -m MicrosoftDesigner --user_id <user_id> --auth_token <auth_token> --session_id <session_id> --prompt <prompt> --save_path <save_path> --file_name <file_name>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MicrosoftDesigner-0.0.3.tar.gz
(16.6 kB
view details)
File details
Details for the file MicrosoftDesigner-0.0.3.tar.gz.
File metadata
- Download URL: MicrosoftDesigner-0.0.3.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
889a91b22f34c948a05613221fbc8ea2a705838e9d2389fcaa44834555bb02e2
|
|
| MD5 |
958ae662ecbc78aed3c10c891ec83128
|
|
| BLAKE2b-256 |
d1cca0e510d58f41221412b6d0126fc3c52756ea259d3355b54566c7fb396c85
|