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
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
orauth_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file BingImageCreator-0.4.0.tar.gz
.
File metadata
- Download URL: BingImageCreator-0.4.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b28a9597583686cf827a51f0dcfd6341fc435f0d069e70ec2a8e8ded8d0d7c8 |
|
MD5 | 8d956b782162764a3341da97e52ab1df |
|
BLAKE2b-256 | 9366563e4a0579d645e8a1eea26f92d46f2fd13be9eafcd66d4825407f9ec656 |
Provenance
File details
Details for the file BingImageCreator-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: BingImageCreator-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e57e18bc7dc6cced72266d9ff9eff3f6c26bb0a78665dad9feb5998e17b65e32 |
|
MD5 | 8eba9247a9e411939f1862cb016be355 |
|
BLAKE2b-256 | 7c31ecb5e1f601e61e201b98d7f850a8091970f1d00e3f21d80c9e1d2976ac75 |