High quality image generation by Microsoft Designer. Reverse engineered API.
Project description
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
--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
- Note: auth_token will expire after 24 hours
$ 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>
Python Example
from Msdesigner.create_images import create_image
create_image(user_id, auth_token, prompt)
# Image wiil be saved in images folder
# Async function
from Msdesigner.create_images import async_create_image
async_create_image(user_id, auth_token, prompt)
Project details
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.5.tar.gz
(16.5 kB
view details)
File details
Details for the file MicrosoftDesigner-0.0.5.tar.gz
.
File metadata
- Download URL: MicrosoftDesigner-0.0.5.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48859ea16646d5dba09378d51caec8743aa43907e82ac0dbd5450e1a577cb9d2 |
|
MD5 | 351f9974a3704da818f5be7a3cece46e |
|
BLAKE2b-256 | b96192c840ca31d6c44d41d30fecc354be5b350c1bebacfed2daf96b9e0071a4 |