Get Your Forward Token
A self forward token is auto-generated when you sign up. Go to Developers > Secrets in your dashboard, copy it, and save it as an environment variable:
What’s a “self” token? It’s a forward token that isn’t linked to a customer or meter — perfect for testing. No additional setup required. Learn more in the Forward Proxy guide.
Make Your First Request
Your forward token goes in the
Authorization header, and the request body stays unchanged from the provider’s API.- cURL
- TypeScript
Check the Dashboard
Go to Analytics > Requests in your dashboard. Find your request by timestamp or request ID to see token counts, cost breakdown, model, and provider — all captured automatically.See the Forward Proxy guide for multi-provider examples, streaming, error handling, and advanced configuration.
What’s Next?
Charge Your First Customer
Set up pricing and checkout to monetize your AI service
How Lava Works
Understand Lava’s architecture, gateway routing, and key concepts
Troubleshooting
Where is my forward token?
Where is my forward token?
Go to Gateway > Secrets. If the section is missing, verify you’re logged into a merchant account (not a wallet-only account).
401 Unauthorized
401 Unauthorized
402 Insufficient Balance
402 Insufficient Balance
Your Lava wallet needs funds. Go to Wallet > Billing to add a payment method.
What's the difference between a secret key and a forward token?
What's the difference between a secret key and a forward token?
A secret key is your base credential. A forward token combines your secret key + connection + meter into a single auth token for API calls. The self forward token charges your own wallet and is auto-generated for testing. For production, you’ll generate tokens per-customer using the SDK.