zai-org / zai-org/feedback

[Suggestion / Feature] Allow custom model API keys in chat.z.ai + use Coding Plan endpoint for prioritized access

Open
#144 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

[Suggestion / Feature] Allow custom model API keys in chat.z.ai + use the Coding Plan endpoint for prioritized model access

Observed context (from community discussion, not official docs):

  • chat.z.ai today exposes Z.AI's own GLM models. Users frequently ask how to bring their own keys / use non-GLM models, but there is currently no in-UI option to add a custom endpoint or API key inside chat.z.ai.
  • The Coding Plan API endpoint is real and already used by the community — users route it into external tools (Claude Code, Zed) to get prioritized/plan-rated access to models. That same prioritized path is not available from inside chat.z.ai itself.

Proposal:

  1. Custom model API support in chat.z.ai. Let users add their own API keys / base URLs (OpenAI-compatible, Anthropic, or any endpoint) so they can use non-GLM models alongside GLM in the same chat UI.
  2. Coding Plan endpoint inside chat.z.ai. Expose the Coding Plan API endpoint as a selectable backend in chat.z.ai, so users get the plan's prioritized access to all models without leaving the web UI or wiring up external tools.

Why this matters — especially for overload:
During GLM-5.2 saturation (the [1305] overload loop), GLM models are unavailable but a user's own API key (or the Coding Plan endpoint's prioritized path) may still work. Letting users fail over to:

  • their own non-GLM key, or
  • the Coding Plan endpoint's prioritized access
    ...turns a hard "model overloaded, reconnecting…" wall into a graceful continuation. It also reduces load on the public GLM pool by letting heavy users offload to their own endpoints.

Why this matters: Giving users a built-in offload path during peaks improves uptime perception and keeps work flowing, without Z.AI adding servers.

Regards,
Roman

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files, tests, or implementation entry points are identified in the issue. Start by locating the chat.z.ai backend and model-provider configuration, then determine how custom credentials, base URLs, model selection, and the Coding Plan endpoint would be represented; done means both proposed access paths work in the chat UI without breaking existing GLM access.

Written by the indexing model from the issue text.

Assessment

Domain
ai, api, backend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.