Skip to main content

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

god_tibo_imagen-0.2.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

god_tibo_imagen-0.2.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file god_tibo_imagen-0.2.0.tar.gz.

File metadata

  • Download URL: god_tibo_imagen-0.2.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for god_tibo_imagen-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ff9319900399c7062bf2d82fb0a28637c981379f54b10aa28b0a52ee538036ab
MD5 25e8a27e81acee44ca5279dc5f1a5b5e
BLAKE2b-256 0ff4540ee3599e46426f1c660965d38398e963dd7f9d399129235731692a8dad

See more details on using hashes here.

File details

Details for the file god_tibo_imagen-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for god_tibo_imagen-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af3d7c2f7be15b52fd90b76b70f280417823d2f3d0bd5523c428bb9a57ddcb22
MD5 c3da382a3e85cdf855ed2c1fe630b5f8
BLAKE2b-256 24ba8c3a44625784733831417390a98aea7338a4e57062d114efa5139890d15b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page