Skip to main content

High quality image generation by Microsoft. Reverse engineered API.

Project description

BingImageCreator

High quality image generation by Microsoft. Reverse engineered API.

pip3 install --upgrade BingImageCreator

 $ python3 -m BingImageCreator -h
usage: BingImageCreator.py [-h] -U U --prompt PROMPT [--output-dir OUTPUT_DIR]

options:
  -h, --help            show this help message and exit
  -U U                  Auth cookie from browser
  --prompt PROMPT       Prompt to generate images for
  --asyncio             Use async to sync png
  --output-dir OUTPUT_DIR
                        Output directory

Developer Documentation

Getting authentication

Chromium based browsers (Edge, Opera, Vivaldi, Brave)

  • Go to https://bing.com/.
  • F12 to open console
  • In the JavaScript console, type cookieStore.get("_U").then(result => console.log(result.value)) and press enter
  • Copy the output. This is used in --U or auth_cookie.

Firefox

  • Go to https://bing.com/.
  • F12 to open developer tools
  • navigate to the storage tab
  • expand the cookies tab
  • click on the https://bing.com cookie
  • copy the value from the _U

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

BingImageCreator-plus-0.5.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

BingImageCreator_plus-0.5.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file BingImageCreator-plus-0.5.1.tar.gz.

File metadata

  • Download URL: BingImageCreator-plus-0.5.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for BingImageCreator-plus-0.5.1.tar.gz
Algorithm Hash digest
SHA256 65206d2c97677c563909ed521b8871f2fbba788ed1b33b4e7d21197606f43e06
MD5 6ff7a61377c369c7547d0632af932c56
BLAKE2b-256 297615d3c1e5cc41297ef11a3c66718dfbcdb7d3fd4f8372a3d05cbf811f67d9

See more details on using hashes here.

File details

Details for the file BingImageCreator_plus-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for BingImageCreator_plus-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7a462ef503a547a53e4fd6a91e9f041877d96f42467db146df7ad301d689100
MD5 31c7e3ea81696947785df649ff3dd6c5
BLAKE2b-256 8a0e421cd265a62910e53396911b991ada27ab26b3d98746550d139627ea4306

See more details on using hashes here.

Supported by

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