Metadata-Version: 2.1
Name: ideo
Version: 0.1.2
Summary: High quality image generation by ideogram.ai. Reverse engineered API.
Home-page: https://github.com/yihong0618/IdeoImageCreator
Author: yihong0618
Author-email: zouzou0208@gmail.com
Project-URL: Bug Report, https://github.com/yihong0618/IdeoImageCreator/issues/new
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: curl_cffi
Requires-Dist: requests
Requires-Dist: fake-useragent

# IdeoImageCreator
About High quality image generation by ideogram. Reverse engineered API.

## How to
- Login to https://ideogram.ai and generate some images.
- Use `Chrome` or other browsers to inspect the network requests (F12 -> XHR).
- Clone this REPO -> `git clone https://github.com/flowese/IdeogramWrapper.git`
- Copy the cookie.
- Copy the Bearer token.
- Copy your user name.
- Export IDEO_COOKIE='xxxxx'.
- Export IDEO_AUTH_TOKEN='xxxxx' (found after `Bearer` in the HEADERS of the requests).
- Export IDEO_USER_ID='xxxxx'.

## Usage

```
python -m ideo --prompt 'a big red cat'
```

or
```
pip install -U ideo
```

```python
from ideo import ImageGen
i = ImageGen('cookie', 'user_id', 'auth_token') # Replace 'cookie', 'user_id', and 'auth_token' with your own values
print(i.get_limit_left())
i.save_images("a blue cyber dream", './output')
```

## Thanks

- [chatgpt-telegram-bot](https://github.com/brainboost/chatgpt-telegram-bot)
