API Volta API Documentation
API Volta exposes an OpenAI-compatible API. Point an OpenAI SDK at the base URL below, or call it directly over HTTP.
Quick start
- Create an account at /sign-up.
- Create an API key in the console.
- Send a request to
POST /v1/chat/completions.
Base URL: https://app.apivolta.com/v1
Authorization: Bearer API_KEY
Install the SDK
- cURL: no install needed — it ships with macOS, Linux and Windows 10+.
- Node.js:
npm install openai - Python:
pip install openai
Store your key in the API_VOLTA_API_KEY environment variable so it never lands in code or commits.
cURL
curl https://app.apivolta.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"DeepSeek-V4-Flash","messages":[{"role":"user","content":"Write a release note."}],"stream":false}'Node.js
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://app.apivolta.com/v1',
apiKey: process.env.API_VOLTA_API_KEY,
})
const response = await client.chat.completions.create({
model: 'DeepSeek-V4-Flash',
messages: [{ role: 'user', content: 'Write a release note.' }],
})Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://app.apivolta.com/v1",
api_key=os.environ["API_VOLTA_API_KEY"],
)
response = client.chat.completions.create(
model="DeepSeek-V4-Flash",
messages=[{"role": "user", "content": "Write a release note."}],
)
print(response.choices[0].message.content)Success response
A successful call returns HTTP 200 with the model reply in choices and the token usage used for billing in usage.
{
"id": "chatcmpl-example",
"object": "chat.completion",
"model": "DeepSeek-V4-Flash",
"choices": [
{
"index": 0,
"message": { "role": "assistant", "content": "..." },
"finish_reason": "stop"
}
],
"usage": { "prompt_tokens": 12, "completion_tokens": 48, "total_tokens": 60 }
}Streaming
Set stream to true to receive server-sent events as tokens are generated.
curl https://app.apivolta.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"DeepSeek-V4-Flash","messages":[{"role":"user","content":"Write a release note."}],"stream":true}'stream = client.chat.completions.create(
model="DeepSeek-V4-Flash",
messages=[{"role": "user", "content": "Write a release note."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")Error handling and troubleshooting
Standard HTTP status codes are returned. Retry transient failures with exponential backoff instead of failing silently.
401— Missing or invalid API key. Check that the Authorization header isBearer <your key>and that the key is active in the console.403— The key or account cannot use this model or endpoint. Check your balance and plan, or contact support with the request ID.404— Model not found. Check the alias spelling and casing against the model page.429— Rate limited. Wait and retry with exponential backoff; do not retry in a tight loop.500 / 502 / 503— Upstream provider issue. Retry once with backoff or switch to another model, then contact support if it persists.
Model aliases are case-sensitive
Use the exact alias from model pricing — for example DeepSeek-V4-Flash, GLM-5.3, Kimi-K2.6. A lowercase alias can return "No available channel" even though the model is published.
Keep your keys safe
API keys carry your balance. Never commit them to a repository, never share them in chat or email — support will never ask for your key — and rotate any key that leaks. Create and delete keys in the console. Do not send highly sensitive or regulated data without evaluating the applicable provider and cross-border processing risks.
Usage and billing
Balance, usage records and per-call token counts are visible in the console. Calls are charged at the published per-1M-token rates of the model you call, deducted from prepaid credit or an active plan allowance.
Using your Day Pass
The Day Pass is a flat $5 one-day product: unlimited token usage on a single model for 24 hours from payment, with up to 5 parallel requests. When a pass is active, the console wallet page shows your dedicated "Day Pass" API key. Point your client at the same base URL and call exactly DeepSeek-V4.1-Flash-Unlimited (case-sensitive):
curl https://app.apivolta.com/v1/chat/completions \
-H "Authorization: Bearer $API_VOLTA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"DeepSeek-V4.1-Flash-Unlimited","messages":[{"role":"user","content":"Build a test plan for my app."}]}'Requests with other model aliases on a Day Pass key return "No available channel" — the pass covers only that model. Other catalog models keep billing prepaid credit from your regular keys. A pass is non-refundable once activated; buying again while active adds 24 hours to the remaining window.