Prerequisites
Pro plan or Organization
Required for personal accounts.
Credits
A balance above zero.
Python or cURL
Or any HTTP client.
Make your first request
1
Create an API key
In the dashboard, go to Settings > API Keys and click Create API Key. Copy the key, which starts with
sk_live_. You can’t view it again after you close the dialog.To bill an Organization instead of your personal balance, switch to the Organization first, then create the key.2
Pick a model
The examples below use
glm-5.3-flash. To use another model, replace it with an ID from Available models, or copy one from the model’s page under Models.glm-5.3-flash is a reasoning model: it thinks before it answers, and the thinking counts against max_tokens. That’s why the examples set max_tokens to 2048. See Reasoning models.3
Send a request
- Python
- OpenAI SDK
- cURL
Common issues
403 with inference_requires_pro
403 with inference_requires_pro
Your personal account is on the Free Tier. Upgrade with a one-time $5 deposit: click Upgrade to Pro for $5 under Settings > Plan. Retry after about 30 seconds. Or use an Organization API key. See Plan.
401 with legacy_key_unsupported or api_key_malformed
401 with legacy_key_unsupported or api_key_malformed
The key isn’t an
sk_live_ key. Keys from the previous inference API aren’t accepted. Create a new key under Settings > API Keys.402 with insufficient_balance
402 with insufficient_balance
Your balance, or your Organization’s balance, has run out. Add credits under Billing.
404 from api.hyperbolic.xyz
404 from api.hyperbolic.xyz
You’re calling the previous, decommissioned API. Change the base URL to
https://api.hyperbolic.ai/inference/v1.Next steps
Chat completions
Streaming, multi-turn conversations, and parameters.
Inference overview
Pricing, billing, and the Model Playground.

