OpenAI: GPT-4o
GPT-4o ("o" for "omni") is OpenAI's latest AI model, supporting both text and image inputs with text outputs. It maintains the intelligence level of GPT-4 Turbo while being twice as...
This model is available through the OpenSIAI OpenAI-compatible API for chat completions and compatible application workflows.
Why It Looks Great
- text+image+file->text architecture for Text, Image, file to Text workloads
- 128000 context window for long prompts, document analysis, and multi-turn workflows
- Vision input support for image understanding and multimodal tasks
- Function calling and tool-use support for agentic application workflows
- Structured output support for JSON responses and schema-constrained generation
Key Features
- Context Window: 128000 tokens
- Max Input: 111616 tokens
- Max Output: 16384 tokens
- Vision: Supported
- Function Calling: Supported
- Structured Outputs: Supported
- Image Generation: Not listed
- Audio Input: Not listed
- Supported Parameters: frequency_penalty, logit_bias, logprobs, max_completion_tokens, max_tokens, prediction, presence_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_logprobs, top_p, web_search_options
Specifications
| Specification | Value |
|---|---|
| Provider | openai |
| Model Type | Chat Completions model |
| Architecture | text+image+file->text |
| Context Window | 128000 tokens |
| Max Input | 111616 tokens |
| Max Output | 16384 tokens |
| Input | Text, Image, file |
| Output | Text |
| Vision | Supported |
| Function Calling | Supported |
| Structured Outputs | Supported |
| Release Date | May 13, 2024 |
How to Use
- Write your prompt - describe the task, provide context, and specify the desired output format.
- Submit - the model processes your request and returns the response.
API Integration
Base URL: https://llm.opensi.com.ai/v1 API Endpoint: chat/completions Model ID: openai/gpt-4o
API Usage
Python SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://llm.opensi.com.ai/v1"
)
response = client.chat.completions.create(
model="openai/gpt-4o",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)cURL
curl https://llm.opensi.com.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "openai/gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}]
}'Notes
- Model: openai/gpt-4o
- Provider: openai