Model No Longer Available
This model has been delisted from the API. This page is preserved for reference purposes only.
gpt-5-codex-medium
gpt-5-codex-medium with budget-friendly pricing. versatile general-purpose AI.
Capability Radar
About gpt-5-codex-medium
"Industry-leading language understanding"
gpt-5-codex-medium is Unknown's budget-friendly model featuring focused context window (4K). Industry-leading language understanding, this model delivers most widely adopted and battle-tested.
⚡ Key Strengths
- Industry-leading language understanding
- Best price-to-performance ratio
- Specialized for programming tasks
- OpenAI SDK compatible
- Production-ready reliability
🎯 Best Use Cases
- Code generation and debugging
- Technical documentation writing
- Algorithm implementation
- High-volume API processing
- Cost-sensitive production applications
Technical Specifications
Quick Start Guide
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://api.okrouter.com/v1",
apiKey: "<YOUR_OKROUTER_KEY>",
});
async function main() {
const completion = await openai.chat.completions.create({
model: "gpt-5-codex-medium",
messages: [
{ role: "user", content: "Hello! What can you do?" }
],
});
console.log(completion.choices[0].message);
}
main();Getting started with gpt-5-codex-medium is easy. Since OkRouter is fully compatible with the OpenAI SDK, you can use existing libraries to access this model immediately. gpt-5-codex-medium is fully compatible with the OpenAI Chat Completions API. distinctive features include Standard context handling and Text support.
Interactive Playground
Parameters Setup
Controls randomness: Lowering results in less random completions.
Return data chunks as they arrive
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.okrouter.com/v1",
apiKey: process.env.OKROUTER_API_KEY,
});
const completion = await client.chat.completions.create({
model: "gpt-5-codex-medium",
messages: [{ role: "user", content: "Hello world!" }],
temperature: 0.7,
stream: true,
});Frequently Asked Questions
?How much does gpt-5-codex-medium cost?
gpt-5-codex-medium costs $1.00 per 1M input tokens and $8.00 per 1M output tokens via OkRouter. This is 20% cheaper than OpenRouter with the same great performance.
?Is gpt-5-codex-medium compatible with OpenAI SDK?
Yes! gpt-5-codex-medium works seamlessly with all OpenAI SDKs (Python, JavaScript, Go, etc.). Simply change your base_url to api.okrouter.com and use your OkRouter API key. No code changes needed.
?What programming languages does gpt-5-codex-medium support?
gpt-5-codex-medium supports all major programming languages including Python, JavaScript, TypeScript, Java, C++, Go, Rust, and more. It excels at code generation, debugging, and explaining complex algorithms.