Clients
Point the client at this site and put the token in the key field. Do not use another gateway's address.
Pick the base URL from how the client builds paths:
| What the client expects | Value |
|---|---|
An OpenAI base URL. It appends paths such as chat/completions | https://uni.sointech.com.cn/v1 |
A site origin. It requests /v1/chat/completions itself | https://uni.sointech.com.cn |
The key is the sk-... token from the console. Do not include the Bearer prefix in the key field. Bearer belongs only in the HTTP header.
OpenAI Python SDK
from openai import OpenAI
client = OpenAI(
api_key="sk-your-token",
base_url="https://uni.sointech.com.cn/v1",
)
response = client.chat.completions.create(
model="qwen-plus",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Install it with pip install openai. Keep the trailing /v1 on base_url.
OpenAI Node SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "sk-your-token",
baseURL: "https://uni.sointech.com.cn/v1",
});
const response = await client.chat.completions.create({
model: "qwen-plus",
messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);Claude SDK
The official Claude SDK and Claude Code use a different path. Do not append OpenAI's /v1. The origin is https://uni.sointech.com.cn, and the SDK requests /v1/messages. Fields and examples are in Claude-compatible.
import anthropic
client = anthropic.Anthropic(
api_key="sk-your-token",
base_url="https://uni.sointech.com.cn",
)Compatible desktop clients
Choose an OpenAI-compatible or custom provider, then:
- Fill the address from the table above. Do not append
/v1twice. - Put the token in the API key field.
- Use an
idfrom the model list. Do not keep a model name that this site does not offer.
For a client such as Cherry Studio, choose the OpenAI-compatible provider, set the address to https://uni.sointech.com.cn, and set the key to the token. If the request path becomes /v1/v1/chat/completions, the address already contained /v1. Remove it.
