~openaiVision
OpenAI GPT Latest
This model always redirects to the latest model in the OpenAI GPT family.
Context
1M tokens
Input / 1M tokens
$5
Output / 1M tokens
$30
Benchmark
—
Pricing
Input tokens$5 per 1M tokens
Output tokens$30 per 1M tokens
Cache read$0.50 per 1M tokens
Technical details
Model ID~openai/gpt-latest
Context window1M tokens
Input modalitiesfile, image, text, pdf
Output modalitiestext
TokenizerRouter
Max output tokens128,000
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-latest',
messages: [{ role: 'user', content: 'Hello!' }],
})