Install the OpenAI Python SDK and set PARETO_API_KEY in your environment.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.paretoinference.com/v1",
api_key=os.environ["PARETO_API_KEY"],
)
response = client.chat.completions.create(
model="z-ai/glm-5.3-flash",
messages=[{"role": "user", "content": "Hello, Pareto."}],
stream=True,
)
for chunk in response:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")Copy Get started now Install the OpenAI SDK and set PARETO_API_KEY in your server environment.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.PARETO_API_KEY,
baseURL: "https://api.paretoinference.com/v1",
});
const response = await client.chat.completions.create({
model: "z-ai/glm-5.3-flash",
messages: [{ role: "user", content: "Hello, Pareto." }],
stream: true,
});
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}Copy Get started now Set PARETO_API_KEY for OpenClaw and merge this into ~/.openclaw/openclaw.json. Start a new session.
{
"agents": {
"defaults": {
"model": {
"primary": "pareto/z-ai/glm-5.3-flash"
}
}
},
"models": {
"mode": "merge",
"providers": {
"pareto": {
"baseUrl": "https://api.paretoinference.com/v1",
"apiKey": "${PARETO_API_KEY}",
"api": "openai-completions",
"models": [
{
"id": "z-ai/glm-5.3-flash",
"name": "GLM 5.3 Flash (Pareto)"
}
]
}
}
}
}Copy Get started now Run hermes model outside an active chat. Choose Custom endpoint, then enter these values.
Command hermes model
Endpoint Custom endpoint (self-hosted / VLLM / etc.)
API compatibility Chat Completions or Auto-detect
Base URL https://api.paretoinference.com/v1
API key Your Pareto API key
Model z-ai/glm-5.3-flashCopy command Get started now Set PARETO_API_KEY and merge this into ~/.config/opencode/opencode.json. Keep your existing providers and settings, then start OpenCode.
{
"$schema": "https://opencode.ai/config.json",
"model": "pareto/z-ai/glm-5.3-flash",
"small_model": "pareto/z-ai/glm-5.3-flash",
"provider": {
"pareto": {
"npm": "@ai-sdk/openai-compatible",
"name": "Pareto Inference",
"options": {
"baseURL": "https://api.paretoinference.com/v1",
"apiKey": "{env:PARETO_API_KEY}"
},
"models": {
"z-ai/glm-5.3-flash": {
"name": "GLM 5.3 Flash"
}
}
}
}
}Copy Get started now Set PARETO_API_KEY, then start Claude Code with these variables. Use the base URL without /v1. Set all four model variables, or Claude Code requests Claude models and fails with a 401.
export ANTHROPIC_BASE_URL=https://api.paretoinference.com
export ANTHROPIC_AUTH_TOKEN="$PARETO_API_KEY"
export ANTHROPIC_MODEL=z-ai/glm-5.3-flash
export ANTHROPIC_DEFAULT_HAIKU_MODEL=z-ai/glm-5.3-flash
export ANTHROPIC_DEFAULT_SONNET_MODEL=z-ai/glm-5.3-flash
export ANTHROPIC_DEFAULT_OPUS_MODEL=z-ai/glm-5.3-flash
claudeCopy Get started now Set PARETO_API_KEY and merge this provider into ~/.codex/config.toml, then start Codex.
model = "z-ai/glm-5.3-flash"
model_provider = "pareto"
[model_providers.pareto]
name = "Pareto"
base_url = "https://api.paretoinference.com/v1"
env_key = "PARETO_API_KEY"
wire_api = "responses"Copy Get started now Set PARETO_API_KEY and merge this provider into ~/.pi/agent/models.json. Select it with /model.
{
"providers": {
"pareto": {
"baseUrl": "https://api.paretoinference.com/v1",
"api": "openai-completions",
"apiKey": "$PARETO_API_KEY",
"models": [
{
"id": "z-ai/glm-5.3-flash",
"name": "GLM 5.3 Flash (Pareto)"
}
]
}
}
}Copy Get started now Open Cline settings, select OpenAI Compatible, and save these connection values.
API type OpenAI Compatible
Base URL https://api.paretoinference.com/v1
API key Your Pareto API key
Model z-ai/glm-5.3-flashCopy base URL Get started now Set PARETO_API_KEY and save this as ~/.config/goose/custom_providers/pareto.json. Set GOOSE_PROVIDER=pareto and GOOSE_MODEL, then run Goose with the developer extension.
{
"name": "pareto",
"engine": "openai",
"display_name": "Pareto Inference",
"api_key_env": "PARETO_API_KEY",
"base_url": "https://api.paretoinference.com/v1/chat/completions",
"models": [
{
"name": "z-ai/glm-5.3-flash"
}
],
"requires_auth": true,
"supports_streaming": true
}Copy Get started now Set PARETO_API_KEY, then start Aider in your repository. Keep the openai/ prefix and ignore the model names Aider suggests.
export OPENAI_API_BASE=https://api.paretoinference.com/v1
export OPENAI_API_KEY="$PARETO_API_KEY"
aider --model openai/z-ai/glm-5.3-flash --no-show-model-warningsCopy Get started now Put PARETO_API_KEY in ~/.continue/.env and merge this into ~/.continue/config.yaml. The editor extension does not read shell variables.
name: Pareto Inference
version: 1.0.0
schema: v1
models:
- name: GLM 5.3 Flash (Pareto)
provider: openai
model: z-ai/glm-5.3-flash
apiBase: https://api.paretoinference.com/v1
apiKey: ${{ secrets.PARETO_API_KEY }}
roles:
- chat
- edit
- apply
capabilities:
- tool_useCopy Get started now Set PARETO_API_KEY and merge this into ~/.omp/agent/models.yml. Start Oh My Pi with omp --model pareto/z-ai/glm-5.3-flash.
providers:
pareto:
baseUrl: https://api.paretoinference.com/v1
api: openai-completions
apiKey: PARETO_API_KEY
authHeader: true
models:
- id: z-ai/glm-5.3-flash
name: GLM 5.3 Flash (Pareto)Copy Get started now Set PARETO_API_KEY and add this to ~/.config/crush/crushrc. Select pareto/z-ai/glm-5.3-flash in Crush. Use openai-compat, not openai.
provider add pareto --type openai-compat \
--name "Pareto Inference" \
--base-url "https://api.paretoinference.com/v1" \
--api-key "$PARETO_API_KEY"
model add pareto/z-ai/glm-5.3-flash --name "GLM 5.3 Flash"Copy Get started now Set PARETO_API_KEY, then start Qwen Code. Use --auth-type openai, not openai-responses.
export OPENAI_API_KEY="$PARETO_API_KEY"
export OPENAI_BASE_URL=https://api.paretoinference.com/v1
export OPENAI_MODEL=z-ai/glm-5.3-flash
qwen --auth-type openaiCopy Get started now Open Settings → Providers → Custom provider. Save Pareto and select the model. Set the context limit to 1,048,576 and the output limit to 131,072 tokens; Kilo needs them for automatic context compaction.
Provider ID pareto
Name Pareto
API type OpenAI Compatible
Base URL https://api.paretoinference.com/v1
API key Your Pareto API key
Model z-ai/glm-5.3-flashCopy base URL Get started now Settings → Model settings → Add provider → Create custom provider. Use Chat completions, the Pareto base URL, and model z-ai/glm-5.3-flash. Clear Image, Video and PDF, and paste this into the model's Reasoning parameter mapping. The default mapping sends fields Pareto rejects.
{
"reasoning_effort": reasoningLevel == "disabled" ? "none" : reasoningLevel == "enabled" ? "high" : reasoningLevel
}Copy Get started now Add a custom OpenAI-compatible provider, then save a connection with your Pareto key.
Name Pareto
Prefix pareto
API type Chat Completions
Base URL https://api.paretoinference.com/v1
Model z-ai/glm-5.3-flashCopy base URL Get started now Add this model to your existing config. Keep your proxy access settings.
model_list:
- model_name: pareto-flash
litellm_params:
model: openai/z-ai/glm-5.3-flash
api_base: https://api.paretoinference.com/v1
api_key: os.environ/PARETO_API_KEYCopy Get started now Add this entry to config.yaml and restart CLIProxyAPI. The base URL keeps /v1. Apps use a key from api-keys, not your Pareto key.
openai-compatibility:
- name: "pareto"
base-url: "https://api.paretoinference.com/v1"
api-key-entries:
- api-key: "YOUR_PARETO_API_KEY"
models:
- name: "z-ai/glm-5.3-flash"Copy Get started now Open Channels → Add channel, save these values, and select Test. The base URL has no /v1. Apps use a new-api token, not your Pareto key.
Type OpenAI
Name Pareto
Base URL https://api.paretoinference.com
Key Your Pareto API key
Models z-ai/glm-5.3-flashCopy base URL Get started now Open Channels (渠道) → Add channel, save these values, and select Test. The base URL has no /v1. Apps use a One API token, not your Pareto key.
Type OpenAI
Name pareto
Base URL https://api.paretoinference.com
Key Your Pareto API key
Models z-ai/glm-5.3-flashCopy base URL Get started now Add a custom OpenAI-compatible provider, then save a connection with your Pareto key.
Name Pareto
Prefix pareto
API type Chat Completions
Base URL https://api.paretoinference.com/v1
Model z-ai/glm-5.3-flashCopy base URL Get started now Run the gateway from the Docker image; the npx build breaks streaming. Apps send your Pareto key and both x-portkey headers.
docker run -d -p 127.0.0.1:8787:8787 portkeyai/gateway:latest
curl http://localhost:8787/v1/chat/completions \
-H "Authorization: Bearer $PARETO_API_KEY" \
-H "Content-Type: application/json" \
-H "x-portkey-provider: openai" \
-H "x-portkey-custom-host: https://api.paretoinference.com/v1" \
-d '{"model": "z-ai/glm-5.3-flash", "messages": [{"role": "user", "content": "Say hello."}], "stream": true}'Copy Get started now Set PARETO_API_KEY and save this as config.json in the Bifrost app directory. The base URL has no /v1. Apps use the model pareto/z-ai/glm-5.3-flash.
{
"providers": {
"pareto": {
"keys": [
{
"name": "pareto",
"value": "env.PARETO_API_KEY",
"models": [
"*"
],
"weight": 1
}
],
"network_config": {
"base_url": "https://api.paretoinference.com",
"default_request_timeout_in_seconds": 300
},
"custom_provider_config": {
"base_provider_type": "openai",
"allowed_requests": {
"chat_completion": true,
"chat_completion_stream": true,
"list_models": true
}
}
}
}
}Copy Get started now Open Groups → Add group, save these values, then create an access key for your apps. The upstream URL keeps /v1.
Channel OpenAI Compatible
Upstream URL https://api.paretoinference.com/v1
API keys Your Pareto API key
Models z-ai/glm-5.3-flashCopy base URL Get started now Open Channels → Add Channel and save these values. New channels start disabled, so enable the channel. Apps use an AxonHub API key.
Provider OpenAI
Name pareto
Base URL https://api.paretoinference.com/v1
API key Your Pareto API key
Models z-ai/glm-5.3-flashCopy base URL Get started now Open Admin Panel → Settings → Connections and add an OpenAI API connection. Keep API Type on Chat Completions.
URL https://api.paretoinference.com/v1
Key Your Pareto API key
API type Chat Completions
Model z-ai/glm-5.3-flashCopy base URL Get started now Run NextChat with your key on the server. BASE_URL has no /v1, and CUSTOM_MODELS adds the Pareto model.
docker run -d -p 3000:3000 \
-e OPENAI_API_KEY="$PARETO_API_KEY" \
-e BASE_URL="https://api.paretoinference.com" \
-e CUSTOM_MODELS="-all,+z-ai/glm-5.3-flash@OpenAI" \
-e DEFAULT_MODEL="z-ai/glm-5.3-flash@OpenAI" \
yidadaa/chatgpt-next-web:v2.16.1Copy Get started now Run AnythingLLM with the Generic OpenAI provider. Keep Max Tokens at 8192 or more; reasoning counts toward it.
docker run -d -p 3001:3001 --cap-add SYS_ADMIN \
-v anythingllm_storage:/app/server/storage \
-e STORAGE_DIR=/app/server/storage \
-e LLM_PROVIDER=generic-openai \
-e GENERIC_OPEN_AI_BASE_PATH=https://api.paretoinference.com/v1 \
-e GENERIC_OPEN_AI_API_KEY="$PARETO_API_KEY" \
-e GENERIC_OPEN_AI_MODEL_PREF=z-ai/glm-5.3-flash \
-e GENERIC_OPEN_AI_MAX_TOKENS=8192 \
mintplexlabs/anythingllm:1.16.2Copy Get started now Open Settings → Model Provider → Add Provider, then Sync models. Also set the Quick Model to Pareto, or titles go to Cherry's own service.
Name Pareto Inference
API key Your Pareto API key
OpenAI URL https://api.paretoinference.com
Model z-ai/glm-5.3-flashCopy base URL Get started now Add this endpoint to librechat.yaml, set PARETO_API_KEY in .env, and restart. Keep dropParams: Pareto rejects the user field.
endpoints:
custom:
- name: "Pareto"
apiKey: ${PARETO_API_KEY}
baseURL: "https://api.paretoinference.com/v1"
models:
default: ["z-ai/glm-5.3-flash"]
fetch: true
titleConvo: true
titleModel: "current_model"
dropParams: ["user"]Copy Get started now Open Settings → Model Provider → Add → Add Custom Provider, then Fetch models. Keep API Path empty.
API mode OpenAI API Compatible
API key Your Pareto API key
API host https://api.paretoinference.com/v1
Model z-ai/glm-5.3-flashCopy base URL Get started now Open API Connections, enter these values, and select Connect. Raise Max Response Length from 300, or reasoning uses up the answer.
Source Custom (OpenAI-compatible)
Endpoint https://api.paretoinference.com/v1
API key Your Pareto API key
Model z-ai/glm-5.3-flash
Response Max Response Length 2048 or more Copy base URL Get started now