god-tibo-imagen
Python SDK for sending image-generation requests to Codex's private ChatGPT-authenticated backend path.
WARNING: This is not a supported public API integration. It depends on private Codex request behavior that may change without notice.
Installation
pip install god-tibo-imagen
Usage
from gti import Client
client = Client(provider="private-codex")
result = client.generate_image(
prompt="flat blue square icon",
model="gpt-5.4",
output_path="./out.png"
)
print(result.saved_path)
Image input
You can provide existing images as additional context alongside your text prompt. Images are embedded as base64 data URLs and sent with the request.
# single image
result = client.generate_image(
prompt="Make this cat wear a hat",
model="gpt-5.4",
output_path="./cat-hat.png",
image_paths="./cat.png"
)
# multiple images
result = client.generate_image(
prompt="Combine these two styles",
model="gpt-5.4",
output_path="./combined.png",
image_paths=["./style-a.png", "./style-b.png"]
)
Supported formats: png, jpg/jpeg, gif, webp.
Image model (ChatGPT Images 2.5)
Pass image_model to select the model used by the image_generation tool itself. ChatGPT Images 2.5 (released 2026-09-08) ships two API models:
gpt-image-2.5-flare— the default fast tier (up to 50% lower latency than Images 2.0)gpt-image-2.5-sunburst— the slower, higher-precision tier
result = client.generate_image(
prompt="a sunset over mountains",
model="gpt-5.4",
output_path="./sunset.png",
image_model="gpt-image-2.5-flare"
)
The value is forwarded as model on the image_generation tool config in the private Codex request. You can also set CODEX_IMAGEGEN_IMAGE_MODEL as the default.
Dry run
result = client.generate_image(
prompt="flat blue square icon",
dry_run=True
)
print(result["mode"]) # "dry-run"
Metadata
Release files for god-tibo-imagen 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| god_tibo_imagen-0.4.0.tar.gz | 14.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| god_tibo_imagen-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / god_tibo_imagen-0.4.0.tar.gz
| Download URL | god_tibo_imagen-0.4.0.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b317c0b720dd943e07629e0d379178e397246c89819e2503fc7f7e72a768d7cb
|
|
BLAKE2b-256 checksum How to use checksums |
e81a61a1127990c0281a472072ab73e77263c759ac93a7980ede3c97fc5d1c9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / god_tibo_imagen-0.4.0-py3-none-any.whl
| Download URL | god_tibo_imagen-0.4.0-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94ec685cec9018c36902f4205190281c88a86176db3a5c94325edbbd03fce250
|
|
BLAKE2b-256 checksum How to use checksums |
f2c8afeab30b5a061c957eca2c7d136ebcc691c38198da64b4c6764e7bc49e59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for god-tibo-imagen 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.