Key capabilities
- OpenAI-compatible — Works as a drop-in replacement with the OpenAI SDK
- Streaming — Supports real-time token streaming via SSE
- Tool use — Supports function calling and tool use
- Flexible output — Supports JSON mode and structured output
Quick example
Parameters
API Reference
View the interactive API playground for GPT-5.1 Codex Mini.