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
--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 (Authorization: value) 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> --prompt <prompt>
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.6.tar.gz
(16.4 kB
view details)
File details
Details for the file MicrosoftDesigner-0.0.6.tar.gz
.
File metadata
- Download URL: MicrosoftDesigner-0.0.6.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0368020be1d98699a690c1abc360d20d4ec1d33c97a2198bfb37162b1c9fab57 |
|
MD5 | 4595883c0528f8a53c12de17ab053e39 |
|
BLAKE2b-256 | 401c9bdf9c1c1c1b658a2c0b3c8caaa7fed9d20bacf8a17de989e71081ec63d3 |