跳转到主要内容

由ideogram.ai生成的高质量图像。反向工程API。

项目描述

IdeoImageCreator

关于由ideogram生成的高质量图像。反向工程API。

如何

  • 登录到 https://ideogram.ai 并生成一些图像。
  • 使用 Chrome 或其他浏览器检查网络请求(F12 -> XHR)。
  • 克隆此REPO -> git clone https://github.com/yihong0618/IdeoImageCreator.git
  • 复制cookie。
  • 复制Bearer令牌。
  • 复制您的用户名。
  • 导出IDEO_COOKIE='xxxxx'。
  • 导出IDEO_AUTH_TOKEN='xxxxx'(在请求的HEADERS中的Bearer之后找到)。
  • 导出IDEO_USER_ID='xxxxx'。

使用

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

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')

自定义

自定义参数

  • aspect_ratio - 默认 "1:1"
  • model_version - 默认 "V_0_3"("V_1_0"及以下版本使用1个信用点)
  • style - 默认 "AUTO"
  • is_auto_prompt - 默认 "AUTO"

示例

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',)

感谢

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源分布

ideo-0.2.0.tar.gz (4.9 kB 查看哈希)

上传时间:

构建分布

ideo-0.2.0-py3-none-any.whl (5.5 kB 查看哈希值)

上传于 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面