Command Code Provider API
Every top model, one API. Call Command Code's models from any OpenAI- or Anthropic-compatible client. Pay as you go, no markup, every deal applied automatically.
This page is about calling Command Code's models from your own code. Going the other way, bringing a third-party endpoint into the Command Code CLI is in BYOK Providers.
- Every top model: The best open & closed models on one API: Claude, GPT, Gemini, & top open-models.
- Fast, no limits: Best-in-class speed and performance, with rate limits built for production, not demos.
- Build anything: Standard OpenAI and Anthropic endpoints. Use any agent, anywhere. No lock-in.
The Provider plan starts at $15/month + $1.01 card processing fee. Pay as you go, no markup.
- Pay as you go: Start with $15 of API credit, then top up as needed. No monthly minimums or commitments.
- No markup: Requests bill at the underlying API rates. Best prices on every model, with no hidden fees.
- All deals apply: Discounts and usage multipliers are applied automatically to every request.
- Credits never expire. Any unused credit rolls over.
Per-model rates and the full plan comparison live on Pricing & Limits.
| Endpoint | Method | Format |
|---|---|---|
https://api.commandcode.ai/provider/v1/chat/completions | POST | OpenAI Chat Completions |
https://api.commandcode.ai/provider/v1/responses | POST | OpenAI Responses |
https://api.commandcode.ai/provider/v1/messages | POST | Anthropic Messages |
https://api.commandcode.ai/provider/v1/models | GET | Models list |
Subscribe and get an API key
Every plan except the Go plan has API access - GOAT, Pro, Max, Team, and Provider all use these endpoints (see Pricing above). Subscribe, then create your API key from Studio. The same key authenticates the CLI and the API. Coding plans meter API usage against their own credits and per-model access; the Provider plan is the pay-as-you-go tier built for production API traffic.
Send a request
Once you have your API key, you can send a request to one of the following endpoints.
OpenAI Chat Completions /v1/chat/completions
Request and response bodies follow the OpenAI Chat Completions schema.
OpenAI Responses /v1/responses
Request and response bodies follow the OpenAI Responses schema. Available for OpenAI models and open models. Claude models stay on /v1/messages.