Skip to content

Setup guide

Put your key into the AI apps you use

Token packages and dedicated accounts both give you an OpenAI-compatible API key. Have the three values below ready, find your app, and follow its steps; it takes a few minutes. Each app comes with a download link and a screenshot of its settings.

Reasoning effort

GPT models think before they answer, and the reasoning effort sets how long. With nothing set it is medium; for another level, add a suffix to the model ID. Higher levels suit harder problems but answer more slowly, and the tokens spent thinking count toward your usage.

  • gpt-6.1-sol-low

    low

    Quick questions, translation, reformatting; the fastest answers

  • gpt-6.1-sol

    mediumDefault

    Everyday coding and chat

  • gpt-6.1-sol-high

    high

    Hard-to-find bugs, refactors, multi-step tasks

  • gpt-6.1-sol-xhigh

    xhigh

    The hardest problems; the slowest, and the most usage

  • Put an ID from the table where your app asks for the model ID and pick it in the chat to reason at that level. To switch at any time, add several of them. Other GPT models take the same suffixes, for example gpt-6.1-terra-high.
  • With a token package key, apps that pick models from a list, such as Android Studio and Cherry Studio, show three more IDs for every model after a refresh or sync, ending in -low, -high and -xhigh; just tick the one you want.
  • Apps with their own reasoning effort setting, such as Cline and Codex CLI, can keep using it; when the model ID has a suffix, the suffix wins.
  • The call log on your order page shows these calls with the model gpt-6.1-sol and their reasoning effort.

Have these three ready

  1. 1Base URL

    https://gw.huanwise.ai/v1

    Most apps take it up to /v1; a few need the full address, as their steps below say.

  2. 2API key

    On your order page and in the delivery email

    Paste it as it is: no Bearer, quotes or spaces.

  3. 3Model ID

    gpt-6.1-sol

    Recommended. Other models are listed on your order page. Reasoning effort ↑

Using Codex CLI, curl, Python or Node.js? Your order page has examples with your key filled in, ready to run. My orders →

Coding

Coding · OpenAI

Codex

Download

OpenAI's coding agent. Codex CLI in the terminal, the Codex extension for VS Code and other editors, and Codex in the ChatGPT desktop app share one config file, so one edit gives all three your key.

base_url (config.toml)https://gw.huanwise.ai/v1

Config file: ~/.codex/config.toml on macOS and Linux, %USERPROFILE%\.codex\config.toml on Windows. Create it if it isn't there.

Copy it, then replace “paste your key” with your key:

model = "gpt-6.1-sol"
model_provider = "huanwise"
model_reasoning_effort = "medium"

[model_providers.huanwise]
name = "HuanWise"
base_url = "https://gw.huanwise.ai/v1"
wire_api = "responses"
experimental_bearer_token = "paste your key"
  1. 1

    Put the config above into config.toml. If the file already has settings, the model, model_provider and model_reasoning_effort lines go at the very top, before the first [ ] table header; change any of them that are already there rather than adding them twice.

  2. 2

    Replace “paste your key” with your key and save.

  3. 3

    Quit Codex fully and open it again, restarting the desktop app and your editor too. Codex CLI needs no ChatGPT sign-in: run codex, and /status shows the model and provider in use.

  4. 4

    Send a short test message; a reply means it works.

Set the reasoning effort in Codex itself: change model_reasoning_effort to low, high or xhigh, or pick it with /model, and keep the model name gpt-6.1-sol. If you prefer an environment variable, replace the experimental_bearer_token line with env_key = "HUANWISE_API_KEY" and set that variable (the Codex CLI example on your order page does this); the desktop app doesn't see a variable set only in a terminal.

More:Editor extension ChatGPT desktop app Config docs

Coding · Anysphere

Cursor

Download

Local chat and the agent can use your key; Tab completion and cloud agents still use Cursor's own models.

Override OpenAI Base URLhttps://gw.huanwise.ai/v1
  1. 1

    Open Cursor Settings and go to Models.

  2. 2

    Add gpt-6.1-sol with “Add or search model” at the top and switch it on.

  3. 3

    Scroll down to API Keys and paste your key into OpenAI API Key, without Bearer.

  4. 4

    Turn on Override OpenAI Base URL and enter https://gw.huanwise.ai/v1. While it is off, requests go to OpenAI itself.

  5. 5

    Pick gpt-6.1-sol in a chat and send a short test message.

Cursor Settings → Models: the model list on top, OpenAI API Key and Override OpenAI Base URL under API Keys at the bottom.
Cursor Settings → Models: the model list on top, OpenAI API Key and Override OpenAI Base URL under API Keys at the bottom.

Coding · VS Code extension

Cline

Install extension

Lets AI edit files and run commands from the VS Code sidebar. OpenAI Compatible keeps the address, key and model on one page.

Base URLhttps://gw.huanwise.ai/v1
  1. 1

    After installing, open Cline's Settings → API Configuration.

  2. 2

    Set API Provider to OpenAI Compatible and Base URL to https://gw.huanwise.ai/v1.

  3. 3

    Paste your key into OpenAI Compatible API Key and enter gpt-6.1-sol as the Model ID. Leave the two Azure options off.

  4. 4

    Pick a Reasoning Effort, click Done and send a short test message.

  5. 5

    Plan Mode and Act Mode have separate settings; fill in both if you use both.

Cline's API Configuration (Act Mode): OpenAI Compatible, Base URL https://gw.huanwise.ai/v1, Model ID gpt-6.1-sol.
Cline's API Configuration (Act Mode): OpenAI Compatible, Base URL https://gw.huanwise.ai/v1, Model ID gpt-6.1-sol.

Coding · ByteDance

Trae

Download

Edits projects from its agent. Built-in models run on TRAE's own service; custom models can use your key.

Custom request URL (自定义请求地址)https://gw.huanwise.ai/v1
  1. 1

    Go to Settings → Models and click Add Model (添加模型).

  2. 2

    Set the API format to OpenAI Chat Completions and keep the “Full URL” (完整 URL) switch off.

  3. 3

    Enter https://gw.huanwise.ai/v1 as the custom request URL, with no trailing slash; the app adds /chat/completions itself.

  4. 4

    Enter gpt-6.1-sol as the model ID, any display name, and paste your key as the API key.

  5. 5

    Click Save. Trae first tests the connection, which uses a few tokens.

More:Custom models (Chinese)

Trae's model editor: Full URL off, the request URL up to /v1, model ID gpt-6.1-sol.
Trae's model editor: Full URL off, the request URL up to /v1, model ID gpt-6.1-sol.

Coding · Tencent

CodeBuddy

Download

Its Add Model dialog takes OpenAI-compatible APIs. While the provider is Tencent Cloud Token Plan, it uses Tencent Cloud's own key and cannot take yours.

API address (接口地址)https://gw.huanwise.ai/v1/chat/completions
  1. 1

    Open Settings → Models and click Add Model (添加模型).

  2. 2

    The provider defaults to Tencent Cloud Token Plan (腾讯云 Token Plan); change it to Custom (自定义 / Custom).

  3. 3

    Enter the full address https://gw.huanwise.ai/v1/chat/completions as the API address and paste your key as the API KEY.

  4. 4

    Enter gpt-6.1-sol as the model name, not Auto.

  5. 5

    If needed, tick tool calls, image input or reasoning under advanced settings, save, then pick the model in a chat.

The IDE can also read a user-level file: ~/.codebuddy/models.json on macOS and Linux, %USERPROFILE%\.codebuddy\models.json on Windows. Its url takes the full address too.

More:models.json guide (Chinese)

The default provider is Tencent Cloud Token Plan, which cannot take your key; change it to Custom as in the next picture.
The default provider is Tencent Cloud Token Plan, which cannot take your key; change it to Custom as in the next picture.
With the provider set to Custom: the API address is the full https://gw.huanwise.ai/v1/chat/completions and the model name gpt-6.1-sol.
With the provider set to Custom: the API address is the full https://gw.huanwise.ai/v1/chat/completions and the model name gpt-6.1-sol.

Coding · Terminal & desktop

OpenCode

Download

The terminal, desktop app and IDE extension share one config file. The connect dialog only takes the key; the address goes into the file.

baseURL (opencode.json)https://gw.huanwise.ai/v1

Config file: ~/.config/opencode/opencode.json on macOS and Linux, %USERPROFILE%\.config\opencode\opencode.json on Windows.

Copy it, then replace “paste your key” with your key:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "openai/gpt-6.1-sol",
  "providers": {
    "openai": {
      "settings": {
        "baseURL": "https://gw.huanwise.ai/v1",
        "apiKey": "paste your key",
        "transport": "http",
        "encoding": "none"
      }
    }
  }
}
  1. 1

    When connecting OpenAI, choose API key (API 密钥), not Sign in with ChatGPT or Codex.

  2. 2

    Put the config above into opencode.json and keep transport at http. With only the key and no address, the built-in OpenAI still connects to OpenAI's WebSocket and sessions break off.

  3. 3

    The desktop app usually reloads by itself; if nothing changes, quit it fully and reopen it.

  4. 4

    Pick gpt-6.1-sol in the model picker and send a short test message.

More:Providers docs

OpenCode's Connect OpenAI: choose API key at the bottom for your key; the address goes in opencode.json.
OpenCode's Connect OpenAI: choose API key at the bottom for your key; the address goes in opencode.json.

Coding · Zed Industries

Zed

Download

The agent panel, inline assistant and commit messages use the models in LLM Providers. The key is kept in the system keychain, not in the settings file.

API URL / api_urlhttps://gw.huanwise.ai/v1

Settings file: ~/.config/zed/settings.json on macOS and Linux, %APPDATA%\Zed\settings.json on Windows.

Copy it, then replace “paste your key” with your key:

{
  "language_models": {
    "openai_compatible": {
      "HuanWise": {
        "api_url": "https://gw.huanwise.ai/v1",
        "available_models": [
          { "name": "gpt-6.1-sol", "display_name": "gpt-6.1-sol", "max_tokens": 128000 }
        ]
      }
    }
  }
}
  1. 1

    Run agent: open settings from the command palette and click Add Provider under LLM Providers.

  2. 2

    Pick any name, enter https://gw.huanwise.ai/v1 as the API URL and gpt-6.1-sol as the model name, and paste your key on that page.

  3. 3

    Or merge the JSON above into the settings file. If it already has language_models, add only this part instead of replacing the file.

  4. 4

    Pick this provider and gpt-6.1-sol in the agent panel and send a short test message.

More:API access docs

Zed's LLM Providers: add yours with Add Provider at the top right. The check on the OpenAI row only means an official OpenAI key is saved.
Zed's LLM Providers: add yours with Add Provider at the top right. The check on the OpenAI row only means an official OpenAI key is saved.

Coding · Google

Android Studio

Download

The official Android IDE can run its AI chat and agent on your key, with Gemini still in the provider list. Some Android Studio features may not work as expected with an outside model.

URLhttps://gw.huanwise.ai/v1
  1. 1

    Open Settings and go to Tools → AI → Model Providers.

  2. 2

    Gemini and Google AI Studio are already in the list on the left. Click + above it and choose Third-Party Remote Provider; this adds an entry called New provider.

  3. 3

    Enter any description, https://gw.huanwise.ai/v1 as the URL, and pick OpenAI-compatible as the URL Schema. Stop at /v1; do not add /chat/completions.

  4. 4

    Paste your key as the API key, without Bearer, and click Refresh on the right to load the models.

  5. 5

    Tick gpt-6.1-sol in the Enabled column and click OK or Apply.

  6. 6

    Open the AI chat, pick gpt-6.1-sol in the model picker and send a short test message.

More:Remote model docs

Android Studio's Model Providers: New provider with https://gw.huanwise.ai/v1 as the URL and OpenAI-compatible as the URL Schema, with gpt-6.1-sol and gpt-6-sol ticked.
Android Studio's Model Providers: New provider with https://gw.huanwise.ai/v1 as the URL and OpenAI-compatible as the URL Schema, with gpt-6.1-sol and gpt-6-sol ticked.

Chat apps

Chat · Desktop app

Cherry Studio

Download

Switch between many models in one window, with assistants and knowledge bases.

API addresshttps://gw.huanwise.ai/v1
  1. 1

    Go to Settings → Model Provider, choose openAI on the left and turn on the switch at the top right.

  2. 2

    Paste your key as the API key and click Check.

  3. 3

    Enter https://gw.huanwise.ai/v1 as the API address.

  4. 4

    Click Sync models and find gpt-6.1-sol in the gpt group.

  5. 5

    Start a new chat, pick gpt-6.1-sol and send a short test message.

More:GitHub releases

Cherry Studio's model settings: the built-in openAI is on, the API address is https://gw.huanwise.ai/v1, and syncing brings in GPT-6.1 Sol and other models.
Cherry Studio's model settings: the built-in openAI is on, the API address is https://gw.huanwise.ai/v1, and syncing brings in GPT-6.1 Sol and other models.

Chat · Tencent

ima

Download

Tencent's knowledge-base assistant. A custom model with an API address uses your key.

API address (接口地址)https://gw.huanwise.ai/v1/chat/completions
  1. 1

    Open the model settings and add or edit a custom model.

  2. 2

    Set the vendor to Custom (自定义) and enter the full address https://gw.huanwise.ai/v1/chat/completions as the API address.

  3. 3

    Paste your key as the API Key and enter gpt-6.1-sol as the model name. Set the input and output lengths for the model; the picture uses 172K and 32K.

  4. 4

    Save, then pick it among the custom models before you send.

ima's custom model editor: the API address is the full https://gw.huanwise.ai/v1/chat/completions, the model name gpt-6.1-sol.
ima's custom model editor: the API address is the full https://gw.huanwise.ai/v1/chat/completions, the model name gpt-6.1-sol.

Chat · Tencent

WorkBuddy

Download

Tencent's office agent. Choose Custom (自定义) as the provider when adding a model; Token Plan uses Tencent Cloud's own key.

API address (接口地址)https://gw.huanwise.ai/v1/chat/completions
  1. 1

    Go to System Settings → Models → Add Model.

  2. 2

    Change the provider to Custom (自定义). Tencent Cloud Token Plan cannot take your key, and Auto in its model name is not a model ID.

  3. 3

    Enter the full address https://gw.huanwise.ai/v1/chat/completions as the API address.

  4. 4

    Paste your key as the API Key, enter gpt-6.1-sol as the model name, click Test Connection (测试连接), then save.

  5. 5

    Back in the chat, pick this model in the model picker.

Provider set to Custom: the API address is the full https://gw.huanwise.ai/v1/chat/completions, the model name gpt-6.1-sol.
Provider set to Custom: the API address is the full https://gw.huanwise.ai/v1/chat/completions, the model name gpt-6.1-sol.

Chat · Cross-platform app

Chatbox

Download

A cross-platform chat app; its OpenAI model provider takes your key.

API Hosthttps://gw.huanwise.ai/v1
  1. 1

    Go to Settings → Model Provider → OpenAI.

  2. 2

    Do not click “Sign in with OAuth”; that is for an official OpenAI account.

  3. 3

    Paste your key as the API key and click Check, then enter https://gw.huanwise.ai/v1 as the API Host.

  4. 4

    The preview under the host should read https://gw.huanwise.ai/v1/chat/completions. Add gpt-6.1-sol to the model list and pick it in a new chat.

Chatbox's OpenAI provider: API Host up to /v1, with the full https://gw.huanwise.ai/v1/chat/completions previewed below.
Chatbox's OpenAI provider: API Host up to /v1, with the full https://gw.huanwise.ai/v1/chat/completions previewed below.

Notes

Notes · Community plugin

Obsidian + Copilot

Download

With the Copilot community plugin you can open Quick Chat or Agent Chat next to your notes.

Base URL (Copilot BYOK)https://gw.huanwise.ai/v1
  1. 1

    Install and enable Copilot from the community plugins, then open Settings → Copilot → BYOK.

  2. 2

    Click Add a provider and add a custom OpenAI-compatible one: Base URL https://gw.huanwise.ai/v1, your key, and gpt-6.1-sol as the model.

  3. 3

    Once saved, the row reads Custom OpenAI-compatible with Verified on the right.

  4. 4

    Open Quick Chat, pick the model and send.

More:Copilot model sources

Copilot's BYOK: Custom OpenAI-compatible shows Verified.
Copilot's BYOK: Custom OpenAI-compatible shows Verified.

Notes · Local-first

SiYuan

Download

A local-first block editor; its AI settings work in the editor and the chat panel.

API base URLhttps://gw.huanwise.ai/v1
  1. 1

    Go to Settings → AI → Add provider.

  2. 2

    Enter https://gw.huanwise.ai/v1 as the API base URL; the API type can stay Responses as in the picture.

  3. 3

    Paste your key as the API Key and keep the default HTTP header {"Authorization":"Bearer {{secrets.API_KEY}}"}.

  4. 4

    Click Refresh available models, turn on gpt-6.1-sol, click Test connection, then OK.

More:GitHub releases

SiYuan's Add provider: the API base URL up to /v1. The gpt-5.6-luna turned on in the picture is no longer offered; turn on gpt-6.1-sol instead.
SiYuan's Add provider: the API base URL up to /v1. The gpt-5.6-luna turned on in the picture is no longer offered; turn on gpt-6.1-sol instead.

Automation

Automation · LLM app platform

Dify

Source & install

Brings models into workflows, knowledge bases and agents. The OpenAI card at the top of Model Provider is official OpenAI; your key goes into OpenAI-API-compatible.

API endpoint URLhttps://gw.huanwise.ai/v1
  1. 1

    Open Settings → Model Provider. The OpenAI, Anthropic and other cards on top use each vendor's own API.

  2. 2

    Scroll down to OpenAI-API-compatible; do not put your key into the OpenAI card at the top.

  3. 3

    Enter https://gw.huanwise.ai/v1 as the API endpoint URL, paste your key, enter gpt-6.1-sol as the model name and set Completion mode to Chat.

  4. 4

    Test with a node that sends one sentence and check that it returns an answer, not 401 or 404.

More:Dify website

The top of Dify's Model Provider page holds the vendors' own cards. For your key, scroll down to OpenAI-API-compatible.
The top of Dify's Model Provider page holds the vendors' own cards. For your key, scroll down to OpenAI-API-compatible.

Automation · Knowledge-base engine

RAGFlow

Source & install

Document parsing, knowledge-base Q&A and agents. The OpenAI card's Base-URL can point at our address; then pick it in the default models.

Base-URLhttps://gw.huanwise.ai/v1
  1. 1

    Open Model providers and click OpenAI.

  2. 2

    Pick any Instance name and paste your key as the API-Key.

  3. 3

    Change Base-URL from https://api.openai.com/v1 to https://gw.huanwise.ai/v1 and remove the default tag next to it, or saving brings back the official address.

  4. 4

    Click Verify, then Ok. Under Set default models, set the starred LLM to gpt-6.1-sol from this instance. Set up embeddings separately.

More:RAGFlow website

RAGFlow's OpenAI instance: the Base-URL in the picture is still the official one; change it to https://gw.huanwise.ai/v1, then Verify.
RAGFlow's OpenAI instance: the Base-URL in the picture is still the official one; change it to https://gw.huanwise.ai/v1, then Verify.

Filled in and still not working?

  • 404 or “path not found”: /v1 is usually entered twice, or an app that needs the full address only got it up to /v1.
  • 401: the key is wrong. Check for an extra Bearer, quotes or spaces, and whether the key was reset.
  • Model not found: the model ID must match exactly, for example gpt-6.1-sol.
  • 429: a token package has run out, or a dedicated account has reached its 5-hour or weekly limit; the message says when it resets.

The call log on your order page lists each call's status and the reason it failed; start there. My orders →

Official support & community

Scan to join our official WeCom group and reach customer support for after-sales, restocks and how-to questions. Join our official X group chat to hear about new products and offers first.

QR code of the official WeCom support group
WeCom · Support group
Open on your phone
QR code of the official X group chat
X · Official group chat
Join on X