Skip to main content

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

Release files for BingImageCreator-plus 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BingImageCreator-plus 0.5.2
File Size Uploaded
BingImageCreator-plus-0.5.2.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for BingImageCreator-plus 0.5.2
File Interpreter ABI Platform
BingImageCreator_plus-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / BingImageCreator-plus-0.5.2.tar.gz

Download URL BingImageCreator-plus-0.5.2.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d9d312af7cf33e4c57df1861b918e2f4f6bf2ab62711f92e397a2528f7f4a9f4
BLAKE2b-256 checksum
How to use checksums
2425da24eae3670b55ce94b92078cf844499f343177f0a71809c7fffc461e49b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / BingImageCreator_plus-0.5.2-py3-none-any.whl

Download URL BingImageCreator_plus-0.5.2-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd8937d2db4e280ea46a18623a37b7c2e3cce6ddfdf653d7dc20c40e9770cb51
BLAKE2b-256 checksum
How to use checksums
674d772f50514d5334577900ba9af620325732cc4079aca98545cbc59d7c0ca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 release files

0.5.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page