Skip to content

GPT-5.1-Codex

GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows.

Per 1M tokens
$1.31 · $10.50
Context
400Ktokens
Supports
  • Reads images
  • Calls tools
  • Thinks before it answers
~/.codex/config.toml
model = "openai/gpt-5.1-codex"
model_provider = "deference"
web_search = "disabled"

[model_providers.deference]
name = "Deference"
base_url = "https://deference.si/v1"
wire_api = "responses"
env_key = "DEFERENCE_API_KEY"
Needs an API keyGet one

Pricing and limits

  • Cache read$0.1365per 1M tokens
  • Max output128,000tokens

OpenRouter's price plus OpenRouter's 5% platform fee. Deference adds no markup.