Codex APICodex API is live — connect Codex CLI with an API keyOpen Codex API
Codex API
  • Codex API
  • Codex CLI
  • API Key
  • Relay
  • Pricing
Codex API
Codex API
  • Codex API
  • Codex CLI
  • Codex CLI API
  • Codex API Key
  • OpenAI Codex API
API setup
  • Codex Relay Overview
  • Codex API Pricing
  • Dashboard API Keys
  • Codex Referral
Company
  • About
  • Contact
Legal
  • Privacy Policy
  • Terms of Service
  • Refund Policy
Codex API

Codex API access for Codex CLI, Codex App-style tools, dashboard API keys, OpenAI-compatible base URLs, streaming, pricing, and fair-use agent workflows.

Email

This site provides a Codex API storefront and OpenAI-compatible relay surface for developer workflows. It is not the official OpenAI Codex product.

© 2026 Codex API Frontend All Rights Reserved. DREAMEGA INFORMATION TECHNOLOGY LLC

[email protected]
OverviewPricingReferral
Codex subscription + API relay

Codex Subscription and API Relay

MyCodex API: same-price anchors with about 2x visible usage

Buy Codex usage like a subscription, then connect the same allowance to your own tools, agents, and projects through an OpenAI-compatible API.

Try freeView pricing

Codex subscription

Buy MyCodex API and agent coding usage through Go, Plus, Pro 5x, or Pro 20x plans.

API relay

Issue Dashboard API Keys from the same account for Cursor, Cline, Open WebUI, custom agents, and the OpenAI SDK.

Server-side secret boundary

Upstream tokens, local Codex config, prehook files, prompts, and private context stay server-side.

Heavy AI coding / agent users

Buy higher Codex usage with a fixed monthly fee while keeping dashboard visibility, limit reasons, and add-on paths.

Independent developers / small products

Connect an OpenAI-compatible endpoint to tools, bots, automation scripts, and customer projects.

Small teams / courses

Use Business shared pools, project keys, member budgets, and billing exports instead of shared accounts.

Product logic

One account, two usage modes

Subscription users care about Codex capacity; API users care about base_url, API key, and model. Both paths share plans, fair-use, add-ons, referrals, and metadata-only ledgers.

View plans

Subscription path

Free, Go, Plus, Pro 5x, Pro 20x, and Business show visible monthly usage and limit behavior.

API path

Dashboard API Keys call /api/v1/codex/* while the server verifies plan, allowance, concurrency, and risk controls.

Secret boundary

Customers get a platform key; owner-side tokens, Codex config, prehooks, and private context stay server-side.

Plan preview

Go / Plus / Pro: same price, about 2x usage

View full pricing

Free

Connection validation

Free

10 successful calls or 1 trial day

Allowance
10 successful calls or 1 trial day
RPM
Low RPM
Concurrency
Single validation lane
Overage
Upgrade to Go/Plus to continue
Validate MyCodex API, Codex workflows, and API setup.
Test the base_url, API key, model, and streaming.
Low concurrency; no carryover, transfer, or cash-out; upgrade prompt at limit.

Go

Light individual use

$8/month

Same price as ChatGPT Go, about 2x visible usage

Allowance
About 2x ChatGPT Go visible usage
RPM
Low RPM
Concurrency
Low individual concurrency
Overage
Temporary add-on at 25%-50% of monthly fee
For light MyCodex tasks and occasional agent usage.
Use with Cursor, Cline, Open WebUI, and small internal tools.
Single user; low concurrency; after fair-use, throttle, queue, or buy an add-on.

Plus

Recommended

Recommended individual plan

$20/month

Same price as ChatGPT Plus, API access + about 2x usage

Allowance
About 2x ChatGPT Plus visible usage
RPM
Standard RPM
Concurrency
Standard individual concurrency
Overage
Temporary add-on at 25%-50% of monthly fee
For daily MyCodex coding, automation, and agent workflows.
The same plan allowance powers Dashboard API Key calls.
Standard RPM; after fair-use, throttle/queue; add-ons available.

Pro 5x

Heavy coding agent use

$100/month

Same price as official Pro 5x, about 2x visible usage

Allowance
About 2x official Pro 5x visible usage
RPM
Higher RPM
Concurrency
Priority individual concurrency
Overage
Heavy add-on at 20%-40% of monthly fee
For longer MyCodex sessions and high-effort tasks.
Higher priority and RPM for heavy mixed agent/API usage.
Single user; fair-use or abnormal concurrency triggers throttling; bursts use add-ons.

Pro 20x

High-frequency agent / small production traffic

$200/month

Same price as official Pro 20x, highest individual capacity anchor

Allowance
About 2x official Pro 20x visible usage
RPM
High RPM
Concurrency
High-frequency agent concurrency pool
Overage
Heavy add-on at 20%-40% of monthly fee
For high-frequency agents, long tasks, and small production workflows.
Includes an agent dashboard, higher concurrency pools, and clearer usage reasons.
Still usable after fair-use with lower priority; heavy add-ons available.

Business

Teams and courses

$25/user/month monthly · $20/user/month annual

2-seat minimum, shared allowance pool and project keys

Allowance
About 2x Business visible usage per seat
RPM
Team pool RPM
Concurrency
Project-key isolated concurrency
Overage
Seat or shared pool add-ons
Team members use MyCodex and agent workflows by role.
Owners can create project keys, member budgets, and shared organization pools.
Add seats as needed; over organization allowance can auto-add or hard stop.
5-minute setup

Subscription and API usage share one account and allowance

Individuals can treat it as a Codex usage subscription. Developers and teams can connect the same allowance to an OpenAI-compatible API. Migration should only require changing base_url, api_key, and model; customers do not upload their own upstream key.

The free trial grants successful calls only, not a stockpiled wallet balance.
At the limit, show throttling, queueing, add-ons, or upgrade paths instead of silently dropping requests.
Metadata-only usage logs record request id, plan, usage, capacity state, and error code.

Codex/API quickstart

Copy these Codex API values into Codex CLI-style tools, OpenAI-compatible SDKs, Cursor, Cline, or Open WebUI. The frontend endpoint validates your dashboard API key before forwarding to the private relay; the same account can also be used as a Codex usage subscription.

base_url
https://codexcliapi.com/api/v1/codex
api_key
cps_live_your_dashboard_key
model
gpt-5.4-mini
Three-line curl
curl -N "https://codexcliapi.com/api/v1/codex/chat/completions" \
  -H "Authorization: Bearer cps_live_your_dashboard_key" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.4-mini","stream":true,"messages":[{"role":"user","content":"Say hello from the relay"}]}'
Cursor
Provider: OpenAI Compatible
Base URL: https://codexcliapi.com/api/v1/codex
API Key: cps_live_your_dashboard_key
Model: gpt-5.4-mini
Cline
API Provider: OpenAI Compatible
Base URL: https://codexcliapi.com/api/v1/codex
API Key: cps_live_your_dashboard_key
Model ID: gpt-5.4-mini
Streaming: enabled
Open WebUI
Connection type: OpenAI API compatible
API Base URL: https://codexcliapi.com/api/v1/codex
API Key: cps_live_your_dashboard_key
Model: gpt-5.4-mini

Use the dashboard API key issued here. Do not paste owner-side OpenAI Platform keys, ChatGPT/Codex OAuth tokens, or private relay internal keys into Codex CLI or client tools.