god-tibo-imagen
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegod-tibo-imagen — AI Image Generation via Codex Backend
god-tibo-imagen — 基于Codex后端的AI图像生成
Zero dependencies. Reuses your Codex login. Works from CLI, Node.js, or Python.
god-tibo-imagen~/.codex/auth.json零依赖。复用你的Codex登录信息。支持CLI、Node.js或Python调用。
god-tibo-imagen~/.codex/auth.jsonInstallation
安装
Plugin (Claude Code)
插件(Claude Code)
bash
claude plugin marketplace add NomaDamas/god-tibo-imagenbash
claude plugin marketplace add NomaDamas/god-tibo-imagennpm (CLI — global)
npm(CLI — 全局安装)
bash
npm install -g god-tibo-imagenbash
npm install -g god-tibo-imagenProvides the gti
command
gti提供gti
命令
gtiundefinedundefinednpm (Library)
npm(库)
bash
npm install god-tibo-imagenbash
npm install god-tibo-imagenPython SDK
Python SDK
bash
pip install god-tibo-imagenbash
pip install god-tibo-imagenSkill (any platform)
Skill(任意平台)
bash
npx skills add https://github.com/akillness/oh-my-skills --skill god-tibo-imagenbash
npx skills add https://github.com/akillness/oh-my-skills --skill god-tibo-imagenRequirements
要求
- Node.js 20+ (CLI / library)
- Python 3.10+ (Python SDK)
- Existing Codex CLI login at
~/.codex/auth.json
- Node.js 20+(CLI / 库)
- Python 3.10+(Python SDK)
- 中存在有效的Codex CLI登录信息
~/.codex/auth.json
When to use
使用场景
- Generate AI images without a separate API key — reuses Codex auth
- Automate image generation from shell scripts, Node.js, or Python workflows
- Use reference images as context for guided generation (up to multiple images)
- Run dry-run validation before submitting real generation requests
- Integrate image generation into agent pipelines via the Python class
Client
- 无需单独API密钥即可生成AI图片——复用Codex认证
- 在shell脚本、Node.js或Python工作流中自动化图片生成
- 使用参考图片作为引导生成的上下文(支持多张图片)
- 在提交真实生成请求前运行试运行验证
- 通过Python 类将图片生成集成到Agent流水线中
Client
Do not use when
不适用场景
- You need a supported public API (this uses an undocumented internal backend — may change)
- You do not have an active Codex / ChatGPT subscription with a valid
~/.codex/auth.json - You need guaranteed SLA or production-grade image generation → use DALL-E API or Stable Diffusion
- 你需要受支持的公开API(本工具使用未公开的内部后端——可能会变更)
- 你没有有效的Codex / ChatGPT订阅,或无效
~/.codex/auth.json - 你需要有服务等级协议(SLA)保障或生产级别的图片生成 → 使用DALL-E API或Stable Diffusion
CLI usage
CLI使用示例
bash
undefinedbash
undefinedBasic generation
基础生成
gti --prompt "blue square icon on white background" --output ./out.png
gti --prompt "白色背景上的蓝色方形图标" --output ./out.png
With reference image(s)
带参考图片
gti --prompt "make it round" --input ./ref1.png --input ./ref2.jpg --output ./out.png
gti --prompt "把它改成圆形" --input ./ref1.png --input ./ref2.jpg --output ./out.png
Dry-run (validate without generating)
试运行(仅验证不生成)
gti --prompt "sunset over mountains" --dry-run
gti --prompt "山间日落" --dry-run
Debug output (redacts sensitive data)
调试输出(自动脱敏敏感数据)
gti --prompt "cartoon cat" --output ./cat.png --debug
undefinedgti --prompt "卡通猫" --output ./cat.png --debug
undefinedNode.js library
Node.js库使用示例
javascript
import { createProvider, resolveConfig } from 'god-tibo-imagen'
const config = await resolveConfig()
const provider = createProvider(config)
const result = await provider.generate({ prompt: 'abstract art' })javascript
import { createProvider, resolveConfig } from 'god-tibo-imagen'
const config = await resolveConfig()
const provider = createProvider(config)
const result = await provider.generate({ prompt: '抽象艺术' })Python SDK
Python SDK使用示例
python
from god_tibo_imagen import Client
client = Client()
client.generate_image(
prompt="blue square icon",
output="./out.png"
)python
from god_tibo_imagen import Client
client = Client()
client.generate_image(
prompt="蓝色方形图标",
output="./out.png"
)Supported formats
支持的格式
| Format | Input | Output |
|---|---|---|
| PNG | ✅ | ✅ |
| JPG | ✅ | ✅ |
| GIF | ✅ | — |
| WebP | ✅ | — |
| 格式 | 输入 | 输出 |
|---|---|---|
| PNG | ✅ | ✅ |
| JPG | ✅ | ✅ |
| GIF | ✅ | — |
| WebP | ✅ | — |
Operating rules
使用规则
- Verify exists and is valid before running
~/.codex/auth.json - Use to validate prompt and config without consuming quota
--dry-run - Treat the backend as undocumented — avoid hard dependencies in production code
- Use to inspect request shape; sensitive tokens are automatically redacted
--debug - Pass multiple flags for multi-image reference context
--input
- 运行前验证存在且有效
~/.codex/auth.json - 使用验证提示词和配置,不消耗配额
--dry-run - 该后端为未公开接口——避免在生产代码中硬依赖
- 使用查看请求结构;敏感令牌会自动脱敏
--debug - 传递多个标志以使用多张参考图片作为上下文
--input
References
参考链接
Source: NomaDamas/god-tibo-imagen — MIT License