Skip to main content

High quality image generation by ideogram.ai. Reverse engineered API.

Project description

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/yihong0618/IdeoImageCreator.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
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')

Customization

Customization params:

  • aspect_ratio - default "1:1"
  • model_version - default "V_0_3" ("V_1_0" and lower take 1 credit)
  • style - default "AUTO"
  • is_auto_prompt - default "AUTO"

Example:

i.save_images(prompt = "woman with son turned away walking in a park",
              aspect_ratio="16:10",
              model_version="V_1_5",
              style="PHOTO",
              output_dir='./output',)

Thanks

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

ideo-0.2.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

ideo-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file ideo-0.2.0.tar.gz.

File metadata

  • Download URL: ideo-0.2.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.19

File hashes

Hashes for ideo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c919faa77ecb60a09dfe0fcbc0960c93705d8ecfafe62349c46df6740e9883f5
MD5 31a81635be09385badebf33062cf7056
BLAKE2b-256 4a3485c91b939d19e6343820bd641c6e2c139ae0e1cfde80b229548b22301741

See more details on using hashes here.

File details

Details for the file ideo-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ideo-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.19

File hashes

Hashes for ideo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 adfba5c56874c56ceb265b3bbd0f30436f48bd19c62be8c006ac2bfe03cd37b1
MD5 a6a22c7661991486aea65b0115d34440
BLAKE2b-256 dc66e7c10233df6c135394e822177ad96d5a90d5833ce300fcb69aa8d3850d26

See more details on using hashes here.

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