Author’s note: Connecting your own model in Cherry Studio isn’t hard—the hard part is understanding the bill. Chat, knowledge base, and image generation each bill differently, and this article explains them one by one.
Many people open Cherry Studio for the first time and see it as a good-looking chat client. After using it for a few days, they discover it can also build a local knowledge base and has a separate image-generation workspace. Then the question comes up: after entering the same API key, why do three different billing units show up on the bill?
The main takeaway of this article is one custom OpenAI-compatible service, one API key: chat is billed by token, knowledge-base embeddings are billed separately, and image generation is billed per image. Below, using APIYI apiyi.com’s OpenAI-compatible endpoint as an example, we’ll walk through each of these three bills.
This isn’t another collection of setup screenshots where you just fill in an address and you’re done—the point is to show you where each feature’s costs come from before you configure anything.
Key value: After reading this, you’ll be able to choose the right model for chat, knowledge base, and image generation in Cherry Studio, and roughly estimate the cost of each type of usage.

Cherry Studio with Your Own Models: Key Takeaways
Cherry Studio is an open-source AI workbench from CherryHQ that supports Windows, macOS, and Linux. As of 2026-11-30, its GitHub repo had roughly 54,000 stars, with commits still landing that same day. The capabilities listed in the README include chat, Agents with independent instructions and tool permissions, a local knowledge base, image generation, translation, scheduled tasks, and connecting to chat apps through channels.
On the model access side, the README says you can connect OpenAI, Anthropic, Gemini, or other cloud services, add custom compatible services, and run Ollama and LM Studio locally. What we’re covering here is the “custom compatible service” route.
| Feature | Model type called | Billing unit | Example model | Available platforms |
|---|---|---|---|---|
| Chat | Chat model | Per million tokens, input and output priced separately | qwen3.8-flash | APIYI apiyi.com and other compatible services |
| Knowledge base | Embedding model (plus a chat model to answer) | Per million tokens | text-embedding-3-small | Same as above |
| Image generation | Image model | Per image | gpt-image-2.6-all | Same as above |
Why Cherry Studio’s three bills deserve separate scrutiny
The chat bill is the most intuitive: the prompt you send out is input, what the model replies is output, and the two are priced differently. If the conversation history gets long, the context is re-sent every round, so input tokens keep piling up.
The knowledge base bill has two layers, and the one people overlook most easily. When you import files, folders, or web pages, Cherry Studio first calls the embedding model to chunk the content and convert it into vectors — that step is billed by embedding tokens. Later, when you ask a question, the system retrieves the relevant snippets and hands them to the chat model to answer, which lands right back on the chat bill. So knowledge base Q&A actually incurs both embedding and chat costs at the same time.
Image generation follows an entirely different logic. It doesn’t care how long your prompt is — it bills by the number of images generated. Every time you hit “one more” in the image generation workspace, that’s a separate charge.

Cherry Studio with Your Own Models: Quick Start
Step 1: Add a Custom OpenAI-Compatible Provider
In Cherry Studio’s settings, open the model providers section, add a new provider, and pick OpenAI-compatible as the type. Menu labels differ slightly between versions, so go by whatever your installed build shows. There are only a few fields to fill in:
| Config item | What to enter | Notes |
|---|---|---|
| Service name | Anything you like, e.g. “APIYI” | Display only, nothing functional |
| API URL | https://api.apiyi.com/v1 |
OpenAI-compatible base URL |
| API Key | A key generated in the platform console | One key covers all three model types below |
| Model list | Add manually or pull from the endpoint | Add three models, one per purpose |
Once that’s filled in, add three models first and tag each one by purpose: one chat model, one embedding model, one image model. Cherry Studio uses the model type to decide which dropdown it appears in. If a model’s type isn’t detected automatically, you can tick the “embedding” or “image” capability tags manually in the model settings.
🚀 Quick start: If you don’t have a key yet, sign up at APIYI apiyi.com — new users get free trial credits. Once you have the key, send a few messages through a lightweight chat model to confirm connectivity, then go configure the knowledge base and image generation.
Step 2: Verify All Three Paths Outside Cherry Studio
When something fails inside the client, it’s often hard to tell whether it’s a config problem or a model problem. Calling each of the three endpoints once with a few lines of Python narrows the search down to Cherry Studio itself. Here’s an indented code sample that only depends on the official openai library:
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1" # APIYI OpenAI-compatible endpoint
)
# 1. Chat: billed by token
chat = client.chat.completions.create(
model="qwen3.8-flash",
messages=[{"role": "user", "content": "用一句话介绍向量检索"}]
)
print(chat.choices[0].message.content)
print("token 用量:", chat.usage)
# 2. Embeddings: this is the path used when importing into the knowledge base
emb = client.embeddings.create(
model="text-embedding-3-small",
input=["Cherry Studio 本地知识库测试段落"]
)
print("向量维度:", len(emb.data[0].embedding))
# 3. Image generation: billed per image
img = client.images.generate(
model="gpt-image-2.6-all",
prompt="一张极简风格的桌面工作台插画",
n=1
)
print(img.data[0])
If all three run fine, your key and base URL are good. From there, if a specific feature in Cherry Studio errors out, you can be fairly sure it’s a wrong model-type tag or the wrong feature selection. Note that chat.usage returns the input and output token counts for this call — the most direct basis for estimating chat costs.
Cherry Studio Chat: Billing by Token
Chat is the most frequent of the three cost centers. Take qwen3.8-flash as an example: the APIYI model list, as of 2026-11-30, shows a price of $0.114 per million input tokens, $0.01425 per million cached-read tokens, and $0.3876 per million output tokens. As you can see, output costs more than three times as much as input, while cached reads are far cheaper than regular input.
This pricing structure points to a few practical ways to save money:
- Keep context length in check: Cherry Studio lets you set how many historical messages to carry per turn. Dial it down in long conversations and you’ll noticeably cut input tokens.
- Put a fixed system prompt up front: Requests with a stable prefix are more likely to hit the cache, and cached portions are billed at the cached-read rate.
- Cap maximum output: When you only need a short answer, set the max output tokens low so the model doesn’t go off on a long tangent.
- Separate light from heavy tasks: Use lightweight models like flash for everyday Q&A, and switch to a stronger model for complex reasoning.
Cherry Studio lets you bind different models to different assistants or Agents, so a division of labor like “lightweight model for the translation assistant, strong model for code analysis” can all happen inside one desktop app. And since every model goes through the same compatible service, switching doesn’t mean swapping API keys.
💡 Recommendation: Ask the same question with two different models, then compare the token counts in
usageand the answer quality. That tells you more about real cost than unit price alone. Doing this comparison on APIYI apiyi.com with a single key is a straightforward process.
Cherry Studio Knowledge Base: Embeddings Are a Separate Line Item
Embedding costs during the knowledge base import stage
Cherry Studio knowledge bases draw content from three sources: files, folders, and web pages. When you create a knowledge base, you have to pick an embedding model; during import, the content gets split into chunks, and each chunk makes one call to the embeddings endpoint. Take text-embedding-3-small as an example: the APIYI price table as of 2026-11-30 lists $0.02 per million tokens, and the endpoint includes embeddings.
At that rate, embedding ten million tokens of material costs roughly $0.2. That money is mostly a one-time hit during import, and only shows up again when you add or update documents. What really deserves your attention: once you’ve chosen an embedding model, don’t swap it out casually. Vectors produced by different embedding models aren’t compatible with each other, so changing models means re-embedding the entire knowledge base.
Q&A against the knowledge base puts you back on the chat bill
When you reference a knowledge base in a conversation, the flow goes like this: the question itself gets embedded once for retrieval; then the retrieved chunks are stitched together with your question and sent to the chat model. The embedding of the question is basically negligible, but the chunks that get pulled in do count as input tokens for the chat model.
So the cost of knowledge base Q&A depends mainly on how many chunks are recalled each time and how long each chunk is. Cherry Studio’s knowledge base settings let you adjust the recall count — dial it down and chat input drops noticeably, but the answer has less to work from. You’ll want to balance that against how dense your material is.
| Stage | When it happens | Model called | What drives the cost |
|---|---|---|---|
| Import | When adding files, folders, or web pages | Embedding model | Total volume of material, whether you import duplicates |
| Retrieval | On every question | Embedding model | Question length, usually tiny |
| Answering | On every question | Chat model | Recalled chunks × chunk length + question + answer |
| Rebuild | When you switch embedding models | Embedding model | The whole knowledge base gets billed again |
🎯 Practical tip: Try importing a small folder first and watch how embedding usage changes in the APIYI apiyi.com console before you decide to drag your entire document directory in. That way you get a rough ratio between material size and token count up front.

Cherry Studio Image Generation: Billed Per Image
The image workspace and gpt-image-2.6-all
In Cherry Studio, image generation lives in its own dedicated workspace, kept separate from the chat window — which makes it easier to treat it as a separate line item in your head. Take gpt-image-2.6-all, for example: APIYI’s model list shows a price of $0.025 per image per call, and the endpoint supports both chat and images. At that rate, generating a hundred images costs roughly $2.50, regardless of how long your prompt is.
The easiest places for per-image billing to spiral are batching and retries. If a single request is set to generate several images, you’re billed for each one; and if you keep regenerating because you don’t like the result, every attempt is billed separately too. The safer approach is to confirm composition and style with one image first, then batch-generate once you’re happy.
What 2K/4K means for gpt-image-2.6-all
In a status update dated 2026-11-25, APIYI noted that 2K high-quality and 4K output had a relatively high failure rate on the -vip image line, and recommended switching to gpt-image-2.6-all. The same update explains that the 2K and 4K tiers for gpt-image-2.6-all are upscaled tiers — in other words, they enlarge the base generation result.
One thing to watch out for here: “upscaled” applies only to the gpt-image-2.6-all model. Don’t generalize it to the whole GPT Image 2.6 product family or to other models in the same series. If what you need is native high-resolution generation, check the notes for the relevant model in the platform’s list instead of assuming they all work by upscaling.

| Billing dimension | Chat (qwen3.8-flash) | Knowledge base embeddings (text-embedding-3-small) | Image generation (gpt-image-2.6-all) |
|---|---|---|---|
| Unit | Per million tokens | Per million tokens | Per image |
| List price (USD) | Input 0.114, cache read 0.01425, output 0.3876 | Input 0.02 | 0.025 |
| Endpoint | chat | embeddings | chat, images |
| Main variables | Context length, output length | Total corpus size, whether you rebuild | Number of images, retry count |
| Ways to save | Limit history entries, use the cache | Pick a model and don’t switch | Confirm with one image, then batch |
The prices above are current as of 2026-11-30. Models and prices are subject to the platform’s model list, so it’s worth double-checking before you use them.
Cherry Studio License: How to Understand AGPL-3.0
Cherry Studio uses the AGPL-3.0 license. If you install and use it on your own computer, or as a team on your own machines, and connect it to your own models, the obligations of this license basically don’t apply to you. But if you modify its code and provide the service over a network to external users, you need to release the corresponding source code as AGPL requires. Using it on your own desktop and offering it as a service to others are two different things—if you’re planning a commercial deployment, read the full license text carefully.
Common Questions (FAQ)
Q1: What is Cherry Studio’s “custom compatible service”?
It means adding a provider in Cherry Studio that follows the OpenAI API format—you just fill in the base URL and the key. As long as the provider’s API is compatible, chat, embeddings, and image generation can all be called through it, so you don’t need to register a separate service for each type of model.
Q2: Why does the knowledge base need a separate embedding model? Can’t it just use the chat model?
No. The embedding model turns text into vectors for similarity search, while the chat model generates answers—they have different roles and different endpoints (embeddings vs. chat). A knowledge base needs both: the embedding model builds the index and does retrieval, and the chat model reads the retrieved snippets and answers.
Q3: Can one key be used for all three Cherry Studio features at once?
Yes, as long as the provider offers all three model types under the same compatible API. Take APIYI apiyi.com as an example: the base URL is uniformly `https://api.apiyi.com/v1`, and chat, embedding, and image models are all in the same model list. You just add the corresponding models in Cherry Studio and tag their types correctly.
Q4: Is importing lots of material into a knowledge base expensive?
Embedding pricing is usually far lower than chat. At $0.02 per million tokens for text-embedding-3-small, ten million tokens costs about $0.2. What deserves more attention is the chat input tokens generated by the retrieved snippets during Q&A, plus the full rebuild of the whole knowledge base if you switch embedding models.
Q5: I want 4K images—which option should I choose?
According to the platform update from 2026-11-25, the -vip image line has a relatively high failure rate on 2K high-quality and 4K output, so it’s recommended to use gpt-image-2.6-all instead. Note that its 2K/4K are upscaled tiers, and this only applies to that specific model. You can confirm the currently available tiers in the model notes on APIYI apiyi.com.
Q6: Is the Unified Gateway in Cherry Studio related to this article?
Not really. The Unified Gateway is for connecting other apps to the models already configured in Cherry Studio—that’s a different use case. This article only covers chatting, building knowledge bases, and generating images inside Cherry Studio Desktop.
Q7: What are the limitations of this approach?
– Prices and models change; the figures in this article are as of 2026-11-30, so refer to the platform’s model list.
– If you change the embedding model, the knowledge base needs to be rebuilt from scratch.
– Failed image generation retries also consume quota, and stability varies between different lines.
– If you modify Cherry Studio’s code and provide the service to others, you must comply with AGPL-3.0.
Cherry Studio: Connecting Your Own Model Key Takeaways
- One entry point: Add an OpenAI-compatible service, fill in the base URL and key, and all three model types are reachable.
- Chat is billed by token: Input, output, and cache reads are priced separately — long context is the main cost driver.
- Knowledge bases mean two bills: Embedding costs are incurred on import, and retrieved chunks count toward chat costs at question time.
- Don’t swap embedding models casually: Changing the embedding model forces the entire knowledge base to be re-embedded.
- Image generation is billed per image: It has nothing to do with prompt length, and batch generation plus retries both stack up.
- Upscaling recognizes only one model: The 2K/4K upscale tiers map only to gpt-image-2.6-all.
- Getting started path: Claim test credits at APIYI apiyi.com, get the three endpoints working in code first, then configure the client.
Summary
Connecting your own model in Cherry Studio takes just a few minutes to configure, but the three features each have a different billing logic:
- Chat: Billed by input and output tokens — controlling context length and output length is the most effective lever.
- Knowledge base: Billed once by the embedding model at import time; retrieved content counts toward chat costs during Q&A.
- Image generation: Billed per image — confirm the result with a single image first, then batch generate.
A good approach is to pick one model for each of the three features, run it for a week, then compare against the usage breakdown in the console before deciding where to adjust. We recommend validating these three model types quickly through the unified API at APIYI apiyi.com — a single key is all you need to switch between them.
📚 References
-
GitHub – Cherry Studio: Official open-source repository and README
- Link:
github.com/CherryHQ/cherry-studio - Description: Feature list, model integration methods, and AGPL-3.0 license
- Link:
-
APIYI Model and Pricing Overview: Billing units and endpoints for each model
- Link:
docs.apiyi.com/models.md - Description: Pricing for models such as text-embedding-3-small and gpt-image-2.6-all
- Link:
-
APIYI qwen3.8-flash Model Page: Input, cache read, and output pricing for the chat model
- Link:
docs.apiyi.com/models/qwen3-8-flash.md - Description: Understanding how token-based billing is structured
- Link:
-
APIYI Live Updates: Image route status and upscaling notes
- Link:
docs.apiyi.com/live.md - Description: Notes from 2026-11-25 on the -vip route and gpt-image-2.6-all
- Link:
Author: APIYI Technical Team
Technical Discussion: Feel free to contact us via the APIYI website homepage. For more integration details, see the APIYI documentation center.
