Set up Dify

Build AI apps and workflows; install the OpenAI-compatible plugin to use CherryChat models

Steps

  1. Install the OpenAI-API-compatible plugin

    Go to Integrations → Model Provider (older versions: avatar at top right → Settings → Model Provider), find "OpenAI-API-compatible" under Install model providers and install it.

  2. Add a model

    On the OpenAI-API-compatible card click Add Model, set the model type to LLM and fill in the fields below.

    • Model Name: gpt-6.1-sol (The model ID, not a display name)
    • API Key: sk-your-key
    • API Base URL: https://gpt.cherrychat.org/v1 (End at /v1 with no trailing /)
  3. Set the capability options

    Completion mode: Chat. Model context size defaults to only 4096; raise it per the Models page (e.g. 128000). Upper bound for max tokens: about 8192. Function Call Type: Tool Call, so agents and workflows can use tools. Vision Support only for vision models.

  4. Save and set as default

    Save; Dify validates the key and URL first. Then open Default Model at the top right and pick it as the system reasoning model, or choose it directly in an app or workflow LLM node.

  5. Embedding for knowledge bases (optional)

    For knowledge bases, click Add Model again with type Text Embedding, model name text-embedding-3-small, and the same API key and Base URL.

Common pitfalls

Error → cause → fix

What you seeWhyWhat to do
Invalid credentials / 401 on saveThe key is wrong, has spaces, or was disabledCopy the key again from My Keys and save again
404 on saveBase URL is missing /v1, has a trailing slash, or is https://gpt.cherrychat.org/v1/chat/completionsChange it to https://gpt.cherrychat.org/v1
Model not foundModel Name holds a display name or a typoUse the exact model ID from the Models page, e.g. gpt-6.1-sol
Self-hosted: connection keeps timing outThe Dify server cannot reach https://gpt.cherrychat.orgRun curl https://gpt.cherrychat.org/v1/models on the server; any JSON reply, even an error, means the network path works
HTTP 402 or "insufficient balance" (billing_error in Claude format)Your credits cannot cover this call. API calls are paid from credits only; memberships and unlimited plans do not applyTop up any amount in the CherryChat Store, then retry after a few seconds
HTTP 429 Too Many RequestsToo many requests: by default 120 per minute per key and 8 at a time per accountLower the concurrency or requests per second in the tool and wait for the Retry-After seconds; most tools retry on their own

Guide checked 2026-11-02. The tool's screens may change; the official docs win if they differ.

API · API Pricing

Operated by UK Company CHERRYCHAT LTD · Company Number 16096119 · Support WeChat: JsnonoChat · Content is AI-generated — please verify before relying on it

CherryChat

The network is slow. Still loading…