Model Gateway
Chat Completions
OpenAI Chat Completions compatible entrypoint for chat, tool calls, JSON output, and regular app integration.
Method
POSTEndpoint
/v1/chat/completionsBase URL
https://api-zeno.com/v1Auth
Authorization: Bearer $API_ZENO_KEYNotes
- The model must be configured in model, channel, or account-pool settings.
- Requests go through API-Zeno quota, logs, channel scheduling, and billing.
- Routing to different upstream protocols depends on admin configuration.
Example
typescript
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.API_ZENO_KEY,
baseURL: "https://api-zeno.com/v1",
});
const result = await client.chat.completions.create({
model: "gpt-4o-mini",
messages: [{ role: "user", content: "Hello API-Zeno" }],
});
console.log(result.choices[0]?.message?.content);python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_ZENO_KEY",
base_url="https://api-zeno.com/v1",
)
result = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello API-Zeno"}],
)
print(result.choices[0].message.content)