Start calling this model with endpoint-specific examples.
Headline benchmark standings and comparison context.
Key dates, capabilities, and model metadata.
Create a key, choose a supported route, and copy a ready request.
Choose a supported endpoint, pick a main language, then select the example style you want to copy.
import AIStats from '@ai-stats/sdk';
const client = new AIStats({
apiKey: process.env.AI_STATS_API_KEY,
});
const response = await client.generateImage({
"model": "openai/gpt-image-2",
"prompt": "Create a cinematic hero image of an AI observability dashboard lit by soft ambient light.",
"size": "1024x1024",
"quality": "high"
});
console.log(JSON.stringify(response, null, 2));Select a route to update the request snippet and compatibility details.
/v1/images/generations/v1/images/edits