Clients
AstrBot setup
AstrBot is a chatbot framework for QQ, WeChat, Telegram and more. Add Yuzu as a model provider and your bot can reply with DeepSeek, Claude or Gemini.
- Recommended group
- DeepSeek (direct), model
deepseek-flash: strong Chinese, lowest cost. For better answers use Claude Max (Integration Edition) (claude-sonnet-5-5); for images use Gemini (gemini-2.5-flash) - Where
- AstrBot dashboard → Providers → Add provider → OpenAI Compatible (Anthropic for Claude)
- API Base URL
https://api.yuzuapi.com/v1; for Claude (Anthropic type) usehttps://api.yuzuapi.com, without /v1
For Claude models, choose the Anthropic provider type, not OpenAI Compatible. With OpenAI Compatible, after a few turns you get EmptyModelOutputError: OpenAI completion has no usable output (empty reply, still billed). DeepSeek and Gemini stay on OpenAI Compatible.
Open AstrBot quick setup in the console: pick a model and it creates a dedicated key with all three values ready to copy.
Create a key
In Console → API keys, create a key in the DeepSeek (direct) group. Set a spending limit under More settings (e.g. ¥5): a bot in group chats keeps replying, and the key stops at the limit instead of draining your balance.
Add the provider
In the AstrBot dashboard open Providers, click Add provider, choose OpenAI Compatible under Chat, then fill in:
Field Value ID yuzu(any name)API Key Your Yuzu key (starts with sk-)API Base URL https://api.yuzuapi.com/v1(include /v1)With a Claude group key, choose Anthropic instead and set API Base URL to
https://api.yuzuapi.com(no /v1); the rest is the same.Add a model
Click Save and fetch models (or Fetch models after saving). It lists the models in your key's group; add
deepseek-flash. With a key from another group, add a model from that group.Fetching the model list only proves the key and URL are right. It doesn't mean the model works yet. Finish the next step and send a test message.
Test in chat
After saving, set the new model as the default chat model in AstrBot's config. The model must match your key's group:
deepseek-flashfor a DeepSeek key,claude-sonnet-5-5for a Claude Max (Integration Edition) key.Then send "hello" to the bot on QQ / WeChat. You're connected once it replies. No reply? See "Can't connect?" below.
Tested models
Tested with AstrBot 4.29.4 (2026-11-25). Chat, function tools and image input all work with:
| Group | Model | Notes |
|---|---|---|
| DeepSeek (direct) | deepseek-flash, deepseek-v4-pro | Lowest cost, good for group chats; reads images |
| Claude Max (Integration Edition) | claude-sonnet-5-5, claude-opus-5-5 | Best answers, higher price; use the Anthropic provider type |
| Gemini | gemini-2.5-flash, gemini-3.1-pro | Fast, good with images |
Fetch models lists every model in the group, and a few may be temporarily unavailable. If a call returns 404 model not available in your API key group or not supported by any configured account, switch to a model from the table above.
Save money by limiting how many history turns AstrBot keeps. Every reply resends the earlier conversation, so busy group chats cost more per message.
Can't connect?
| Problem | Fix |
|---|---|
404 | Wrong API Base URL. Stop at /v1: https://api.yuzuapi.com/v1. If you add /chat/completions or type /v1 twice, the path gets doubled into /v1/chat/completions/v1/... and returns 404 |
401 | The key is incomplete, has spaces, or was deleted |
| Models load, but messages fail | Fetching the model list only checks the key and URL; it doesn't call a model. Look up the error message in Troubleshooting. Most often the model isn't in your key's group, or that model is temporarily unavailable; switch to one from the table above |
| Model unavailable | The model isn't in your key's group. A DeepSeek key can't call Claude models; use a key from the right group |
| Bot stopped replying | The key reached its limit or your balance is low. Check the key in the console, raise the limit or top up |
Claude returns EmptyModelOutputError | Full error: All chat models failed: EmptyModelOutputError: OpenAI completion has no usable output. It happens when Claude is added as OpenAI Compatible: AstrBot sends earlier reasoning back in the chat history and Claude refuses to answer. Add an Anthropic provider (URL without /v1) and switch the default model to it |
| Empty replies, but still charged | Most common with claude-haiku-5-5, and with gemini-2.5-flash when the chat history is long. Switch to another model from the table above and keep fewer history turns. Empty replies are billed for the input. AstrBot retries them automatically, so one message can be charged several times |