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. Add billing, then create an API key
A credit card — preceded by a billing address — is required before you can create keys. Add both from the dashboard’s Billing page, then open API Keys and click Create key. Copy thesk-… value — it’s shown once.
New accounts start with $10 of free credit — your first requests draw from it before any card charge.
3. Make a request
Pick a text model from the catalog. The examples below useLlama-3.3-70B-Instruct-FP8.
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.
Discover models
Filter the live catalog from code to find the right text, vision, or embedding model.
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.