Poe API
GPT‑5.2‑Codex extends GPT‑5.2’s capabilities for software development. It understands complex codebases, provides accurate completions, explains algorithms, and assists with debugging across modern programming languages. Designed for developers, it elevates productivity and supports full‑stack coding workflows with precision. Supports 400k tokens of input context.
Optional parameters:
To instruct the bot to use more reasoning effort, add --reasoning_effort to the end of your message with one of "low", "medium", "high", or "Xhigh"
Powered by OpenAI: gpt-5.2-codex. Learn more
- OFFICIAL
Build with GPT-5.2-Codex 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-codex",
messages = [{
"role": "user",
"content": "A simple React component named HelloMessage that takes a name prop and displays the message 'Hello, (name)!'"
}]
)
print(chat.choices[0].message.content)See the full documentation for comprehensive guidance on getting started.