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.6-sol",
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.6-sol",
output_path="./cat-hat.png",
image_paths="./cat.png"
)
# multiple images
result = client.generate_image(
prompt="Combine these two styles",
model="gpt-5.6-sol",
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)
The client defaults to ChatGPT Images 2.5 gpt-image-2.5-sunburst. Pass image_model to override:
gpt-image-2.5-sunburst— default premium tier, built for workflows that benefit from tighter control across editsgpt-image-2.5-flare— fast tier: higher-quality images than GPT-Image-2 at up to 50% lower latency
result = client.generate_image(
prompt="a sunset over mountains",
model="gpt-5.6-sol",
output_path="./sunset.png",
)
result = client.generate_image(
prompt="a sunset over mountains",
model="gpt-5.6-sol",
output_path="./sunset.png",
image_model="gpt-image-2.5-flare",
)
The value is forwarded as model on the image_generation tool config. CODEX_IMAGEGEN_IMAGE_MODEL overrides the default. Note: the backend acknowledges the tool config with a normalized gpt-image-2-codex model in its response echo and does not validate the requested value — selection is therefore best-effort over a private, unvalidated contract.
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.1
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.1.tar.gz | 15.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| god_tibo_imagen-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.8 kB
Release files / god_tibo_imagen-0.4.1.tar.gz
| Download URL | god_tibo_imagen-0.4.1.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9308429caf3894950dd80830188a3078f2f8bc4ba36cd586a7b842a8a28cf30c
|
|
BLAKE2b-256 checksum How to use checksums |
1854f10399e60f128722333aed1f0dd15f00349840c9707e4453c2cf81b8dbaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency logRelease files / god_tibo_imagen-0.4.1-py3-none-any.whl
| Download URL | god_tibo_imagen-0.4.1-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ad57b51080bf1bddaa537659962f6d42a0d08bb2967996019432336a3d86df5
|
|
BLAKE2b-256 checksum How to use checksums |
b117357b218b37f53ec749236826269ccfbb1bf6b8c85ae541dacd25ba226085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency logSecurity for god-tibo-imagen 0.4.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for god_tibo_imagen-0.4.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency logA 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.