← All playgrounds
AI model playground

GPT-4o API

OpenAI's GPT-4o, still carried for prompts and pipelines written against it.

GPT-4o is an LLM / chat model from OpenAI, available on OttoPort's OpenAI-compatible API as the model ID gpt-4o at $2.77 / $11.08 per 1M tokens as of 2026-10-14.

Provider

OpenAI

Price

$2.77 / $11.08 per 1M tokens

Model ID

gpt-4o

Type

LLM / chat model

ReasoningWritingDeveloper workflows

Create with GPT-4o

chat
ExampleSelect to edit

Your result appears here

Start with the example prompt or make it your own. Your OttoPort account is used securely for generation.

Pricing

GPT-4o API pricing

What OttoPort bills for GPT-4o, and what that works out to per unit. Rates are read from the same catalog the gateway meters against, and were current on 2026-10-14.

Input$2.77 / 1M tokens
Output$11.08 / 1M tokens
Typical request$0.01381,000 input + 1,000 output tokens
Requests per $172at that same 1K in / 1K out shape
Context window128,000 tokensa full-context request costs $0.3546 in input alone

No subscription and no minimum — OttoPort bills prepaid credits against usage. See the full rate card.

Quickstart

Call GPT-4o in three lines

Send "model": "gpt-4o" to POST https://ottoport.ai/api/v1/chat/completions with an OttoPort key. No OpenAI account, no waitlist, no separate SDK.

curl https://ottoport.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OTTOPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Before you start

  1. 1. Create a key at /api-keys.
  2. 2. Top up credits — the smallest pack is $25.
  3. 3. Paste the request. It returns on the same request.

Full reference at /docs, or drive it from an agent with the MCP server and CLI.

Reference

Request parameters

The body POST https://ottoport.ai/api/v1/chat/completions accepts for GPT-4o.

FieldTypeRequiredNotes
modelstringYesAlways gpt-4o for GPT-4o.
messagesarrayYesOpenAI chat message objects: role and content.
streambooleanNoServer-sent events, same frame shape as OpenAI.
temperaturenumberNoSampling temperature, passed through to the provider.
Comparison

GPT-4o direct vs through OttoPort

GPT-4o is the same model either way — what changes is how many accounts, keys, and integrations you carry to reach it.

OpenAI directVia OttoPort
Accounts and keysAn OpenAI account, plus one more for every other model you addOne OttoPort account and one key for the whole catalog
Request shapeOpenAI's own SDK and response formatOpenAI-compatible — point baseURL at OttoPort and change the model string
Switching modelsA new integration per providerReplace gpt-4o with any other model ID in the catalog
BillingA separate invoice and contract per providerPrepaid credits, no subscription, one usage ledger
Provider outagesYour call failsConfigured backup routes are tried in order on provider failure
01

Give the model a role and goal.

02

State the intended output format.

03

Add relevant context before constraints.

FAQ

GPT-4o API questions

Cost, keys, and model IDs for GPT-4o on OttoPort.

How much does the GPT-4o API cost?

On OttoPort, GPT-4o costs $2.77 / $11.08 per 1M tokens as of 2026-10-14. For scale, typical request: $0.0138. Billing is prepaid usage with no subscription and no minimum, and the current rate is always published at ottoport.ai/pricing.

How do I get a GPT-4o API key?

You do not need an OpenAI key. Create an OttoPort account, generate a key at ottoport.ai/api-keys, and send it as "Authorization: Bearer <key>" to POST https://ottoport.ai/api/v1/chat/completions with "model": "gpt-4o". The same key reaches every other model in the catalog.

What is the model ID for GPT-4o?

The OttoPort model ID for GPT-4o is gpt-4o. Pass it as the model field on POST https://ottoport.ai/api/v1/chat/completions, or list it programmatically from GET https://ottoport.ai/api/v1/models.

Can I call GPT-4o with the OpenAI SDK?

Yes. Set the OpenAI SDK's base URL to https://ottoport.ai/api/v1, use an OttoPort API key, and pass gpt-4o as the model. Chat completions, streaming, and model listing follow the OpenAI request and response shapes, so existing code works after changing two lines.

What is GPT-4o's context window?

GPT-4o accepts up to 128,000 tokens of context on OttoPort, the same window OpenAI exposes on its own API.

Do I need an OpenAI account to use GPT-4o?

No. OttoPort connects to OpenAI on your behalf, so one OttoPort account covers GPT-4o and every other model in the catalog — no per-provider contracts, keys, or invoices.