Skip to main content

1. Sign up

Visit tokens.flex.ai and request access. On approval you’ll receive an invite email; activate your account and land in the dashboard.

2. Create an API key

From the dashboard, open API Keys and click Create key. Copy the sk-… value — it’s shown once.
Every new account gets $10 of free credit. You don’t need to add a card to start.

3. Make a request

Pick a text model from the catalog. The examples below use Qwen/Qwen2.5-32B-Instruct.
curl https://tokens.flex.ai/v1/chat/completions \
  -H "Authorization: Bearer $FLEXAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Qwen/Qwen2.5-32B-Instruct",
    "messages": [
      {"role": "user", "content": "In one sentence, what is FlexAI?"}
    ]
  }'
You should see a single-line description come back. That’s it — your key works.

Next steps

Stream responses

Deliver tokens as they’re generated instead of waiting for the full response.

Call tools

Let the model invoke your functions and work with their output.

Understand billing

Rate limits, credit exhaustion behavior, and the 402 response.

Handle errors

Every 4xx/5xx we return, with example bodies and how to recover.