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
BingImageCreator-0.2.0.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for BingImageCreator-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07b9ea5e6abe347abee0fd08f4810c3e2f66ed6cdd479bc39a2dbf872a5568e4 |
|
MD5 | 2f04e8adfa3692700325b6cf51882c3c |
|
BLAKE2b-256 | 5a939f2065e80ac84fda0978522db9f4f7a04d678f99d58a54a8cd494466512a |