OpenAI ↗

GPT-4o

openai/gpt-4o
Get an API key ↗
Input $2.5000000000
USD / million tokens
Output $10
USD / million tokens
Context window128000tokens
Released2024-05-13

Overview GPT-4o

GPT-4o by OpenAI is available through the Chabokan API. Reported inputs: Text، Image. Outputs: Text. The reported context window is 128,000 tokens. Reported features include Tool calling.

Description supplied in the catalogue
GPT-4o is OpenAI's most advanced Multimodal model, faster and cheaper than GPT-4 Turbo, with stronger visual capabilities. This model has a 128K context and a knowledge cutoff of October 2023. Models in the 1106 series and above support tool_calls and function_call. This model supports a maximum context length of 128,000 tokens.

Input & output

Input
textimage
Output
text
Maximum output
16384 tokens

Supported parameters

frequency_penaltylogit_biaslogprobsmax_completion_tokensmax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_pweb_search_options
BUILD WITH OPENAI

API usage GPT-4o

Keep real keys out of public code. Examples read CHABOKAN_API_KEY from the environment.

API guide ←
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://ai.chabokan.net/v1",
    api_key=os.environ["CHABOKAN_API_KEY"],
)

response = client.chat.completions.create(
    model="openai/gpt-4o",
    messages=[{"role": "user", "content": "Hello, Chabokan!"}],
)
print(response.choices[0].message)
ai.chabokan.net/v1OpenAI SDK

Pricing and cost estimates GPT-4o

Input and output tokens are priced separately. Use the calculator below to estimate costs for your model and request volume. Final rates depend on your account level and actual usage; review any reported additional charges separately.

More from this developer ↗
Pay as you go

Estimate AI model API costs

Estimate token costs by choosing a model, request count, and input and output volumes. Rates come from the same catalogue as the model pricing.

Price level

Prices default to level 3. Level 1 is the standard price; check your console for account eligibility and model access.

Estimated cost—USD
Input —Output —

Token estimate only; image, request, web search, and other charges are excluded. The minimum request fee applies. Your final bill depends on actual usage and account level.

More from this developer

View all models ←