Poe API
GPT-5.2 is a state-of-the-art AI model from OpenAI designed for real work across writing, analysis, coding, and problem solving. It handles long contexts and multi-step tasks better than earlier versions, and it’s tuned to give accurate responses with fewer errors. Supports 400k tokens of context, and native vision.
Optional parameters:
Set reasoning effort: Select from `low`, `medium`, `high`, `xhigh`. No reasoning effort by default.
Set web search and real-time information access: toggle it `on`, otherwise it is `off` by default.
Set verbosity to control response details at the end of your message: Select from `low`, `medium`, `high`. This is set to `medium` by default.
Powered by OpenAI: gpt-5.2. Learn more
- OFFICIAL
Build with GPT-5.2 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-5.2",
messages = [{
"role": "user",
"content": "Explain the concept of black holes in a way that a 10-year-old would understand"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.