Back to Models
O

GPT-4o

GPT
by OpenAI

Multimodal flagship model with vision, audio, and text capabilities. Faster and cheaper than GPT-4 Turbo.

May 13, 2024

Specifications

Context Length
128K
128,000 tokens
Input Price
$2.50
per 1M tokens
Output Price
$10.00
per 1M tokens
Modalities
2
text→text, image+text→text

Capabilities

text generationchatfunction callingjson modevisioncode

API Usage

1Router is fully OpenAI-compatible. Just set the base URL and use this model ID:

openai/gpt-4o
cURL
curl https://api.1router.com/v1/chat/completions \
  -H "Authorization: Bearer $ROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'