Skip to main content
This guide takes you from a new API key to your first chat completion.

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

Keep your API key secret. Don’t put it in client-side code or commit it to a repository. If a key leaks, revoke it under Settings > API Keys. Revocation takes effect within about a minute.

Common issues

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.
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.
Your balance, or your Organization’s balance, has run out. Add credits under Billing.
You’re calling the previous, decommissioned API. Change the base URL to https://api.hyperbolic.ai/inference/v1.
See Errors for every error code.

Next steps

Chat completions

Streaming, multi-turn conversations, and parameters.

Inference overview

Pricing, billing, and the Model Playground.