Quick Start
Create a LEAPERone account, generate an API key, top up usage credits, and make your first OpenAI-compatible API request with curl or an SDK.
1. Create an Account
Sign up from the Dashboard using GitHub or Google.
2. Get an API Key
Go to Dashboard → Settings → API Keys and create a new key. It starts with sk-.
Store your API key securely. It will only be shown once.
3. Make Your First Request
curl -X POST https://api.leaper.one/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'You should receive a response like:
{
"id": "chatcmpl-abc123",
"choices": [
{
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
}
}
]
}4. Check Your Balance
Authenticate the control-plane CLI to obtain a scoped control token:
npx @leaperone/cli auth login
npx @leaperone/cli credit balanceFor service integrations, use a control token with the credits:read scope:
curl https://api.leaper.one/api/v1/credits/balance \
-H "Authorization: Bearer lpc-your-control-token"What's Next?
- Authentication — learn about API key management
- Chat Completions — streaming, tools, JSON mode
- Image Generation — async image creation workflow
- Seedance 2.0 — CDN image references, polling, and MP4 downloads