openai
OpenAI: GPT-4 Turbo Preview ($$$$)
The preview GPT-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. Training data: up to Dec 2023. **Note:** heavily rate limited by OpenAI while...
Context
128k tokens
Input / 1M tokens
$10
Output / 1M tokens
$30
Benchmark
—
Pricing
Input tokens$10 per 1M tokens
Output tokens$30 per 1M tokens
Technical details
Model IDopenai/gpt-4-turbo-preview
Context window128k tokens
Input modalitiestext, pdf
Output modalitiestext
TokenizerGPT
Max output tokens4,096
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'openai/gpt-4-turbo-preview',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use OpenAI: GPT-4 Turbo Preview ($$$$)?
Get an API key and start making requests in minutes.
Get an API key