UniRoute
Models
TextImageVideoAudio
PricingIntegrations
Video
Video APITemplatesPrompts
Docs
GuidesBlog
Log inGet started
Models
TextImageVideoAudio
Pricing
Integrations
Video
Video APITemplatesPrompts
Docs
GuidesBlog
Log inGet started
Models/Text/Codex

Codex

OpenAI
APIPricing

Use OpenAI models in Codex for coding, debugging and multi-step engineering work.

  • List price $10.00 in / $50.00 out per 1M tokens
  • OpenAI Responses and OpenAI Chat Completions API
  • Coding · Debugging · Refactoring
Chat

Settings

Memory
Stream

Available through the API only: attachments, function calling, search.

What can I help you with?

Use it inCodex terminal appCodex desktop app

Details

Codex

  • Overview
  • What you can do
  • Specs
  • Pricing
  • API
  • Use cases
  • FAQ
  • Related models

What is Codex?

Codex is OpenAI's coding-focused offering for code generation, debugging and extended engineering work. OpenAI describes workflows that include understanding existing code, planning changes and checking implementations.

This page brings together the callable OpenAI models offered for Codex workflows: GPT-6 Astra, GPT-5.6 Sol, Terra and Luna, and GPT-5.5. Select a model to ask a coding question, or connect your client through Responses or Chat Completions.

The current selection includes GPT-6 Astra alongside GPT-5.6 and GPT-5.5 models. Use the variant selector to choose the model for your request and compare the available rates before integrating it into a coding workflow.

What you can do

What Codex is built for.

Generate and explain code

Describe the behavior you need, provide the relevant interfaces and ask for an implementation or an explanation of existing code.

Debugging

Supply an error and the code around it. Work through likely causes and ask which observation would distinguish them.

Refactoring and tests

Plan smaller changes that preserve behavior, then ask for tests that cover the risks in the proposed implementation.

Coding agents

Use the API to connect a selected model to a client that manages files, function calls and multi-step engineering tasks.

The chat box accepts text; attachments, function calls, search and reasoning controls are available through the API.

Specs & variants

The variants you can call, with their options and prices.

VariantModel IDModesInputsOutputPrice
Astragpt-6-astraChat and text generationOpenAI Responses and OpenAI Chat Completions APIStreaming; Context window: Not stated on this page$10.00 input / $50.00 output per 1M tokens
Solgpt-5-6-solChat and text generationOpenAI Responses and OpenAI Chat Completions APIStreaming; Context window: Not stated on this page$4.00 input / $20.00 output per 1M tokens
Terragpt-5-6-terraChat and text generationOpenAI Responses and OpenAI Chat Completions APIStreaming; Context window: Not stated on this page$2.00 input / $12.00 output per 1M tokens
Lunagpt-5-6-lunaChat and text generationOpenAI Responses and OpenAI Chat Completions APIStreaming; Context window: Not stated on this page$0.20 input / $1.20 output per 1M tokens
GPT-5.5gpt-5-5Chat and text generationOpenAI Responses and OpenAI Chat Completions APIStreaming; Context window: Not stated on this page$5.00 input / $30.00 output per 1M tokens

Pricing

Priced per token. Input and output are billed separately.

USD per 1M tokens
UsageOpenAI list priceUniRoute
Input$10.00—
Output$50.00—
Cache read$1.00—

Example

10 requests at 5,000 input + 1,000 output tokens

≈ $1.00

10 requests at 20,000 input + 4,000 output tokens

≈ $4.00

10 requests at 200,000 input + 20,000 output tokens

≈ $30.00

Pricing source: developers.openai.com/api/docs/pricing.md · 2026-11-07

The list price is the provider’s published reference. Your live UniRoute quote appears in the workspace after you sign in.

Rounded to the cent; the live quote in the workspace shows the exact amount. Prices updated 2026-11-07.

Compare all OpenAI API prices →

Create an API key

Pay as you go from a single USD wallet balance. You see the quote before each request.

API

Call Codex through OpenAI Responses and OpenAI Chat Completions API.

curl 'https://api.uniroute.app/v1/responses' \  -H 'Authorization: Bearer YOUR_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "model": "gpt-6-astra",  "input": "Hello",  "stream": false}'
from openai import OpenAIclient = OpenAI(    api_key="YOUR_API_KEY",    base_url="https://api.uniroute.app/v1",)response = client.responses.create(    model="gpt-6-astra",    input="Hello",)print(response.output_text)
curl 'https://api.uniroute.app/v1/chat/completions' \  -H 'Authorization: Bearer YOUR_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "model": "gpt-6-astra",  "messages": [    {      "role": "user",      "content": "Hello"    }  ],  "stream": false}'

Parameters

NameInDescription
modelBodyModel ID to run.
messagesBodyThe conversation as a list of role and content messages.
streamBodySet to true to receive the response as a stream.
inputBodyText or input items (OpenAI Responses).
max_output_tokensBodyUpper limit on generated tokens (OpenAI Responses).

Guides

  • Set up Codex terminal app with UniRoute
  • Set up Codex desktop app with UniRoute
  • Manage API keys

Use cases

Typical ways to put Codex to work.

A coding assistant in your terminal

Connect Codex to UniRoute and select one of the model IDs shown on this page for your engineering work.

Bug investigations

Compare hypotheses, request a minimal reproduction and use the evidence to narrow down a defect.

Safer refactoring

Break a large change into reviewable steps and identify the tests needed to check each step.

Developer tools

Build code explanation, review and implementation features on the API, with the selected model managed by your application.

FAQ

Common questions about Codex.

What does this Codex page provide?

It provides access to the OpenAI models currently listed for Codex workflows. You can select a variant for text chat or use its model ID through the API.

Which models can I select?

The selector offers GPT-6 Astra, GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna and GPT-5.5. The specs section lists the exact callable IDs.

How do I connect the Codex client?

Use your UniRoute API key and configure the gateway address in your client. The Codex setup guides linked here cover the terminal and desktop apps.

Which API formats are supported?

The API section provides Responses and Chat Completions examples. Set model to the exact ID of the variant you want to use.

How is usage billed?

OpenAI list price $10.00 input / $50.00 output per 1M tokens. Rates vary by selected model and by input and output usage. Review the Pricing section before sending requests; prices updated 2026-11-07.

Does this chat box edit my repository?

The chat box accepts text and returns a reply. Repository access and tool execution belong to your coding client or application, connected through the API.

Is there a free trial or free credits?

No. Requests are paid from your wallet balance. You can read this page and review the prices without paying, and you need an account with funds to send a message.

Related models

Other versions, models from the same provider and alternatives.

More from OpenAI

  • GPT 6.1 Sol
    OpenAIGPT 6.1 Sol
  • GPT-6
    OpenAIGPT-6
  • GPT-6 Astra
    OpenAIGPT-6 Astra
  • GPT-5.6
    OpenAIGPT-5.6

Similar text models

  • Claude Opus 5.5
    AnthropicClaude Opus 5.5
  • Gemini 3.8 Flash
    GoogleGemini 3.8 Flash
  • Kimi K3
    MoonshotKimi K3
  • Grok 4.7
    GrokGrok 4.7
UniRoute

Mainstream models, one platform. Connecting your product and your creativity.

Models

  • All models
  • Text
  • Image
  • Video
  • Audio

Pricing

  • All pricing
  • Anthropic API
  • OpenAI API
  • Google API
  • xAI API
  • DeepSeek API
  • Moonshot AI API
  • Z.ai API
  • Alibaba API
  • Black Forest Labs API
  • ByteDance API
  • ElevenLabs API
  • Kling AI API
  • MiniMax API
  • PixVerse API
  • Recraft API

Integrations

  • All integrations
  • Claude Code
  • Codex
  • Gemini CLI
  • OpenCode
  • OpenClaw
  • Hermes Agent
  • Cline
  • Kilo Code
  • Cursor
  • JetBrains IDEs
  • TRAE (international)
  • Claude desktop
  • Codex desktop
  • Cherry Studio
  • Chatbox
  • CC Switch

Video & creation

  • Video API
  • Templates
  • Prompts

Resources

  • Docs
  • Blog
  • Quick start
  • Privacy policy
  • Terms of service
  • Acceptable Use Policy
  • Email Support
Featured onFeatured on Startup FameFeatured on FazierFeatured on Dang.aiFeatured on Findly.toolsFeatured on DeepLaunch.ioFeatured on topfreealternativeFeatured on Submit AI ToolsFeatured on AI工具网 (ai138.com)
© 2026 UniRoute. All rights reserved.