GPT-5-Codex

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers can now call gpt-5-codex via API at standard GPT-5 pricing, unlocking agentic coding use outside the Codex CLI tool.

Read this as

OpenAI's GPT-5-Codex, a model trained specifically for coding, is now available through the company's API after initially only working in the Codex command-line tool. It costs the same as regular GPT-5, with a 90% discount on repeated input tokens. The company says it works best with minimal prompting because coding best practices are built in.

OpenAI completed the rollout of gpt-5-codex by adding API access, having half-released it earlier this month only inside Codex CLI. Pricing matches regular GPT-5: $1.25 per million input tokens and $10 per million output tokens, with a 90% discount on cached inputs, significant for agentic workflows that accumulate long conversations. Teams doing coding automation gain a purpose-built option at no price premium.

gpt-5-codex is now callable via OpenAI's Responses API at gpt-5-codex, priced identically to GPT-5 ($1.25/M input, $10/M output, 90% cached-input discount). OpenAI's prompting guide recommends 'less is more': the model is trained for agentic and interactive coding only, and over-prompting reduces quality. Simon Willison benchmarked it with his pelican SVG test (2.156 cents) and confirmed via vision analysis that the output depicted a pelican riding a bicycle.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

GPT-5-Codex OpenAI Codex CLI Responses API LLM llm-openai-plugin

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading