OpenAI
OpenAI

GPT-3.5 Turbo 16k

openai/gpt-3.5-turbo-16k-0613

This model offers four times the context length of gpt-3.5-turbo, allowing it to support approximately 20 pages of text in a single request at a higher cost. Training data: up to Sep 2021.

Context Window

16,385

Max Output Tokens

4,096

Using GPT-3.5 Turbo 16k with Python API

Using GPT-3.5 Turbo 16k with OpenAI compatible API

import openai

client = openai.Client(
  api_key= '{your_api_key}',
  base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="openai/gpt-3.5-turbo-16k-0613",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)