Quick start

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

  1. Create an account and check your balance

    Register ยท Wallet

    Sign in, open your wallet and confirm that your account has enough balance for the model you want to use.

  2. Create your API key

    Open API Keys in the console, create a key for this application and copy it. A website password or a provider account key cannot replace your CheapAI API key.

  3. Choose a model and its protocol

    Copy an exact model ID from Models & Pricing and check its supported endpoint and available routes. Replace YOUR_MODEL_ID in the examples with that ID; use a Claude model for YOUR_CLAUDE_MODEL_ID.

Set your environment variables

Replace YOUR_API_KEY with your own key. Set these variables on your own computer or application server; never put a real key in browser code, a public repository or a screenshot.

Environment variables
export CHEAPAI_API_KEY="YOUR_API_KEY"
export CHEAPAI_MODEL="YOUR_MODEL_ID"

Verify access, then send a request

The cURL examples below use macOS/Linux shell syntax. First list the models accessible to your key. A successful model list checks authentication; the selected model still needs to support the endpoint you call.

GET /v1/models
curl https://cheapai.info/v1/models \
  -H "Authorization: Bearer $CHEAPAI_API_KEY"
POST /v1/responses
curl https://cheapai.info/v1/responses \
  -H "Authorization: Bearer $CHEAPAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_MODEL_ID",
    "input": "Hello!"
  }'

A successful Responses request returns JSON with generated content in output. Then open Request logs to check the model, status, token usage and charge. Generation requests consume account balance.