GPT-4o
Chatopenai/gpt-4oOpenAI's flagship multimodal model supporting text and image inputs with text outputs. Maintains GPT-4 Turbo intelligence at 2x speed and 50% lower cost. Optimized for complex reasoning, coding, and visual understanding tasks.
Context Window
128K
Max Output Tokens
16K
Released
2024-05-13
Capabilities
VisionFunction CallingPrompt CachingAudio Input
Available Providers
Azure
Supported Protocols
openai
Providers
Azure
Input Tokens
$2.5/M
Output Tokens
$10/M
Cache Read
$1.25/M
Web Search
$0.01/R
Protocols
openai
/v1/chat/completions/v1/responsesCode Examples
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.io/v1",api_key="YOUR_OFOX_API_KEY",)response = client.chat.completions.create(model="openai/gpt-4o",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
Related Models
Frequently Asked Questions
GPT-4o on Ofox.ai costs $2.5/M per million input tokens and $10/M per million output tokens. Pay-as-you-go, no monthly fees.
GPT-4o supports a context window of 128K tokens with max output of 16K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.ai/v1 and use your Ofox API key. The API is OpenAI-compatible — just change the base URL and API key in your existing code.
GPT-4o supports the following capabilities: Vision, Function Calling, Prompt Caching, Audio Input. Access all features through the Ofox.ai unified API.