openai

OpenAI: GPT-3.5 Turbo

GPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to Sep 2021.

Context
16k tokens
Input / 1M tokens
$0.50
Output / 1M tokens
$1.50
Benchmark

Pricing

Input tokens$0.50 per 1M tokens
Output tokens$1.50 per 1M tokens

Technical details

Model IDopenai/gpt-3.5-turbo
Context window16k 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-3.5-turbo',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use OpenAI: GPT-3.5 Turbo?

Get an API key and start making requests in minutes.

Get an API key