← All models
Usage
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.tributary.cc/openai/v1",
apiKey: "<TRIBUTARY_API_KEY>",
});
const completion = await client.chat.completions.create({
model: "z-ai:glm-4.7-flash",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(completion.choices[0].message.content); Providers
| Provider | Model | Context | Output | Input $/M | Output $/M |
|---|---|---|---|---|---|
| Z.ai | glm-4.7-flash | 200K 200,000 tokens | 128K 128,000 tokens | Free | Free |
| DeepInfra | zai-org/GLM-4.7-Flash | 203K 202,752 tokens | 203K 202,752 tokens | $0.06 | $0.40 |
| Novita | zai-org/glm-4.7-flash | 200K 200,000 tokens | 128K 128,000 tokens | $0.07 | $0.40 |
| Z.ai | glm-4.7-flashx | 200K 200,000 tokens | 128K 128,000 tokens | $0.07 | $0.40 |
Context/output in tokens. Prices in USD per 1M tokens.