OpenRouter supports both OpenRouter credits and Bring Your Own Key (BYOK). When using OpenRouter credits, rate limits for SambaNova are managed by OpenRouter. When using your own SambaNova API key, you retain direct control over rate limits and billing through your SambaNova account. All provider keys are securely encrypted and used exclusively for requests routed to SambaNova.Documentation Index
Fetch the complete documentation index at: https://sambanova-systems.mintlify.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before starting, ensure you have:- A SambaCloud account and API key
- An OpenRouter account
Setup
Add your SambaCloud API key
Using the Python SDK
Now you can use the OpenRouter Python SDK as you normally would. API requests are automatically routed using the keys you provided in your settings.When you use BYOK (Bring Your Own Key) on OpenRouter:
- You pay the model provider directly using your own API key.
- OpenRouter charges a 5% platform fee based on the model’s standard OpenRouter pricing.
- The fee is deducted from your OpenRouter credits, not your provider account.
- The first 1 million BYOK requests per month are free (no 5% fee).




