ZBStream

FAQ

These answers cover the most common authentication, model, usage, and network issues during integration.

Why am I getting 401?

Make sure you send the complete API key created on ZBStream via Authorization: Bearer <key> (or x-api-key on Anthropic routes). Keys are shown in full only once; revoked keys cannot be restored.

Why does the model not exist?

Call GET /v1/models first and use the exact returned id. Model availability changes with channel and application configuration.

Why do console credits differ from token counts?

Credits are computed by applying per-model rates to input, cache-hit, and output tokens separately — they are not the raw token total.

How do I handle request timeouts?

Check your local network, proxies, and client read timeouts. Enable streaming for long responses and apply bounded exponential backoff for 502, 503, and 504.