OpenAI's Codex CLI is no longer locked to OpenAI's own models. Its model_providers config accepts any OpenAI-compatible endpoint — which means you can run your coding agent on DeepSeek V4, Kimi K2.7-Code, GLM-5.3 or Qwen3.7-Max and switch between them without touching code.
NovAI (aiapi-pro.com) exposes 45 models behind one OpenAI-compatible key, including both the Chat Completions API and the Responses API that Codex prefers. Every claim below was verified against the live endpoint on 2026-09-01.
export NOVAI_API_KEY=nvai-your-key-here
model = "deepseek-v4-pro"
model_provider = "novai"
[model_providers.novai]
name = "NovAI"
base_url = "https://aiapi-pro.com/v1"
env_key = "NOVAI_API_KEY"
wire_api = "responses" # Codex's native wire format — verified working
cd your-repo
codex # requests now route through NovAI
# inside a session:
/model kimi-k2.7-code # switch models on the fly
All prices below are copied from the live pricing page — per 1M tokens, input / output:
| Model | In / Out per 1M | Context | Best for |
|---|---|---|---|
| kimi-k2.7-code | $0.67 / $3.40 | — | Everyday coding agent runs — best value |
| deepseek-v4-pro | $0.57 / $1.15 | 1M | Large repos, long planning chains |
| doubao-seed-2.0-code | $0.448 / $2.24 | — | Budget coding tasks |
| glm-5.3 | $1.25 / $4.00 | 1M | Hard reasoning, agentic tool chains |
| qwen3.7-max | $1.16 / $3.475 | — | General coding + bilingual repos |
| kimi-k3 | $2.90 / $14.50 | 1M | Long-horizon agents, stuck-task escalation |
| deepseek-v4-flash | $0.08 / $0.17 | 1M | Triage, quick reads, sub-agents |
A practical pattern: let Codex do exploration and small fixes on deepseek-v4-flash (8 cents per million input tokens), escalate real feature work to kimi-k2.7-code or deepseek-v4-pro, and only burn kimi-k3 on tasks the cheaper models fail twice.
Coding agents are token-hungry: every turn ships file contents and diffs back and forth, and a single long session can consume millions of tokens. At those volumes the per-token spread between models is the whole bill. Keeping exploration on sub-$0.10/M models and reserving premium models for decisions is the single biggest lever — no config gymnastics required, just the /model command.
Yes. We verified function calling end-to-end: a tools-schema request to /v1/chat/completions returned a well-formed tool_calls payload with finish_reason: tool_calls.
No. NovAI sits between you and the upstream vendors; you register with email and pay by card or crypto on our dashboard.
The $2 trial credit is enough for meaningful evaluation on the cheaper models — e.g. roughly 20M+ input tokens on deepseek-v4-flash.
Image and video generation models on NovAI carry a mandatory "AI-generated" watermark under Chinese regulation. Text and code models — everything relevant to Codex — are unaffected. See the watermark notice.
One OpenAI-compatible key for DeepSeek, Kimi, GLM, Qwen, MiniMax and Doubao. Prepaid balance, no subscription, zero platform fee. $2 trial credit on signup.
Start Free →