← 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: "openai:gpt-3.5-turbo",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(completion.choices[0].message.content); Providers
| Provider | Model | Context | Output | Input $/M | Output $/M |
|---|---|---|---|---|---|
| OpenAI | gpt-3.5-turbo | 16K 16,385 tokens | 4K 4,096 tokens | $0.50 | $1.50 |
Context/output in tokens. Prices in USD per 1M tokens.