Poe API
GPT-5.1-Codex-Mini
By
GPT‑5.1‑Codex‑Mini is a lightweight, fast, and efficient code‑generation model derived from GPT‑5.1‑Codex. It’s optimized for quick iterations, smaller environments, and edge applications—offering strong coding assistance with lower computational cost while maintaining accuracy and utility.
Supports 400k tokens of input context.
Optional parameters:
Set reasoning effort: Select from `low`, `medium`, `high`. Medium reasoning effort is set by default.
Powered by OpenAI: gpt-5.1-codex-mini. Learn more
- OFFICIAL
Build with GPT-5.1-Codex-Mini using the Poe API
Start by creating an API key, for use with any bot on Poe:
Use it in these apps
See allCode samples
Responses API
import openai
client = openai.OpenAI(
api_key = "YOUR_POE_API_KEY", # or os.getenv("POE_API_KEY")
base_url = "https://api.poe.com/v1",
)
response = client.responses.create(
model = "gpt-5.1-codex-mini",
input = "Write a Python function that reverses a string without using any built in string manipulation functions or libraries"
)
print(response.output_text)See the full documentation for comprehensive guidance on getting started.
More from OpenAI
GPT-5.4-Mini
GPT-5.4-Nano
GPT-5.4-Pro
GPT-5.3-Codex-Spark
GPT-5.3-Instant
GPT-5.4
GPT-5.3-Codex
GPT-5.2-Codex
GPT-Image-1.5
GPT-5.2-Pro







