OpenAI
GPT-4 Turbo
openai/gpt-4-0125-preview
The latest GPT-4 Turbo model with vision capabilities. Vision requests can now use JSON mode and function calling. Training data: up to Dec 2023.
This model is updated by OpenAI to point to the latest version of GPT-4 Turbo, currently gpt-4-turbo-2024-04-09 (as of April 2024).
Tools
Function Calling
Context Window
128,000
Max Output Tokens
4,096
Using GPT-4 Turbo with Python API
Using GPT-4 Turbo 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-4-0125-preview",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)