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

Uploaded Source

Built Distribution

BingImageCreator-0.1.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: BingImageCreator-0.1.1.1.tar.gz
  • Upload date:
  • Size: 5.7 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.1.1.tar.gz
Algorithm Hash digest
SHA256 8457f9f7f9dd39fdf89e625b7af471f4da321047f03281e2506db087222e405b
MD5 516bbd1696a1a7ff66706e2abc75ef00
BLAKE2b-256 beb0d49f8adfa5fdd749c3056976a7da078552cd456eb54022aeb6c3496db5dc

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for BingImageCreator-0.1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c69d2a520ffc45fac0ddd21065bf8547fcbfb08f25dc0d0116ec6e692a45d73e
MD5 3b382e0a60d228043157ed2be00c035d
BLAKE2b-256 db73c0363ed37cc88de4f2fba19882245fe328c29e2690692462e6fb18750a23

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