Pricing per million tokens, context window, capabilities — pulled from each provider's public docs. All 2 are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.
Seedream 4.0 is ByteDance's image creation model that combines text-to-image generation and image editing into a single architecture, offering fast, high-resolution output up to 4K.
OpenAI's image generation model that creates and edits images from text prompts, supporting multiple quality levels and output sizes.
from openai import OpenAI
client = OpenAI(
base_url="https://api.aigateway.sh/v1",
api_key="sk-aig-...",
)
# Seedream 4.0
client.chat.completions.create(
model="bytedance/seedream-4.0",
messages=[{"role":"user","content":"hello"}],
)
# GPT Image 1.5
client.chat.completions.create(
model="openai/gpt-image-1.5",
messages=[{"role":"user","content":"hello"}],
)