GPT-Image-2 · poe
OpenAI’s state-of-the-art image generation model as of April 21, 2026, designed for fast, high-quality image generation and editing with strong prompt adherence and flexible image sizes. It supports generating, editing, restyling, and combining images attached to the latest user query. Optional Parameters: Set aspect ratio, with options 3:2, 1:1, and 2:3. Set quality to low, medium, and high. Enable use mask by toggling it on or by typing use_mask in the prompt. This option is turned off by default.
Input, $/1M $5.05
Output, $/1M $30.30
Cache read $1.26
Cache write —
Price alerts
API
OpenAI-compatible API: the official OpenAI SDKs work with this base URL. Replace YOUR_API_KEY with your key from the provider.
| API base URL | |
|---|---|
| Endpoint | |
| Model id | |
curl
curl https://api.poe.com/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-image-2", "prompt": "a lighthouse at sunset", "n": 1, "size": "1024x1024"}'Python
import requests
r = requests.post(
"https://api.poe.com/v1/images/generations",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "gpt-image-2",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
},
)
print(r.json())JavaScript
const r = await fetch("https://api.poe.com/v1/images/generations", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "gpt-image-2",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
}),
});
console.log(await r.json());Request (JSON)
{
"model": "gpt-image-2",
"prompt": "a lighthouse at sunset",
"n": 1,
"size": "1024x1024"
}Response (JSON)
{
"created": 1760000000,
"data": [
{
"url": "https://...",
"b64_json": null
}
]
}The address is taken from the provider's model list; check it against the provider's documentation.
Source: AI Rate Card, https://airatecard.com/en/c/offer%3Apoe%7Cgpt-image-2, prices checked 2026-11-04; seller's page: https://poe.com/gpt-image-2
Technical details
ID: offer:poe|gpt-image-2