Introduction
Create an account, get an API key, and make your first Hanzo API call in under five minutes.
Getting Started
From nothing to your first API call in about five minutes. Create an account, get a key, make a real request — that is the whole path. Every Hanzo service lives behind one address, api.hanzo.ai, and one key, so you only ever set this up once.
Create Your Account
Go to hanzo.id and sign up with:
- Email + password -- the simplest path
- GitHub -- one-click OAuth, great for developers
- Google -- connect your workspace account
- Wallet -- sign in with an Ethereum-compatible wallet
Your Hanzo identity works everywhere: console, chat, platform, cloud, and all API services. One account, one login.
One account, one balance
The same identity and the same prepaid balance cover every product -- AI calls, deploys, storage. Add a card or crypto balance when you are ready to make your first call. See Credits & Billing.
Open the Console
After signing up you will be redirected to console.hanzo.ai. This is your dashboard for managing projects, API keys, usage, and billing.
If you already have an account, go directly to console.hanzo.ai -- it will redirect through hanzo.id for authentication if you are not already logged in.
Create a Project
Projects are the top-level container for your work. Each project has its own API keys, usage limits, and billing scope.
- In the console sidebar, click Projects
- Click New Project
- Enter a name (e.g.
my-first-project) - Select your organization (if you belong to more than one)
- Click Create
All resources -- API keys, models, usage logs -- are scoped to the active project.
Generate an API Key
- Navigate to your project in the console
- Click API Keys in the sidebar
- Click Create Key
- Give the key a descriptive name (e.g.
dev-testing) - Copy the key immediately -- it will not be shown again
Your key will look like this:
hk-proj-abc123def456...The hk- prefix identifies it as a Hanzo API key. See API Keys for a full breakdown of key types and prefixes.
Make Your First API Call
Every Hanzo service — AI, storage, identity, deploys — answers on one host, api.hanzo.ai, under /v1/<service>, with the same hk-* key. There is no second API host to configure.
curl
curl https://api.hanzo.ai/v1/chat/completions \
-H "Authorization: Bearer hk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "zen5",
"messages": [{"role": "user", "content": "Hello from Hanzo!"}]
}'List every model id the same way — /v1/models takes the same key:
curl https://api.hanzo.ai/v1/models \
-H "Authorization: Bearer hk-your-api-key"Python
Install the SDK:
pip install hanzoaifrom hanzoai import Hanzo
client = Hanzo(api_key="hk-your-api-key")
response = client.chat.completions.create(
model="zen5",
messages=[{"role": "user", "content": "Hello from Hanzo!"}],
)
print(response.choices[0].message.content)TypeScript
Install the SDK:
npm install @hanzo/aiimport Hanzo from '@hanzo/ai'
const client = new Hanzo({ apiKey: 'hk-your-api-key' })
const completion = await client.chat.completions.create({
model: 'zen5',
messages: [{ role: 'user', content: 'Hello from Hanzo!' }],
})
console.log(completion.choices[0].message.content)Already have an HTTP client?
/v1/chat/completions takes and returns the same JSON shapes as the
widely-implemented chat-completions format. That shape is an interchange format
we do not own and had no reason to re-invent, so a client written against it
works here once its base URL points at https://api.hanzo.ai/v1 and it sends
your Hanzo key.
Prefer a UI? Open chat.hanzo.ai and start chatting -- it spends from the same balance.
Add Credits
Top up a prepaid balance at billing.hanzo.ai:
- Card -- pay by card through the billing portal (processed by Square).
- Crypto -- top up on-chain with HUSD, the platform stablecoin, from a connected wallet.
Every product -- API calls, deploys, storage -- draws down the same balance. Watch usage in the console's Usage & Billing views. For how metering, credits, and invoices fit together, see Credits & Billing.
Building a funded startup? You may qualify for up to $150,000 in credits through the Startup Program.
Key Types at a Glance
| Prefix | Type | Purpose |
|---|---|---|
hk-* | API Key | Server-side API access. Scoped to a project. |
sk-* | Secret Key | Provider-level keys (e.g. upstream model providers). Never expose client-side. |
hz-* | Widget Key | Client-side keys for browser widgets. Restricted scopes, safe to embed. |
See API Keys for details on scopes, rotation, and production best practices.
What Next?
- Credits & Billing -- How trial and prepaid credits work, and how usage is metered
- Startup Program -- Up to $150,000 in credits for venture-backed startups
- Deploy on Hanzo -- Ship any Git repo with one-click deploy
- Referrals & Affiliates -- Earn credits by referring developers
- Authentication -- How SSO, OIDC, and sessions work across Hanzo services
- Organizations -- Multi-org setup, team management, and resource scoping
- AI API -- Chat, embeddings, images and reranking on one host
- API Reference -- OpenAPI docs for every endpoint
- SDKs -- Python, TypeScript, Go, Rust, and C client libraries
- MCP -- 260+ tools for AI models via the Model Context Protocol
Next steps
How is this guide?