# 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](https://keeprouter.com/editorial-policy#editorial-team) · 5 minute read_

![Layered responsibility map between an application, AI gateway, and model providers](https://keeprouter.com/editorial/blog/ai-gateway-guide.png)

_An application connects to a model API through an explicit request boundary. Conceptual illustration._

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](https://docs.cherry-ai.com/) and [Cherry Studio GitHub repository](https://github.com/CherryHQ/cherry-studio) 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](/models):

1. **Multimodal chat (`deepseek-flash`).** Enable vision only on models whose catalog page lists vision support, such as [deepseek-flash](/models/deepseek-flash). Marking a text-only model as vision-capable in Cherry Studio causes HTTP 400 errors as soon as you paste a screenshot.
2. **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](/models/doubao-embedding-vision-251215) before indexing large PDFs.
3. **Image generation.** Keep image models on their dedicated image generation view; see the [Seedream and GPT Image billing guide](/blog/seedream-gpt-image-api-pricing-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](/tools/api-cost-calculator), compare team web deployments in the [Open WebUI setup guide](/blog/open-webui-openai-compatible-api), and create a dedicated desktop key with a monthly spend limit via the [quickstart](/docs/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_

1. [Cherry Studio official documentation](https://docs.cherry-ai.com/)
2. [Cherry Studio GitHub repository](https://github.com/CherryHQ/cherry-studio)

## Related guides

- [Seedream 5.0 Lite, 4.5 and GPT Image 2 API: Billing Guide](https://keeprouter.com/blog/seedream-gpt-image-api-pricing-guide.md)
- [Open WebUI Custom API: Connect Models Without Surprises](https://keeprouter.com/blog/open-webui-openai-compatible-api.md)
- [deepseek flash](https://keeprouter.com/models/deepseek-flash.md)
- [quickstart](https://keeprouter.com/docs/quickstart.md)

## Try the setup with one small request

Follow the configuration steps, keep the key on your server, and check the returned answer and usage.

[Open the setup guide](https://keeprouter.com/docs/quickstart)

[Create a key to test the free model](https://keeprouter.com/login?returnTo=%2Fconsole%2Fkeys%3Fmodel%3Dfree)

The free test uses the free model. Other paid models require sufficient prepaid credit.

[All posts](https://keeprouter.com/blog.md) · [Models & pricing](https://keeprouter.com/models.md)
