进阶 zcode.z.ai 2026-11-25 14:51:22 · 0 阅读
第10章 Connect Models
Get StartedConnect Models & Plans
ZCode supports multiple ways to access GLM models for coding workflows. For global users, we recommend using the Z.ai Coding Plan to run GLM-5.4 in ZCode with a simple account-based setup.
Recommended for global users
Sign in with your Z.ai account to use GLM models in ZCode. ZCode uses a single Z.ai sign-in: users in mainland China sign in to Z.ai China (zchat.z.ai) with the same phone number as their BigModel account, and the plans and benefits on that BigModel account are linked automatically. If your account has a GLM Coding Plan, ZCode uses the plan and quota from that account directly.
Connect Z.aiRecommendedBest for GLM-5.4 coding workflows, a simple account-based setup, and users who already have a GLM Coding Plan.GLM-5.4 coding workflowsSimple account-based setupAlready on GLM Coding PlanView Coding PlanGLM Coding Plan (BigModel)ChinaFor users in China: subscribe via the BigModel open platform for the same GLM Coding Plan with a cost-effective AI coding experience.GLM-5.4 coding modelHigh performanceCost effectiveView Coding Plan
The GLM Coding Plan has been relaunched. The new plans meter usage in credits and introduce a weekly usage limit; Pro and Max provide 6× and 14× the Lite usage allowance respectively. Once your account has an active plan, ZCode applies its quota directly. For how the new plans differ from legacy ones, see the Coding Plan Revision Notice.
Other ways to connect
Third-Party ProvidersConnect compatible model services through the Anthropic / OpenAI protocols, including team-managed channels.Use API KeyConnect model services with an API key if you manage your own model access.
Setup Entry Points
Method 1: Sign-in Screen
The first time you open ZCode, or after you sign out, ZCode shows the sign-in screen. It offers two options:
Login with Browser: opens the Z.ai sign-in page in your browser; once you authorize, you return to ZCode. Users in mainland China sign in with the same phone number as their BigModel account, and the plans and benefits on that BigModel account are linked automatically, so there is no separate BigModel sign-in.
Use API key: fill in an API key directly and go to the model provider settings.
The sign-in screen has no separate BigModel sign-in. Plans on a BigModel account are used through the linked Z.ai account.
Region: the Z.ai region you sign in to depends on ZCode's interface language. An English interface opens Z.ai Global; any other language opens Z.ai China (zchat.z.ai). Use the Switch to Global / 切换到中国 link on the sign-in screen to change region, then click Login with Browser.
One identity at a time: ZCode keeps a single signed-in identity and does not support two accounts signed in at once. If your account has more than one plan, choose the connection method in Settings → Model settings. To use an account in the other region, sign out, switch region on the sign-in screen, and sign in again.
After you click Login with Browser, ZCode shows "Waiting for browser authentication...". If the browser does not open, click Browser didn't open? → Copy login link and paste the link into your browser. For sign-in problems, see FAQ → Sign-in.
Use API key opens the API-key panel: choose the API-key provider (Z.ai or BigModel) and enter your Coding Plan API key, and ZCode creates the matching "Coding Plan" provider from it (see Connect With an API Key); the key is masked as you type.
Method 2: Model Selector
After entering ZCode, click the model name inside the chat box to open the model selector, then click the provider name at the top of the menu. Click Manage models at the bottom of the provider list to open the Settings → Model settings panel, where you manage the model channels available to ZCode Agent.
BigModel / Z.ai API Endpoints
The BigModel and Z.ai preset providers show a provider-managed, read-only Base URL in API key mode. The cards below list the endpoint to use for each scenario. When you need to enter an endpoint manually, choose a protocol in Add provider under Model settings, then enter the matching URL and API key.GLM Coding PlanMost commonUse the quota from a Coding Plan subscription — coding scenarios only.BigModelOpenAI Base URL (custom provider)Anthropic Base URL (custom provider)Z.aiOpenAI Base URL (custom provider)Anthropic Base URL (custom provider)Resource package / Prepaid balanceGeneral API usage with model resource packages or prepaid balance — the OpenAI Base URL is all you need.BigModelOpenAI Base URL (custom provider)Z.aiOpenAI Base URL (custom provider)The Anthropic Base URL does not apply to resource packages / prepaid balance: it only draws from your balance if the account has never purchased a Coding Plan. Once a plan has been purchased — whether used up or expired — this route no longer bills against balance unless the platform enables it for you. Use the OpenAI Base URL above instead.Before you fill inFor a Coding Plan, the OpenAI URL must be the Coding-only endpoint (/api/coding/paas/v4), not the general endpoint /api/paas/v4.The Coding endpoint is for coding scenarios only; it and the general endpoint are not interchangeable.If you bind your account through Coding Plan authorization (not API Key mode), ZCode routes requests automatically — no manual setup needed.
Connect BigModel
Open the Model settings panel through either method above
Select BigModel in the Providers group on the left
If you are signed in and your Z.ai account is linked to a BigModel account, the page shows your plan status directly. If the Coding Plan card shows Not connected, click Connect to BigModel; ZCode starts the sign-in flow, which you complete as described in Sign-in Screen
Once connected, you can use built-in models such as GLM-5.4 and GLM-5.3-Flash according to your account permissions. If your account has both an individual and a team plan, switch between them with Connection mode in the upper-right corner
After you connect an individual plan, the plan card shows the expiry date and each remaining quota. Unlink on the card signs you out of the account ZCode is currently signed in to:
Start Plan (Free Trial)
New users can claim a Start Plan after signing in to ZCode. It is free and meant for trying ZCode Agent in real projects before deciding whether to upgrade to a GLM Coding Plan. The Start Plan has its own Start Plan entry on the left of Model settings:
According to the Upgrade Plan page, the Start Plan lasts 5 days and provides 8 million tokens per day for GLM models:
ModelDaily trial quotaGLM-5.43 million tokens / dayGLM-5.3-Flash5 million tokens / day
Note: the trial lasts 5 days only and expires afterwards — it is not an ongoing daily allowance. The exact quota and available models are shown on the Start Plan page after you sign in.
Subscribe to a Coding Plan Inside ZCode
Need more than the trial quota? You don't have to leave ZCode: click the For Individuals or For Teams card on the provider page and, after signing in, the Upgrade Plan page opens. There you can browse the GLM Coding plans (Lite / Pro / Max), pick monthly, quarterly, or yearly billing, and complete the purchase. Existing subscribers can also manage their current plan and check quota status here.
The new plans meter usage in credits and add a weekly allowance on top of the 5-hour one; for each tier's exact benefits, credit allowances, and conversion rules, refer to the BigModel Coding Plan Revision Notice. When you run out of quota, watch for reset opportunities in the app — see Quota Reset Cards.
Using a Team Plan
If your team has a GLM Coding Plan team subscription, no extra setup is needed once you sign in: the Connection mode menu on the BigModel provider page lists each team you have access to as its own entry, named after the organization. Select one to run tasks against that team's quota. The same menu switches back to your Individual Plan.
After switching, the quota shown in the sidebar and usage stats follows the selected connection, and quota cards indicate whether they're personal or team.
If selecting a team entry shows "Team plan not assigned. Contact your team admin.", your administrator hasn't added you yet — seat management happens on BigModel's team plan page, not in the client, and the page provides a direct link there.
Connect With an API Key
To connect with an API key instead of signing in, click Add provider in the top-right of Model settings and pick a template in the Zhipu group. Templates come with the Base URL, API format, and model list prefilled — you only enter the API key. The two templates draw on different quota sources, so pick the one that matches your account:
Option ABigModel Coding PlanUse this if you bought a GLM Coding Plan and want to spend its quota through an API key. Choosing Use API key on the sign-in screen with BigModel selected creates this same provider.EntryAdd provider → Zhipu → BigModel Coding PlanAPI formatAnthropic Messages (/v1/messages)Base URLhttps://open.bigmodel.cn/api/anthropic01In the Add provider panel, choose BigModel Coding Plan in the Zhipu group02Enter your Coding Plan API key (Get API key opens BigModel's plan management page)03GLM-5.4 and GLM-5.3-Flash are built in; click Test model to confirm the connection, then pick it in chat
Option BBigModel API (resource packages / balance)Use this without a Coding Plan, when you pay with resource packages or account balance. It uses the OpenAI-compatible general endpoint.EntryAdd provider → Zhipu → BigModel APIAPI formatChat Completions (/chat/completions)Base URLhttps://open.bigmodel.cn/api/paas/v401In the Add provider panel, choose BigModel API in the Zhipu group02Enter an API key from the Zhipu open platform (Get API key opens the API key management page)03The full GLM lineup is built in; turn on the models you need and verify with Test model
If you need an endpoint not covered by the templates (for example the OpenAI-compatible Coding endpoint https://open.bigmodel.cn/api/coding/paas/v4), use Create custom provider instead — see Custom Providers.
Connect Z.ai
Z.ai is the access path for users outside China. Setup mirrors BigModel:
Open the Model settings panel through either method above
Select Z.ai in the Providers group on the left
If you are signed in with a Z.ai account, the page shows your plan status directly. If the Coding Plan card shows Not connected, click Connect to Z.ai; ZCode starts the sign-in flow, which you complete as described in Sign-in Screen
Once connected, you can use built-in models such as GLM-5.4 and GLM-5.3-Flash
The Providers group on the left usually shows only the entry for your region: BigModel for accounts in China, Z.ai for everyone else.
Start Plan and Coding Plans
As with BigModel, new users can use the Start Plan from the Start Plan page on the left after signing in. You can also click the For Individuals card to buy a GLM Coding Plan (Lite / Pro / Max, priced in USD) on the Upgrade Plan page, with monthly, quarterly, or yearly billing. The new plans meter usage in credits and add a weekly allowance — see the Coding Plan Revision Notice.
Connect With an API Key
Likewise, pick a Z.ai template in the Zhipu group of the Add provider panel and enter the API key from the Z.ai platform:
Option AZ.ai Coding PlanUse this if you bought a GLM Coding Plan and want to spend its quota through an API key.EntryAdd provider → Zhipu → Z.ai Coding PlanAPI formatAnthropic Messages (/v1/messages)Base URLhttps://api.z.ai/api/anthropic01In the Add provider panel, choose Z.ai Coding Plan in the Zhipu group02Enter your Z.ai Coding Plan API key (Get API key opens Z.ai's API key management page)03GLM-5.4 and GLM-5.3-Flash are built in; click Test model to confirm the connection
Option BZ.ai API (resource packages / balance)Use this without a Coding Plan, when you pay with resource packages or account balance. It uses the OpenAI-compatible general endpoint.EntryAdd provider → Zhipu → Z.ai APIAPI formatChat Completions (/chat/completions)Base URLhttps://api.z.ai/api/paas/v401In the Add provider panel, choose Z.ai API in the Zhipu group02Enter an API key from the Z.ai platform and turn on the GLM models you need03Verify the setup with Test model
Preset Third-party Providers
The Add provider panel includes presets for common model services. When you pick a preset, the Base URL, API format, and available model list are filled in automatically — you only need to enter that platform's API key and turn on the switch. You can still click Add model to add other models by hand.
General steps:
Open the Model settings panel through either method above
Click Add provider in the upper-right corner and choose the preset in the Other group
Enter the key from that platform in the API key field (Get API key opens the platform directly)
Make sure the models you need are enabled in the model list, click Test model to confirm the connection, and pick them in chat
Scrolling further down the Other group shows Kimi Code, MiniMax M Plan, Alibaba Coding Plan / Token Plan Team, Xiaomi MiMo Token Plan, Tencent TokenHub, Volcano Ark, StepFun, SiliconFlow, OpenRouter, plus OpenCode Go and OpenCode Zen, each in three protocol variants. The sections below cover the key links and defaults of the most common presets; the rest are listed in the table at the end.
Anthropic (Claude API)
Preset Base URL: https://api.anthropic.com/v1, API format Anthropic Messages
Get an API key from the Anthropic Console, where you can also check usage and plans
Preset models include claude-fable-5-1, claude-opus-5-5, claude-sonnet-5-5, and claude-haiku-5-5 (on by default), plus the legacy claude-fable-5, claude-opus-5, claude-sonnet-5, and claude-haiku-4-5-20251001 (off by default)
OpenRouter
Go to the OpenRouter platform, register an account, create an API key, then choose OpenRouter in the Add provider panel.
Preset Base URL: https://openrouter.ai/api, API format Anthropic Messages
Preset models cover the mainstream models on OpenRouter, such as anthropic/claude-opus-5.5, anthropic/claude-fable-5.1, openai/gpt-6.1-sol, openai/gpt-6-luna, deepseek/deepseek-v4-pro, moonshotai/kimi-k3.1-pro, z-ai/glm-5.4, x-ai/grok-4.7, and xiaomi/mimo-v2.6-pro, using OpenRouter's vendor/model naming
Moonshot (Kimi)
Choose Kimi in the Add provider panel.
Preset Base URL: https://api.moonshot.cn/anthropic, API format Anthropic Messages
Get an API key from the Kimi open platform, where token packages and usage are available
Preset models include kimi-k3.1-pro, kimi-k3.1-pro-highspeed, kimi-k3, kimi-k2.7-code, and kimi-k2.6
If you subscribe to Kimi Code, choose the Kimi Code (China) or Kimi Code (International) preset instead; see More Presets
OpenAI
Choose OpenAI in the Add provider panel.
Preset Base URL: https://api.openai.com/v1, API format Responses
Get an API key from the OpenAI platform
Preset models include gpt-6.1-sol, gpt-6.1-terra, gpt-6-astra, gpt-6-luna, and gpt-5.6-terra (on by default), plus gpt-5.6-sol, gpt-5.6-luna, gpt-5.4, and others (off by default)
OpenAI's newest gpt-6.2-astra and gpt-6.2-sol are not in the preset list yet; click Add model and enter the model ID to use them. The same applies to gpt-5.5 and gpt-5.5-pro
MiniMax
Choose MiniMax in the Add provider panel.
Preset Base URL: https://api.minimaxi.com/anthropic, API format Anthropic Messages
Get an API key from the MiniMax open platform, where plans and billing are available
Preset models include MiniMax-M3.1-Flash, MiniMax-M3, MiniMax-M2.7, and MiniMax-M2.7-highspeed
If you subscribe to MiniMax M Plan, choose the MiniMax M Plan (China) preset instead; see More Presets
Xiaomi MiMo
Choose Xiaomi MiMo API in the Add provider panel.
Preset Base URL: https://api.xiaomimimo.com/anthropic, API format Anthropic Messages
Get an API key from the Xiaomi MiMo open platform, which offers Token Plan packages; with a Token Plan, choose the Xiaomi MiMo Token Plan preset instead (see More Presets)
Preset models include mimo-v2.6-pro and mimo-v2.6-flash (on by default), plus mimo-v2.5-pro and mimo-v2.5 (off by default)
mimo-v2.6-pro-ultraspeed is not in the preset list; click Add model and enter the model ID if you need it
DeepSeek
Choose DeepSeek in the Add provider panel.
Preset Base URL: https://api.deepseek.com/anthropic, API format Anthropic Messages
Get an API key from the DeepSeek open platform
Preset models include deepseek-flash and deepseek-v4-pro
More Presets
These presets work the same way — pick one and enter the platform's API key:
PresetAPI formatPreset Base URLGet an API keyAlibaba Cloud (China)Anthropic Messageshttps://dashscope.aliyuncs.com/apps/anthropicModel Studio console (China)Alibaba Cloud (Global)Chat Completionshttps://dashscope-intl.aliyuncs.com/compatible-mode/v1Model Studio consoleAlibaba Coding Plan (China)Chat Completionshttps://coding.dashscope.aliyuncs.com/v1Model Studio console (China)Alibaba Token Plan Team (China)Chat Completionshttps://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1Model Studio console (China)Kimi Code (China)Chat Completionshttps://api.kimi.com/coding/v1Kimi Code consoleKimi Code (International)Chat Completionshttps://api.kimi.ai/coding/v1Kimi Code consoleMiniMax M Plan (China)Anthropic Messageshttps://api.minimax.cn/anthropicMiniMax consoleXiaomi MiMo Token PlanAnthropic Messageshttps://token-plan-cn.xiaomimimo.com/anthropicXiaomi MiMo open platformTencent TokenHub Guangzhou API (China account)Chat Completionshttps://tokenhub.tencentmaas.com/v1Tencent Cloud TokenHub consoleTencent TokenHub Singapore API (China account)Chat Completionshttps://tokenhub-intl.tencentmaas.com/v1Tencent Cloud TokenHub consoleVolcano Ark APIAnthropic Messageshttps://ark.cn-beijing.volces.com/api/compatibleVolcano Ark consoleVolcano Ark Coding PlanAnthropic Messageshttps://ark.cn-beijing.volces.com/api/codingVolcano Ark consoleVolcano Ark Agent PlanAnthropic Messageshttps://ark.cn-beijing.volces.com/api/planVolcano Ark consoleStepFun APIAnthropic Messageshttps://api.stepfun.comStepFun open platformStepFun Step PlanAnthropic Messageshttps://api.stepfun.com/step_planStepFun open platformSiliconFlow API (China)Chat Completionshttps://api.siliconflow.cn/v1SiliconFlow consolexAIResponseshttps://api.x.ai/v1xAI consoleOpenCode Go (Chat / Anthropic / Responses)As named in parentheseshttps://opencode.ai/zen/go/v1OpenCodeOpenCode Zen (Chat / Anthropic / Responses)As named in parentheseshttps://opencode.ai/zen/v1OpenCode
Alibaba Cloud presets include Qwen models such as qwen3.8-max, qwen3.8-flash, and qwen3.7-max. xAI includes grok-4.7 and grok-build-0.1 (on by default), plus grok-4.6 and grok-4.3 (off by default). The OpenCode presets are split by protocol because different models on the same platform use different protocols — pick the variant that matches the model you want.
Custom Providers (Anthropic / OpenAI Compatible)
Beyond the presets, ZCode can add any model service compatible with the Anthropic / OpenAI protocols as a custom provider — public model services, team-managed enterprise channels, or self-hosted services on a private network.
Setup Steps
Open the Model settings panel
Click Add provider and choose Create custom provider
Name the provider (for example, the name of your team channel)
Enter the Base URL and choose the matching API format (Anthropic Messages, Chat Completions, or Responses)
Enter the API key for the service
Click Add model and enter the model IDs supported by the service, or the IDs agreed on by your team
Turn on the enable switch, click Test model to confirm the connection, and start using it
Team usage tip: for enterprise model channels, manage the Base URL, API key, model list, and access policy at the team level so long-running tasks have a stable and traceable model connection. For team-level seats, usage, and permission management, see the GLM Coding Plan Team edition.
Per-Model Advanced Settings
Click the Edit icon (the pencil) on the right of a model in the model list to open the Edit model settings dialog. Settings here apply to that one model only.
FieldDescriptionSmart configurationWhen on, ZCode matches a recommended configuration by model ID, Base URL, and API format and keeps it updated. Fields you change in the dialog override the recommendation; the other fields keep following it. When off, every parameter of this model is managed by hand.Model IDThe model name actually sent to the provider.Context windowHow many tokens the model can handle at once. ZCode uses it to manage context and automatic compaction. Do not exceed the model's real limit.Max output tokensThe maximum number of tokens one request may generate, i.e. the length cap for a single reply. With Smart configuration on, leaving it empty keeps the recommended value; with it off, the field is required.Input typesThe content the model can accept: Text (required), Image, Video, PDF. ZCode only sends matching attachments when the type is checked.Model capabilitiesStructured output (JSON Schema constraints), native web search, and mid-conversation system messages. Do not check capabilities the model lacks.Reasoning levels (low to high)The reasoning effort levels selectable in chat, ordered from low to high. Do not add levels the model does not support.Reasoning parameter mappingA CEL expression that maps the current reasoningLevel to request fields; the returned JSON object is merged into the request body. Preset models ship with a mapping, so you rarely need to change it.
Each row in the model list also has a Test model icon (the plug shape to the left of Edit). Clicking it sends one real request to that model with the current configuration and, within a few seconds, reports "provider / model connected" or "Failed to connect" with the reason. After changing a key, Base URL, or model ID, test first before starting a conversation — it saves a lot of troubleshooting.
When raising max output tokens, keep in mind that automatic compaction reserves part of the context for output, and the reserve is the smaller of max output tokens and 21K. Below 21K, a higher cap makes compaction start sooner; above 21K, raising it further does not.
Editing the Config File
Everything you change in the settings page is written to a local config file, which you can also edit directly — handy for bulk changes or copying a setup between machines:
~/.zcode/v2/provider_config.json
The file holds three main sets of rules:
providerConfigRules.providerRules: the providers you added or modified.
modelConfigRules.providerModelRules: model parameters you changed with Smart configuration on. Write only the fields you want to override.
modelConfigRules.manualProviderModelRules: models with Smart configuration turned off. Every editable field of the model must be written out.
The example below shrinks the context window and max output of deepseek-v4-pro in the DeepSeek preset and turns off image input. It lives in providerModelRules, so the other fields keep following Smart configuration:
{
"schemaVersion": 1,
"config": {
"providerConfigRules": {
"providerRules": [
{
"providerId": "deepseek",
"templateId": "deepseek",
"providerName": "DeepSeek",
"config": {
"group": "standard-personal",
"personalModelIds": [],
"modelOrder": []
}
}
]
},
"modelConfigRules": {
"providerModelRules": [
{
"providerId": "deepseek",
"modelId": "deepseek-v4-pro",
"config": {
"properties": {
"contextWindow": 200000,
"inputFormat": { "supportsImage": false }
},
"optionSpecs": {
"maxOutputTokens": { "max": 64000 }
}
}
}
],
"manualProviderModelRules": []
}
}
}
Notes:
templateId refers to a preset in the Add provider panel. Custom providers have no templateId; their Base URL and API format live in config.api (type is anthropic-messages, openai-chat-completions, or openai-responses, and baseUrl is the full address).
Model fields map one-to-one to the dialog: contextWindow is the context window, maxOutputTokens.max the max output, supportsImage / supportsVideo / supportsPdf under inputFormat are the input types, supportsJsonSchemaOutput / supportsNativeWebSearch / supportsMidConversationSystem are the capabilities, reasoningLevel.values are the reasoning levels, and reasoningLevel.map is the reasoning parameter mapping.
A model in manualProviderModelRules must include all of the fields above (including reasoningLevel.map). A missing field prevents the whole personal config from loading, so use providerModelRules when you only want to change a few fields.
A model cannot appear in both providerModelRules (Smart configuration) and manualProviderModelRules (manual).
ZCode checks the file once per second while running, so saved changes apply automatically without a restart; you can also click Refresh in the top-right of Model settings. A valid file is rewritten into ZCode's canonical format.
If the JSON is invalid, ZCode neither changes nor backs up the file; it simply ignores your personal config for now (built-in providers are unaffected) and picks it up again once the file is fixed.
Do not commit this file to a repository or share it — it may contain your API keys.
Changing the Context Window
Every model's context window can be edited in Edit model settings, including custom providers, presets, and the built-in models of plans (Individual Plan / Start Plan).
Your change is stored in your local personal config and overrides the recommended value; server-side updates to the recommended configuration do not revert it.
Models that match no built-in rule (for example, a model you just added to a custom provider) default to a 1M (1000000) context window and 128K max output in the recommended configuration; if the model's real window is smaller, change it to the actual value.
When a session approaches the window limit, ZCode compacts the context automatically. Compaction starts before the nominal window: the window minus the output reserve (the smaller of max output tokens and 21K), minus a buffer of about 13K.
Effort
Click the model name in the chat input to open the model selector, then use Effort in the menu to choose a reasoning level. Available levels come from the model configuration. The highest level in the list is selected by default.
Supported levels vary by model. Use the options shown for the selected model as your reference. Custom models without a matching level rule typically provide only an on/off option.
View model level referenceThe following levels are defined by built-in rules. Manual configurations and third-party services may use different rules.ModelAvailable levelsGLM-5.4, GLM-5.3-Flashlow / high / maxGLM-5.2off / high / maxClaude Fable 5.1, Opus 5.5, Sonnet 5.5, Fable 5, Opus 5, Sonnet 5low / medium / high / xhigh / maxClaude Haiku 4.5on / offGPT-6.1 Sol, GPT-6 Astralow to maxGPT-6 Lunanone to maxGPT-5.6none to maxGPT-5.4, GPT-5.4 Mini, GPT-5.4 Nanonone to xhighGPT-5.4 Promedium / high / xhighGPT-5.3 Codexlow to xhighKimi K3low / high / maxDeepSeek V4 seriesoff / low / high / maxCustom models without a matching ruleon / off
Third-party Service Compatibility
The same model may support different reasoning levels through different providers. If a request fails with a reasoning-parameter error, select a level supported by the provider or update the mapping under Edit model settings → Reasoning parameter mapping.
Reasoning parameter mappingZCode converts the selected level into request parameters for the API format:API formatRelated request fieldsOpenAI Responsesreasoning.effortOpenAI Chat-compatiblereasoning_effort, thinking, enable_thinking, and related fieldsAnthropic-compatiblethinking, output_config.effortFor provider-specific requirements, use a CEL expression to map reasoningLevel to the required request fields. The returned object is merged into the request body. ZCode does not currently provide a separate input for arbitrary request parameters.For example, some third-party DeepSeek V4 services do not accept max. Select a level supported by that service instead of reusing the official endpoint configuration without adjustment.
Image Input
ZCode uses the model's Input types configuration to determine whether to send images. The built-in GLM-5.3-Flash model requires no additional setup when used through a BigModel or Z.ai Coding Plan.
For a custom model or third-party service:
Confirm that both the model and the provider's endpoint support image input.
Enable Image under Edit model settings → Input types.
Send an image in a conversation to verify that the model can process it.
When image input is disabled, ZCode removes images before sending the request and substitutes a text notice. Enabling Image changes what ZCode sends; it does not add image capabilities to the model.
Model and API matching rulesImage support is determined by built-in model rules, the API protocol, and manual configuration. Defaults may differ when the same model uses different protocols. For example, GLM-5.4 supports images through the official Anthropic-compatible endpoint, while its OpenAI Chat-compatible configuration defaults to no image support.Suffixed model names may match a base model rule: for example, glm-5.3-highspeed matches GLM-5.3. Custom models without a matching built-in rule require image input to be enabled manually.If an image request fails, check the model ID, the endpoint's supported inputs, and the input-type configuration.
Verify The Setup
The quickest check is the Test model icon on the model row, which confirms within seconds that the endpoint, key, and model ID match. Then choose the channel from the model selector in the chat box and send a short test instruction. Once the model responds reliably, you are ready to go.
Next Steps
InstallDownload and install the new ZCode desktop app.Feedback & SupportLearn how to report issues effectively.FAQ (Q&A)Review common questions around setup, installation, and usage.