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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: BingImageCreator-plus-0.5.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d9d312af7cf33e4c57df1861b918e2f4f6bf2ab62711f92e397a2528f7f4a9f4
MD5 08bddeb79d889ed05e4b79386688e022
BLAKE2b-256 2425da24eae3670b55ce94b92078cf844499f343177f0a71809c7fffc461e49b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for BingImageCreator_plus-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd8937d2db4e280ea46a18623a37b7c2e3cce6ddfdf653d7dc20c40e9770cb51
MD5 4f1f03b3ae2cec3aa315f163b38dcf6b
BLAKE2b-256 674d772f50514d5334577900ba9af620325732cc4079aca98545cbc59d7c0ca5

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