Back to providers page
Try this model
openai

gpt-4o

completions

High-intelligence flagship model for complex, multi-step tasks. GPT-4o is cheaper and faster than GPT-4 Turbo. It is multimodal (accepting text or image inputs and outputting text), and it has the same high intelligence as GPT-4 Turbo but is much more efficient—it generates text 2x faster and is 50% cheaper. Additionally, GPT-4o has the best vision and performance across non-English languages of any of our models. GPT-4o is available in the OpenAI API to paying customers.

Input:$2.5 / 1M tokens
Output:$10 / 1M tokens
Context:128K tokens
tools
text
image
text

Access gpt-4o through LangDB AI Gateway

Recommended

Integrate with openai's gpt-4o and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.

Unified API
Cost Optimization
Enterprise Security
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests
Code Example
Configuration
Base URL
API Keys
Headers
Project ID in header
X-Run-Id
X-Thread-Id
Model Parameters
14 available
frequency_penalty
-202
logit_bias
logprobs
max_tokens
presence_penalty
-201.999
response_format
seed
stop
structured_outputs
temperature
012
tool_choice
tools
top_logprobs
top_p
011
Additional Configuration
Tools
Guards
User:
Id:
Name:
Tags:
Publicly Shared Threads5
  • openai
    Emily and Derek age problem solution
    12 days ago
    Solved ages: Emily is 16, Derek is 8; verified by equations E=2D and E-4=3(D-4).
    age problem
    algebraic equations
    sibling ages
    linear system solving
  • openai
    Vowel Count and Identification in "encyclopedia"
    12 days ago
    Explanation and count of each vowel in "encyclopedia," identifying five vowels: E, O, E, I, and A.
    vowels in encyclopedia
    counting vowels
    identifying vowels in words
    encyclopedia vowel analysis
  • openai
    Cylinder Surface Area Calculation
    12 days ago
    Calculating the total surface area of a right circular cylinder with height 10 cm and radius 3 cm as 78π cm².
    right circular cylinder surface area
    curved surface area formula
    cylinder base area
    total surface area calculation
  • openai
    12-Coins Lighter Fake: 3-Weighing Strategy
    12 days ago
    Detailed 3-step balance scale strategy to identify the single lighter counterfeit coin among 12 in only three weighings, explaining each outcome's logic.
    12 coin problem
    finding counterfeit coin
    balance scale strategy
    three weighings identification
  • openai
    A* Pathfinding Algorithm in Python
    12 days ago
    A Python implementation of A* algorithm to find the shortest path on a grid using Manhattan distance heuristic and handling obstacles.
    a* algorithm python
    manhattan distance heuristic
    grid pathfinding
    shortest path algorithm
Popular Models10
  • anthropic
    claude-sonnet-4
    anthropic
    Our high-performance model with exceptional reasoning and efficiency
    Input:$3 / 1M tokens
    Output:$15 / 1M tokens
    Context:200K tokens
    tools
    text
    image
    text
  • anthropic
    claude-opus-4
    anthropic
    Our most capable and intelligent model yet. Claude Opus 4 sets new standards in complex reasoning and advanced coding
    Input:$15 / 1M tokens
    Output:$75 / 1M tokens
    Context:200K tokens
    tools
    text
    image
    text
  • openai
    gpt-4.1
    openai
    GPT-4.1 is OpenAI's flagship model for complex tasks. It is well suited for problem solving across domains.
    Input:$2 / 1M tokens
    Output:$8 / 1M tokens
    Context:1047576 tokens
    tools
    text
    image
    text
  • gemini
    gemini-2.5-pro-preview
    gemini
    Gemini 2.5 Pro Experimental is Google's state-of-the-art thinking model, capable of reasoning over complex problems in code, math, and STEM, as well as analyzing large datasets, codebases, and documents using long context.
    Input:$1.25 / 1M tokens
    Output:$10 / 1M tokens
    Context:1M tokens
    tools
    text
    image
    audio
    video
    text
  • gemini
    gemini-2.5-flash-preview
    gemini
    Google's best model in terms of price-performance, offering well-rounded capabilities. Gemini 2.5 Flash rate limits are more restricted since it is an experimental / preview model.
    Input:$0.15 / 1M tokens
    Output:$0.6 / 1M tokens
    Context:1M tokens
    tools
    text
    image
    audio
    video
    text
  • gemini
    gemini-2.0-flash
    gemini
    Google's most capable multi-modal model with great performance across all tasks, with a 1 million token context window, and built for the era of Agents.
    Input:$0.1 / 1M tokens
    Output:$0.4 / 1M tokens
    Context:1M tokens
    tools
    text
    image
    audio
    video
    text
  • anthropic
    claude-3.7-sonnet
    anthropic
    Intelligent model, with visible step‑by‑step reasoning
    Input:$3 / 1M tokens
    Output:$15 / 1M tokens
    Context:200K tokens
    tools
    text
    text
    image
  • gemini
    gemini-2.0-flash-lite
    gemini
    Google's smallest and most cost effective model, built for at scale usage.
    Input:$0.07 / 1M tokens
    Output:$0.3 / 1M tokens
    Context:1M tokens
    text
    image
    audio
    video
    text
  • openai
    gpt-4.1-mini
    openai
    GPT-4.1 mini provides a balance between intelligence, speed, and cost that makes it an attractive model for many use cases.
    Input:$0.4 / 1M tokens
    Output:$1.6 / 1M tokens
    Context:1047576 tokens
    tools
    text
    image
    text
  • openai
    gpt-4.1-nano
    openai
    GPT-4.1 nano is the fastest, most cost-effective GPT-4.1 model.
    Input:$0.1 / 1M tokens
    Output:$0.4 / 1M tokens
    Context:1047576 tokens
    tools
    text
    image
    text

Related AI Model Resources

Explore more AI models, providers, and integration options:

  • Browse All AI Models
  • AI Providers Directory
  • More from openai
  • MCP Servers
  • Integration Documentation
  • Pricing & Plans
  • AI Industry Blog