1. Get a key
- Sign in to console.bytespike.ai — sign-up takes ~30 seconds (email + password, or Google).
- Top up a few dollars at Billing. The minimum top-up is $5.
- Go to API keys and click Create key. Pick a routing group (
claude-defaultfor Claude models,gemini-defaultfor Gemini, ordefaultto route everything — see Models for what’s where).
sk-byts-... and only displays once — store it somewhere safe.
2. Pick a protocol
ByteSpike speaks three protocols natively. Same gateway, identical billing — pick the header your client speaks.- Anthropic Messages
- OpenAI Chat Completions
- Gemini Native
3. Read the quota headers
Every response — success or failure — carries the gateway’s accounting headers:X-RateLimit-Limit/Remaining/Reset— the rate-limit bucket closest to constraining you, in USD. Reset is a Unix timestamp.X-Quota-Remaining-Credits— lifetime credits remaining on this key (USD;1 USD = 1,000,000 credits).0.00means you’ve hit the per-keyquotacap; top up at the console or raise the cap.X-Org-Quota-Remaining-Credits— same, at the org wallet level, on org-owned keys.
GET /v1/usage
or look at the delta in X-Quota-Remaining-Credits between two
requests. Failed requests don’t bill — X-Quota-Remaining-Credits
won’t move on a non-2xx.
4. Use any model behind the same key
Switching models means changing exactly one field —model. No new
SDKs, no new auth flows, no new billing accounts.
claude-default won’t reach DeepSeek; pick
the right group at key-creation time, or create a second key. The
console’s Test button
verifies key + group + model before you wire it into a client.
For image / video / utility endpoints, see the
API Reference — the request shape per
family is documented per-endpoint.
Next
Authentication
Sub-keys, scopes, IP allowlists.
Credits & Billing
How credits convert to dollars, when failures bill (they don’t), and how to read the headers.