Built for coding agents.

CheapAIAPI is a prepaid HTTP generation API. Read the machine-readable contract, then request a key. There is no public SDK, CLI, or anonymous sandbox.

What agents need to know.

HTTP firstUse the documented endpoints, OpenAPI schema, and starting-price JSON. Authenticated GET /v1/models is authoritative for an issued key.
Bearer authSend Authorization: Bearer sk_cheap_.... Do not invent a key or call the API until the user supplies CHEAPAIAPI_KEY and asks for a live request.
HTTP 402Missing Authorization returns 402 with an access object. Invalid keys return 401. This is not a cryptocurrency payment quote.
MCPHosted MCP server at https://cheapaiapi.org/mcp with the same bearer key; same prices and errors as the HTTP API. Export CHEAPAIAPI_KEY, then: Claude Code claude mcp add --transport http cheapaiapi https://cheapaiapi.org/mcp --header "Authorization: Bearer $CHEAPAIAPI_KEY"; Codex [mcp_servers.cheapaiapi] with url = "https://cheapaiapi.org/mcp" and bearer_token_env_var = "CHEAPAIAPI_KEY"; Cursor ~/.cursor/mcp.json with "headers": {"Authorization": "Bearer ${env:CHEAPAIAPI_KEY}"}.
PrepaidPublic starting prices are available without a quote. Account access and volume rates start at contact.

Agent-readable sources

Keep /agents.md, /docs/index.md, and /pricing.md as the durable contract. HTML marketing pages are for humans; those Markdown files are the copy agents can fetch without a browser.

API docs →