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 msdesigner.gen_images import create_img
create_img(user_id, auth_token, prompt, resolution)

# Image will 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.10.tar.gz (16.2 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.10-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for microsoftdesigner-0.0.10.tar.gz
Algorithm Hash digest
SHA256 df85390c39a2bd221c1d9e804c72f42ac90c53792cbf449fb5d568414a4c3f13
MD5 76721ee12d7d27b2d0b511323afd9448
BLAKE2b-256 9ac85d91b499c615418247b545b60296bbe7887f619a59968473dcabe5ed419f

See more details on using hashes here.

File details

Details for the file microsoftdesigner-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: microsoftdesigner-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.12 Linux/6.8.0-1018-oracle

File hashes

Hashes for microsoftdesigner-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f4cef4505a1cff4d53ef740d2c1f0479803f8886ee10faf33ed42977adb588cd
MD5 f83cd995ccf63d6435153c7267955f5e
BLAKE2b-256 ab448c390edafbf11fefecc698415ca709868e880884419da0e05101ff37110d

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