Cherry Studio Custom Provider: API Host, Models and Cost
Connect Cherry Studio to KeepRouter, understand how trailing slashes change /v1 URL assembly, separate vision and embedding models, and track spend.
Published 2026-10-03 · Updated 2026-10-03 · KeepRouter Editorial · 5 minute read

Add KeepRouter as a custom OpenAI-compatible provider in Cherry Studio by setting the API Host to https://keeprouter.com, entering a scoped KeepRouter API key, checking the live preview URL that Cherry Studio displays underneath the input field, and adding exact catalog model IDs by capability. Always inspect that preview URL before clicking Check so you never send /v1/v1/chat/completions.
Cherry Studio is widely used as a local desktop workbench for comparing chat models, vision inputs and local knowledge bases without running a server. Because one desktop window can trigger chat, topic naming, embeddings and vision calls, separating model roles keeps both errors and spend predictable.
Watch Cherry Studio's URL preview rule carefully
The Cherry Studio official documentation and Cherry Studio GitHub repository document custom provider setup and URL concatenation rules. Cherry Studio adjusts path assembly depending on trailing slashes (/ or #):
| API Host entered in Cherry Studio | Resulting chat endpoint preview | When to use |
|---|---|---|
https://keeprouter.com | https://keeprouter.com/v1/chat/completions | Standard OpenAI-type custom provider in Cherry Studio |
https://keeprouter.com/v1/ | https://keeprouter.com/v1/chat/completions | Explicit /v1/ override when trailing slash disables auto-/v1 |
https://keeprouter.com/v1 (if client auto-appends /v1) | https://keeprouter.com/v1/v1/chat/completions (404 error) | Avoid whenever the preview shows a duplicated /v1 |
Look directly at the muted endpoint preview rendered below API Host in your installed Cherry Studio version: as long as the preview reads https://keeprouter.com/v1/chat/completions for OpenAI mode, the path is aligned.
Add models with accurate capability tags
Start by adding free to test basic connectivity with zero balance impact. Once Check succeeds, add only the exact model IDs you intend to use from the KeepRouter model catalog:
- Multimodal chat (
deepseek-flash). Enable vision only on models whose catalog page lists vision support, such as deepseek-flash. Marking a text-only model as vision-capable in Cherry Studio causes HTTP 400 errors as soon as you paste a screenshot. - Knowledge base embeddings. Assign a dedicated embedding model to Cherry Studio's Knowledge Base settings rather than a chat model, and review multimodal retrieval boundaries on doubao-embedding-vision-251215 before indexing large PDFs.
- Image generation. Keep image models on their dedicated image generation view; see the Seedream and GPT Image billing guide for per-image versus token billing rules.
Diagnose Check errors and hidden desktop token spend
| Desktop symptom | First place to check | Fix |
|---|---|---|
| 404 during Check | Preview URL below API Host | Remove duplicate /v1 so preview ends in /v1/chat/completions |
| 401 Unauthorized | Key pasted with extra whitespace or disabled in Console | Re-copy key or create a dedicated cherry-studio key |
| Check fails on scoped key | Cherry Studio probes a model outside your key allowlist | Select the permitted model in the Check dialog |
| Higher spend than single-turn estimate | Long conversation history + automatic topic naming + knowledge chunks | Cap context message count in Assistant settings and audit Console usage |
Desktop clients send every retained history message on each turn unless you cap context length in the assistant settings. Estimate multi-turn and RAG workloads with the API cost calculator, compare team web deployments in the Open WebUI setup guide, and create a dedicated desktop key with a monthly spend limit via the quickstart.
Frequently asked questions
Why did Cherry Studio return 404 with https://keeprouter.com/v1?
Cherry Studio automatically appends /v1/chat/completions unless a trailing slash overrides it. Enter https://keeprouter.com or https://keeprouter.com/v1/ and confirm the preview shows /v1/chat/completions once.
How do I control spend when testing multiple models in Cherry Studio?
Create a dedicated KeepRouter API key with a daily or monthly USD spend cap in Console and limit the assistant's retained context message count.
Can I test Cherry Studio connectivity before topping up?
Yes. Add the model ID free using a newly created trial key to confirm HTTP 200 replies before funding paid models.
Sources reviewed
Article last reviewed 2026-10-03