Prerequisites
Before starting, ensure you have:- A SambaCloud account and API key
- An OpenRouter account
Setup
1
Navigate to BYOK settings
Go to your OpenRouter settings and click on BYOK.

2
Select SambaNova as your provider
Search for SambaNova in the provider list and select it.

3
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).


