LLM SDK
Configure end-user sessions and platform secret keys for the LLM SDK
The LLM SDK settings page lets you embed AI and in-app credit purchases into your own application — your end users get their own wallets, and you control markup and access. You'll find it under Settings → SDK for a project.

End-user sessions
Turn on Enable end-user sessions to allow this project to mint short-lived browser session tokens for your users.
| Field | Description |
|---|---|
| Markup percent | The percentage you add on top of provider cost for each end-user request (0–100%) |
| Allowed origins | The browser origins permitted to use session tokens, one per line (e.g. https://app.example.com) |
Click Save Settings to apply changes.
Platform secret keys
Platform secret keys are server-side keys used to mint end-user sessions. Keep them on your backend — never expose them in the browser.
- Create Live Key — A production key. Top-ups made with it use live billing.
- Create Test Key — A sandbox key. Top-ups use the Stripe sandbox, so you can build and test without real charges.
A secret key is shown only once at creation time. Copy it immediately — it won't be displayed again. If you lose a key, revoke it and create a new one.
Each key in the list shows its description, a test badge when applicable, its status, and a masked token. Use Revoke to permanently disable a key.
For the full SDK integration guide — server, client, and React components — see the LLM SDK feature docs.
How is this guide?
Last updated on