Skip to main content
Core.Today
|
OpenAIFastHigh

GPT-5.1 Codex Mini

Cheaper, faster member of the GPT-5.1 Codex family for lighter coding tasks. Keeps the agentic-coding tuning and Responses API interface at roughly one fifth of the Codex price.

464.5/3,716credits
input / output ยท per 1M tokens
Cheaper, faster Codex tier for lighter coding tasks
Served via the Responses API - this gateway routes Codex models to /v1/responses, not chat completions
400K context window
Cached input tokens for cost savings on repeated context
Function calling & streaming support

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Model Specifications

Context Window
400K
tokens
Max Output
128K
tokens
Training Cutoff
2025-03
Compatible SDK
OpenAI

Capabilities

Vision
Function Calling
Streaming
JSON Mode
System Prompt

Token Pricing (per 1M tokens)

Token TypeCreditsUSD Equivalent
Input Tokens464.5$0.31
Output Tokens3,716$2.48
Cached Tokens46.45$0.03

* 1,500 credits โ‰ˆ $1 (actual charges may vary based on usage)

Quick Start

curl -X POST "https://api.core.today/llm/openai/v1/responses" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "gpt-5.1-codex-mini",
  "input": "Add null checks to this function and explain the change in one sentence:\n\n<code snippet>",
  "max_output_tokens": 1000
}'

Parameters

ParameterTypeRequiredDefaultDescription
modelstringYesgpt-5.1-codex-miniModel identifier
inputstring | arrayYes-Responses API input: a plain string or an array of input items (messages, tool results)
instructionsstringNo-System-level instructions for the run
max_output_tokensintegerNo-Maximum tokens in the response (Responses API field; not max_tokens)
streambooleanNofalseEnable Server-Sent Events streaming

Examples

Quick Fix

Low-cost Responses API request for a small coding task

curl -X POST "https://api.core.today/llm/openai/v1/responses" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "gpt-5.1-codex-mini",
  "input": "Add null checks to this function and explain the change in one sentence:\n\n<code snippet>",
  "max_output_tokens": 1000
}'

Tips & Best Practices

1Works with the OpenAI SDK - set base_url to https://ai.api.core.today/llm/openai/v1 and use client.responses.create()
2Codex models are served via the Responses API (POST /llm/openai/v1/responses), not chat completions
3About 5x cheaper than GPT-5.1 Codex - ideal for high-volume or draft coding passes
4Escalate to GPT-5.1 Codex or Codex Max when tasks span many files or long sessions

Use Cases

Quick code edits and small fixes
High-volume coding automation on a budget
Code explanation and review comments
Draft passes before escalating to Codex or Codex Max