Introduction
Everything you need to connect to the CheapAI API.
CheapAI connects your applications to supported AI models through a shared API gateway. Keep your API keys, wallet and request logs in one console.
Choose the model in your client. A Smart API Key selects a route available to your account according to your chosen strategy.
Create Smart API Key →Create a key, choose a model and send your first request.
API requestsChoose an endpoint and use cURL, Python or JavaScript.
TroubleshootingFind the cause of authentication, request and connection errors.
Setup tools (required)Download CC Switch or Folkbench Switch, then use it to configure each client.
Codex CLI (command line)Download Codex CLI, then connect it to CheapAI with CC Switch or Folkbench Switch.
Claude CLI (command line)Download Claude Code, then connect it to CheapAI with CC Switch or Folkbench Switch.
Smart API KeyChoose a routing strategy for the models available to your account.