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

Uploaded Source

Built Distribution

BingImageCreator-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file BingImageCreator-0.1.0.tar.gz.

File metadata

  • Download URL: BingImageCreator-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for BingImageCreator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 938b7d161c458c2b359e1e57d5fcb69dc657fb86b7a0fce90fea58dfbe9dd95a
MD5 909b6c41704675edfe402e4171b2f21e
BLAKE2b-256 fa10d95c2dde3bdc14fcafd210db3bdf5029aa76457d1bdf22fce9b331eff7fb

See more details on using hashes here.

Provenance

File details

Details for the file BingImageCreator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for BingImageCreator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c77733be2a731c5949f6db8e749685c3db9cec1a3731caa4b088a933af9185d5
MD5 6dc4a5145a202e9973c03003f228fc3e
BLAKE2b-256 f0a63e11e48613d6ca9ac3be6ab8c3013a1f72d81e0494a912208bc397439c27

See more details on using hashes here.

Provenance

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