Python SDK for Codex private image generation backend
Project description
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.
Dry run
result = client.generate_image(
prompt="flat blue square icon",
dry_run=True
)
print(result["mode"]) # "dry-run"
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file god_tibo_imagen-0.3.0.tar.gz.
File metadata
- Download URL: god_tibo_imagen-0.3.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8707030d221e889d77b87fbcd30eb4f9024da8521ea779f16e6967c8ee9719f7
|
|
| MD5 |
01df23da4abbff34b0f2dc7582e29738
|
|
| BLAKE2b-256 |
df50d7c17040578c2011a9966aa3d9f52de2d3bb45a6b6d91e40777e5e9003e0
|
File details
Details for the file god_tibo_imagen-0.3.0-py3-none-any.whl.
File metadata
- Download URL: god_tibo_imagen-0.3.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0114c2bfd9478ddca8b52eaafd0f67827acf317640ed594f5e097a62e555b9d
|
|
| MD5 |
7bfda56efa29884b5b8598499dc584be
|
|
| BLAKE2b-256 |
845a80ba56018db43a3628996ebd2e0ad48aef58964ed33d38abd8e0a7f3d77e
|