Skip to Content

Access Ling / Ring on ZenMux

If you already use ZenMux to uniformly manage multiple large models (authentication, quota, audit, grayscale), you can add Ant Ling as an upstream provider; the application side still uses OpenAI SDK (or OpenAI compatible HTTP) calling method.

This article is divided into two parts:

  • Platform side (ZenMux): Configure Ant Ling as upstream in ZenMux, and create an external access credential for the business
  • Business side (Application): Point base_url to ZenMux, call ling / ming / ring respectively

What You Need to Prepare

  • ZenMux gateway’s external address (example: https://zenmux.ai/api/v1)
  • API Key issued by ZenMux for the business (example: ZENMUX_API_KEY)

Call Ling

from openai import OpenAI client = OpenAI( base_url="https://zenmux.ai/api/v1", api_key="<ZENMUX_API_KEY>", ) # Chat Completion completion = client.chat.completions.create( model="inclusionai/ling-2.6-flash", messages=[ { "role": "user", "content": "What is the meaning of life?" } ] ) print(completion.choices[0].message.content)

Call Ring (Reasoning / Math / Code)

Ring is more suitable for complex reasoning, math, and code tasks. For the business side, the calling method is the same as Ling, the key is selecting the appropriate model name:

from openai import OpenAI client = OpenAI( base_url="https://zenmux.ai/api/v1", api_key="<ZENMUX_API_KEY>", ) # Chat Completion completion = client.chat.completions.create( model="inclusionai/ring-2.6-1t", messages=[ { "role": "user", "content": "What is the meaning of life?" } ] ) print(completion.choices[0].message.content)

FAQ

What model name should I fill in?

Use the model ID displayed on the ZenMux platform , e.g., inclusionai/ling-2.6-1t, inclusionai/ling-2.6-flash, inclusionai/ring-2.6-1t, etc.

How to troubleshoot 401/403?

  • Confirm you are using ZenMux’s key (not Ant Ling’s key)
  • Confirm ZenMux’s key has been authorized to access the corresponding route/model
  • On platform side, confirm ZenMux’s upstream key for accessing Ant Ling is still valid and has sufficient quota
Was this page helpful?
Last updated on