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

Uploaded Source

Built Distribution

BingImageCreator-0.0.9-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for BingImageCreator-0.0.9.tar.gz
Algorithm Hash digest
SHA256 d88f6000a68eb2a55f59b014a89d3509ad1466e673abd9cc3935b1b0d0646ce8
MD5 e1df41bd4ab57585f037da5b76fcb6a7
BLAKE2b-256 08a53a595b8d7709d6b937690e6b2d015046b63451a1d4eb1fd841167865fb19

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for BingImageCreator-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 76865b786833e555b7c4a3ab1795321d4745c84c784faec2fb37f9548dde0bb1
MD5 fbb37c80b5abaa3c36a359a08c68ec32
BLAKE2b-256 8552ebf63f4871536a4811a43c620298cf68c22b2cb3a3b03abea95be74c8153

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