Use MartLLM with Cherry Studio

Cherry Studio (desktop chat app for Windows, macOS and Linux) adds MartLLM as a custom provider with an OpenAI endpoint.

Before you start

  • A MartLLM account with credit, and an API key from Dashboard → Keys. Keys start with ull_.
  • A model id, for example deepseek/deepseek-v4.1-flash. All ids are in the catalog.

Setup

  1. In Cherry Studio, open Settings → Model Provider and click Add Provider.

  2. In Add Custom Provider, fill in:

    • Provider Name: MartLLM
    • API Key: your ull_... key
    • Under Endpoint settings, in the OpenAI field: https://api.martllm.com

    The line under the field should read Request path: https://api.martllm.com/v1/chat/completions. Cherry Studio adds /v1 itself.

  3. Click Add.

  4. In Choose models, tick the models you want and click Verify and enable. Cherry Studio loads the list from MartLLM with your key and checks one model with a short request before it turns the provider on.

  5. Start a chat and pick a MartLLM model.

To add models later, open MartLLM under Model Provider and click Sync models. To add one by hand, use Add model manually and paste its id into Model ID, for example deepseek/deepseek-v4.1-flash.

Optional: the Anthropic endpoint

MartLLM also answers in the Anthropic format. If you want Cherry Studio to call Claude models that way, put the same address, https://api.martllm.com, in the Anthropic field under Endpoint settings. The line under it should read Request path: https://api.martllm.com/v1/messages. You do not need this for normal use: every chat model works through the OpenAI field.

Check the key and URL from a terminal

If Cherry Studio gives no clear error, test the same settings directly:

curl https://api.martllm.com/v1/chat/completions \
  -H "Authorization: Bearer $MARTLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek/deepseek-v4.1-flash","messages":[{"role":"user","content":"ping"}]}'

A 200 with choices[0].message means the key, URL and model id are right.

Common errors

What you see Cause and fix
401 The key is missing, mistyped or deleted. Paste it again from Dashboard → Keys.
404 with "page not found" The Request path line is not https://api.martllm.com/v1/chat/completions. Enter the address again with nothing after .dev.
404 model_not_found The model id is mistyped. It needs its maker in front, such as deepseek/deepseek-v4.1-flash.
402 insufficient_credits Your balance is empty. Add credit under Dashboard → Credits.
"The provider returned no available models." Check the key and the address, then click Sync models again, or add a model by hand.

More codes: Errors. Spend per request: Dashboard → Activity.

Support

For account, billing, API or model problems, write to [email protected].