Poe API
OpenAI's model that powers image generation in ChatGPT, offering exceptional prompt adherence, level of detail, and quality. It supports editing, restyling, and combining images attached to the latest user query. For a conversational editing experience, use https://poe.com/GPT-4o (all users) or https://poe.com/Assistant (subscribers) instead.
Optional parameters:
- Aspect Ration. Aspect ratio of the output image (Options: 1:1, 3:2, 2:3)
- Quality: Image resolution (options: high, medium, low)
- Mask. Indicates that the last attached image is a mask for in-painting (editing specific regions). The mask must match the dimensions of the base image, with transparent (zero-alpha) areas showing which parts to edit.
- High fidelity to false to disable high input fidelity. This option is enabled by default.
Powered by a server managed by @openai. Learn more
- OFFICIAL
Build with GPT-Image-1 using the Poe API
Start by creating an API key, for use with any bot on Poe:
Code samples
python
import openai
client = openai.OpenAI(
api_key = "YOUR_POE_API_KEY", # or os.getenv("POE_API_KEY")
base_url = "https://api.poe.com/v1",
)
chat = client.chat.completions.create(
model = "gpt-image-1",
messages = [{
"role": "user",
"content": "Dreamlike landscape, combining Picasso's cubism and Dali's surrealism"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.