Gpt Image 2.6 Flare
Model id: openai/gpt-image-2.6-flare. API reference for Gpt Image 2.6 Flare: request schema and code examples.
Last updated
Was this helpful?
Was this helpful?
import requests
response = requests.post(
"https://api.aimlapi.com/v1/images/generations",
headers={
"Authorization": "Bearer <YOUR_AIMLAPI_KEY>",
"Content-Type": "application/json",
},
json={'model': 'openai/gpt-image-2.6-flare', 'prompt': 'Describe what you want the model to generate.'},
)
print(response.json())const response = await fetch('https://api.aimlapi.com/v1/images/generations', {
method: 'POST',
headers: {
'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "openai/gpt-image-2.6-flare",
"prompt": "Describe what you want the model to generate."
}),
});
console.log(await response.json());{
"data": [
{
"url": "https://cdn.aimlapi.com/generations/hedgehog/1749730923700-29fe35d2-4aef-4bc5-a911-6c39884d16a8.png",
"b64_json": null
}
],
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
},
"model": "openai/gpt-image-2.6-flare"
}