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.3.1.tar.gz (14.1 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.3.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: god_tibo_imagen-0.3.1.tar.gz
  • Upload date:
  • Size: 14.1 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.3.1.tar.gz
Algorithm Hash digest
SHA256 2a64dd426f72cb194e4ac18785cad5ada14d65a44557a74c4921d3f4cd33cac5
MD5 3bc320cb30bb1d2ee7bbbf2d97ac6f58
BLAKE2b-256 e33c540fd8371829c0a21129a34f367f6b5696876379811493f2a47d5524d25d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for god_tibo_imagen-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 268d9f67fa9dbbc2a91c0b6c209c7d09487b0ce1e51bf7c150668aacc7d67410
MD5 57a991cb5ca2207fb3b18f0a2b622308
BLAKE2b-256 f7d33ea0ffd6eac352f0c584ad9a23b877112fe2e3cc96196c64ee2852ff1868

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