Quick Start
Get your API key and make your first request in 5 minutes.
1. Create an Account
Sign up at leaper.one/signin 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
curl https://api.leaper.one/v1/cli/credits/balance \
-H "Authorization: Bearer sk-your-api-key"Or use the CLI:
npx @leaperone/cli credit balanceWhat's Next?
- Authentication — learn about API key management
- Chat Completions — streaming, tools, JSON mode
- Image Generation — async image creation workflow