Introduction
What DirtCheapAI is
DirtCheapAI is a public AI API service with an OpenAI-compatible and Anthropic-compatible interface. You keep the SDK and tool flow you already use. In most cases, you only change the base URL and API key.
What you can do with it
- Call
POST /api/v1/chat/completionsfrom OpenAI-style clients. - Call
POST /api/v1/messagesfrom Anthropic-style clients. - Count tokens with
POST /api/v1/messages/count_tokensbefore sending a large prompt. - Read the current model catalog with
GET /api/v1/models. - Check account balance and package state with
GET /api/v1/balance.
Supported model names for current docs
claude-haiku-4.5claude-opus-4.5claude-opus-4.6claude-sonnet-4.5claude-sonnet-4.6gemini-3-flash-previewgemini-3-pro-previewgemini-3.1-progpt-5.3-codexgpt-5.4grok-code-fast-1
When to use which endpoint
| Need | Endpoint |
|---|---|
| OpenAI SDK, Cursor, Cline, Continue, Windsurf, Zed, Kilo Code, Aider, OpenClaw | `/api/v1/chat/completions` |
| Claude-native request format | `/api/v1/messages` |
| Claude token estimation | `/api/v1/messages/count_tokens` |
| Model catalog and balance checks | `/api/v1/models` |
| Key balance and remaining credits | `/api/v1/balance` |