GPT Image 2
GPT Image 2
gpt-image-2-modrouter-secondary
GPT Image 2 image generation with primary plan/test channels and Azure image fallback.
Total Context—
PricingUsage based
Providers for GPT Image 2
AnyInt routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.
GPT Image 2
Total Context—
PricingPriced by generation parameters
Sample code and API for GPT Image 2
AnyInt generates a quickstart from this model's declared API operations, including complete polling flows for asynchronous media.
Choose an operation and language that match this model.
Image GenerationAnyInt async media
Create a generation task, then poll its status for artifacts.
/v1/images/generations# 1. Create a generation task and save its ID.
TASK_ID=$(curl 'https://api.anyint.ai/v1/images/generations' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-d '{
"model": "gpt-image-2-modrouter-secondary",
"prompt": "Describe a calm futuristic city at sunrise.",
"size": "1024x1024"
}' | jq -r '.task.id')
# 2. Poll until task.status is completed or failed.
curl 'https://api.anyint.ai/v1/async-tasks/'"$TASK_ID" \
-H "Authorization: Bearer <YOUR_API_KEY>"Popular Models
Explore the most popular AI models, covering text generation, coding, image processing and more
GPT-6.1 TerraGPT-6.1 Terra supports Text, Image input and Text output through OpenAI, Anthropic, Gemini.DeepSeek: DeepSeek V4.1 Flash 1017DeepSeek: DeepSeek V4.1 Flash 1017 supports Text, Image input and Text output through OpenAI, Anthropic, Gemini.DeepSeek V4 FlashDeepSeek V4 Flash supports Text input and Text output through OpenAI, Anthropic, Gemini.DeepSeek: DeepSeek Flash (Latest)DeepSeek: DeepSeek Flash (Latest) supports Text, Image input and Text output through OpenAI, Anthropic, Gemini.DeepSeek V4 ProDeepSeek V4 Pro supports Text input and Text output through OpenAI, Anthropic, Gemini.GPT-6 SolGPT-6 Sol supports Text, Image input and Text output through OpenAI, Anthropic, Gemini.Claude Opus 5.5Claude Opus 5.5 supports Text, Image, File input and Text output through OpenAI, Anthropic, Gemini.GPT-6 AstraGPT-6 Astra supports Text, Image input and Text output through OpenAI, Anthropic, Gemini.Claude Fable 5Claude Fable 5 supports Text, Image, File input and Text output through OpenAI, Anthropic, Gemini.GPT-5.6 SolGPT-5.6 Sol supports Text, Image input and Text output through OpenAI, Anthropic, Gemini.