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

Uploaded Source

Built Distribution

BingImageCreator-0.1.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: BingImageCreator-0.1.2.tar.gz
  • Upload date:
  • Size: 6.0 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.2.tar.gz
Algorithm Hash digest
SHA256 b6330f592195f0608945203c7d48948724bda3581e47ab9969d9175b8ed8b815
MD5 fbbd5d70d93b807b9bdd2286b0918131
BLAKE2b-256 7af03d62f157709f1b0b3263b2961d90bd38e395dba14eba3ddb7ece95cf3ef6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for BingImageCreator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d2930ca7e51ef5933a476f8bcda264d080711ef1d3da9abefed1aea99890e251
MD5 0118d8df149d41e584c58f7e04ece86b
BLAKE2b-256 20dbfc4841fa51571278f8db7a0fb5c5a8851d588f2b734c1b2a0c7c13a6c9d2

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