Poe API
GPT-Image-2
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.
Powered by a server managed by @openai. Learn more
Build with GPT-Image-2 using the Poe API
Start by creating an API key, for use with any bot on Poe:
Code samples
Images
import requests
response = requests.post(
"https://api.poe.com/v1/images",
headers={
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
},
json={
"model": "gpt-image-2",
"prompt": "Hello world",
},
)
print(response.json())See the full documentation for comprehensive guidance on getting started.
More from OpenAI
GPT-Image-2
GPT-5.5-Pro
GPT-5.5
GPT-5.4-Mini
GPT-5.4-Nano
GPT-5.4-Pro
GPT-5.3-Instant
GPT-5.4
GPT-5.3-Codex
GPT-5.2-Codex