Skip to Content

Access Ling 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 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-3.2-flash", 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-3.2-flash.

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