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.
Recraft V4 generates art-directed images with strong composition, accurate text rendering, and design taste built in. Fast and cost-efficient at standard resolution.
Generate production-ready SVG vector graphics from text prompts with a general-purpose model suited for a wide range of design and illustration tasks.
from openai import OpenAI
client = OpenAI(
base_url="https://api.aigateway.sh/v1",
api_key="sk-aig-...",
)
# Recraft V4
client.chat.completions.create(
model="recraft/recraftv4",
messages=[{"role":"user","content":"hello"}],
)
# Recraft V4.1 Utility SVG
client.chat.completions.create(
model="recraft/recraftv4-1-utility-vector",
messages=[{"role":"user","content":"hello"}],
)