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-plus-0.5.2.tar.gz
.
File metadata
- Download URL: BingImageCreator-plus-0.5.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9d312af7cf33e4c57df1861b918e2f4f6bf2ab62711f92e397a2528f7f4a9f4 |
|
MD5 | 08bddeb79d889ed05e4b79386688e022 |
|
BLAKE2b-256 | 2425da24eae3670b55ce94b92078cf844499f343177f0a71809c7fffc461e49b |
File details
Details for the file BingImageCreator_plus-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: BingImageCreator_plus-0.5.2-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd8937d2db4e280ea46a18623a37b7c2e3cce6ddfdf653d7dc20c40e9770cb51 |
|
MD5 | 4f1f03b3ae2cec3aa315f163b38dcf6b |
|
BLAKE2b-256 | 674d772f50514d5334577900ba9af620325732cc4079aca98545cbc59d7c0ca5 |