Skip to main content

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)
  --resolution RESOLUTION
                        Resolution of the image (optional)
                        (default: 1024x1024, available: 1024x1792, 1792x1024)

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
  • Note: Do not pass resolution other than 1024x1024, 1024x1792, 1792x1024
$ python3 -m MicrosoftDesigner --user_id <user_id> --auth_token <auth_token> --prompt <prompt> --resolution <resolution> --save_path <save_path>

Python Example


from ssdesigner.gen_images import create_image
create_image(user_id, auth_token, prompt, resolution)

# Image wiil be saved in images folder


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.7.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microsoftdesigner-0.0.7-py2.py3-none-any.whl (17.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file microsoftdesigner-0.0.7.tar.gz.

File metadata

  • Download URL: microsoftdesigner-0.0.7.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.12 Linux/6.8.0-1019-oracle

File hashes

Hashes for microsoftdesigner-0.0.7.tar.gz
Algorithm Hash digest
SHA256 51cc2619d7fde503370d8b8f09e006347d68a2a91dd3aef6269dc259a463fa40
MD5 ca972ab0c202a8acf5eb1e2c74080006
BLAKE2b-256 580f90e7e4e21617a8c50f4c6adf203c279ae7c5607b571440a67c568a7c8d2f

See more details on using hashes here.

File details

Details for the file microsoftdesigner-0.0.7-py2.py3-none-any.whl.

File metadata

  • Download URL: microsoftdesigner-0.0.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.12 Linux/6.8.0-1019-oracle

File hashes

Hashes for microsoftdesigner-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eb2c0304a8829bb3b4babadc01c852d9e32234fefeef62d1367daac1a8ad1dd3
MD5 078d6c1a1af4ec88c6c596c6636eed4c
BLAKE2b-256 e679921fdacd6d55f3e6c659f9e0dad8b0e34a6ee1004abac54e9bf498a0d53a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page