GPT-4o (05-13) on Replicate API

GPT-4o · OpenAI

Serverless

Last refreshed 2026-05-10. Next refresh: weekly.

Why use GPT-4o (05-13) on Replicate API?

Replicate API offers GPT-4o (05-13) with pay-as-you-go pricing at $2.50/1M input tokens. Replicate is a cloud-based platform that enables users to run machine learning models easily and efficiently.

Compare GPT-4o (05-13) across 4 providers to find the best fit for your use case
Input / 1M
$2.50
Output / 1M
$10.00
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install replicate
Auth
export REPLICATE_API_TOKEN=...
Call
import replicate
output = replicate.run(
    "gpt-4o-2024-05-13",
    input={"prompt": "Hello"}
Model ID
gpt-4o-2024-05-13

Request example

import replicate

# reads REPLICATE_API_TOKEN from env
# gpt-4o-2024-05-13 format: "owner/model-name" (latest version) or "owner/model-name:version-hash"
output = replicate.run(
    "gpt-4o-2024-05-13",
    input={"prompt": "Hello"}
)
# Output is a list or generator depending on the model
print("".join(output))

Gotchas

  • Replicate uses "owner/model-name" format (e.g. "meta/meta-llama-3-8b-instruct") for the latest version, or "owner/model-name:version-sha" to pin to a specific version. The REST endpoint splits owner and model-name into the path: /v1/models/{owner}/{model-name}/predictions.
  • The examples expect REPLICATE_API_TOKEN; rename it only if your application config maps the new variable.

Compare GPT-4o (05-13) Across Providers

ProviderInput (per 1M)Output (per 1M)
Azure OpenAI$5.00$15.00
OpenAI API$2.50$10.00
OpenRouter$5.00$15.00
Replicate API$2.50$10.00

Pricing

TypePrice (per 1M)
Input tokens$2.50
Output tokens$10.00

Capabilities

VisionMultimodalStructured OutputsCode Execution

About GPT-4o (05-13)

GPT-4o, or GPT-4 Omni, is OpenAI's premier multimodal AI model, introduced on May 13, 2024. It is designed to handle and generate content from various input types, including text, audio, and visual data, using a unified model, unlike its predecessors which required separate models for different modalities. This model is notable for its rapid response times averaging 320 milliseconds, which align with human conversational speed, along with being 50% more cost-effective than GPT-4 Turbo. Although it mirrors GPT-4 Turbo in standard benchmark performance, GPT-4o excels in multilingual, audio, and vision tasks.

Get Started

Model Specs

Released2024-05-13
Parameters1.76T (8x222B MoE)*
Context128k
ArchitectureMixture of Experts
Knowledge cutoff2023-10

Related Models on Replicate API