BYOK (Bring Your Own Key) lets you connect your own provider API keys to Spro. Requests served through your keys continue to use Spro's gateway, routing, guardrails, caching, and observability while the underlying provider account, pricing, and billing remain yours.
How BYOK is used
BYOK is the default-first behavior. When a workspace has a BYOK credential configured for the provider being requested, Spro attempts to serve the request using that credential first.
If no BYOK credential is configured, or the configured credential cannot serve the request because of an authentication error, rate limit, or provider error, the request can fall back to Spro's managed provider access where available.
You configure the credential once at the workspace level. Requests using that provider can then automatically use the configured BYOK credential without requiring provider-specific configuration on every request.
Supported providers
BYOK is available for the following providers:
| Provider | Configuration |
|---|---|
| Anthropic | API key |
| Azure | API key / endpoint |
| Cerebras | API key |
| DeepSeek | API key |
| Google AI Studio | API key |
| Groq | API key |
| MiniMax | API key |
| Mistral AI | API key |
| Moonshot AI | API key |
| OpenAI | API key |
| Perplexity | API key |
| SambaNova | API key |
| Together | API key |
| xAI | API key |
| Xiaomi | API key |
| Z.AI | API key |
Your provider credentials are encrypted at rest and are not exposed as plaintext after they are saved. The dashboard displays a masked reference rather than the complete credential. See Data Handling.
Billing and usage
BYOK-served requests are not charged against your Spro credit balance. The underlying model usage is billed by the provider according to your provider account and pricing.
Spro continues to record usage and telemetry for BYOK requests, including:
- Request activity
- Token usage
- Model and provider information
- Latency
- API key usage
- Guardrail decisions
- Routing information
BYOK changes which provider account is responsible for the model charges, not whether the request is observable through Spro.
