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.

Start with a Smart API Key

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 →
Quick start→

Create a key, choose a model and send your first request.

API requests→

Choose an endpoint and use cURL, Python or JavaScript.

Troubleshooting→

Find 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 Key→

Choose a routing strategy for the models available to your account.

  • Introduction
  • Quick start
  • API keys and access
  • API requests
  • Models and billing
  • Troubleshooting
  • Setup tools (required)
  • ChatGPT (desktop)
  • Codex CLI (command line)
  • Claude (desktop)
  • Claude CLI (command line)
  • DeepSeek Harness
  • Smart API Key
  • Image Generation
  • Group failover
  • Data and key security