← All models
OpenAI logo

GPT 4 Turbo

Chat

openai:gpt-4-turbo

Added April 5, 2024

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-4-turbo",
    messages: [
        { role: "user", content: "Hello!" }
    ],
});

console.log(completion.choices[0].message.content);

Providers

Provider Model Context Output Input $/M Output $/M
OpenAI gpt-4-turbo-2024-04-09 128K 4K $10.00 $30.00
Context/output in tokens. Prices in USD per 1M tokens.