AI & BYOK
Setting Up Your OpenRouter Key
Use your own OpenRouter API key to control AI costs and model selection.
BYOK (Bring Your Own Key) lets you route AI calls through your own API key so you control costs, billing, and model selection. An API key from at least one provider is required for AI features to work.
OpenRouter is the recommended provider because it gives you access to models from Anthropic, OpenAI, Google, and others through a single key and unified API.
Get an OpenRouter key
- Sign up at openrouter.ai
- Go to Keys → Create key
- Set a credit limit if you want a hard spending cap
- Copy the key (
sk-or-...)
Add the key to Ticket0
- In your workspace, go to Settings → AI
- Under Provider, select OpenRouter
- Paste your key into the API key field
- Click Save and test — Ticket0 will make a test call to verify the key
Choose a model
Once your OpenRouter key is set, select the model you want to use for each AI task:
| Task | Recommended model |
|---|---|
| Classification | google/gemini-2.5-flash |
| Draft replies | anthropic/claude-sonnet-4-5 |
| Knowledge base embedding | openai/text-embedding-3-small |
You can use different models for different tasks to balance quality and cost.
Spend cap
Set a monthly spend cap (USD) in the same AI settings page. Ticket0 pauses AI features when the cap is reached and sends you an email alert at 80% and 100%.