Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ The SDK provides access to models from multiple providers via the `og.TEE_LLM` e
- GPT-5
- GPT-5 Mini
- GPT-5.2
- GPT Image 2 (native image generation)

#### Anthropic
- Claude Sonnet 4.5
Expand Down
2 changes: 2 additions & 0 deletions examples/llm_image_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ async def main():
# of the signed output hash.
#
# Available image generation models:
# OpenAI (flat per-image rate, $0.05/image):
# og.TEE_LLM.GPT_IMAGE_2
# Google (inline, billed per output token):
# og.TEE_LLM.GEMINI_2_5_FLASH_IMAGE
# og.TEE_LLM.GEMINI_3_1_FLASH_IMAGE
Expand Down
6 changes: 6 additions & 0 deletions src/opengradient/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,12 @@ class TEE_LLM(str, Enum):
GPT_5_4_NANO = "openai/gpt-5.4-nano"
GPT_5_5 = "openai/gpt-5.5"

# OpenAI image-generation model via TEE (dedicated /images/generations
# endpoint). Billed at a flat rate per image. Images are returned on
# ``TextGenerationOutput.images`` and ``StreamChunk.images`` as data: URIs
# and are not part of the signed output hash.
GPT_IMAGE_2 = "openai/gpt-image-2"

# Anthropic models via TEE
CLAUDE_SONNET_4_5 = "anthropic/claude-sonnet-4-5"
CLAUDE_SONNET_4_6 = "anthropic/claude-sonnet-4-6"
Expand Down
Loading