gpt-5.4 API

25% below list price streamingvisionfunction-calling

gpt-5.4 is OpenAI's flagship general-purpose model with a 1,050,000-token context window. On CaMeL Hub it costs $1.875 per 1M input tokens and $11.25 per 1M output tokens — call it with any OpenAI SDK by pointing base_url to https://api.camel-hub.com/v1 and setting model to "gpt-5.4".

Pricing

per 1M input tokensper 1M output tokens
CaMeL Hub$1.875$11.25
Provider list price$2.5$15.00

Prices are the public default-group rate in USD per 1M tokens; input and output are billed separately. · Provider list price · verified 2026-07-11

Specifications

Provider
OpenAI
Context window
1050000 tokens
Max output
128000 tokens
Capabilities
streaming, vision, function-calling
Endpoints
openai, openai-response
gpt-5.4 is the mainline model of OpenAI's GPT-5.4 family, sitting between the budget-oriented gpt-5.4-mini and the heavyweight gpt-5.4-pro. It accepts both text and images and is documented with a 1,050,000-token context window and up to 128,000 output tokens — one of the largest working windows available today. That scale changes what a single request can do: an entire mid-sized codebase, a full contract bundle, or hours of meeting transcripts fit into one prompt without chunking pipelines or retrieval scaffolding. On CaMeL Hub, gpt-5.4 is served through the standard OpenAI-compatible surface: the /v1/chat/completions endpoint and the newer /v1/responses endpoint both work, with streaming, vision (image input), and function calling supported. Existing code built on the official OpenAI SDK runs unchanged — swap the base_url to https://api.camel-hub.com/v1, use your CaMeL Hub API key, and keep the same request format, tool schemas, and streaming handlers. Cost-wise, gpt-5.4 is a mid-tier flagship: at $1.875 per 1M input and $11.25 per 1M output tokens, the 6x input/output spread means input-heavy workloads (long-document Q&A, large-context code review) are markedly cheaper per request than generation-heavy ones. If your task is mostly bulk classification or short answers over short prompts, gpt-5.4-mini is the more economical pick; reach for gpt-5.4 when you need the full context window, stronger multi-step reasoning over tools, or reliable behavior on long agentic sessions. Billing on CaMeL Hub is strictly per-token pay-as-you-go, funded by one-time top-ups or subscription plans.

What it is good for

Quickstart

OpenAI-compatible: set base_url to https://api.camel-hub.com/v1 and use your CaMeL Hub API key. No SDK changes needed.

cURL

curl https://api.camel-hub.com/v1/chat/completions \
  -H "Authorization: Bearer $CAMEL_HUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python

from openai import OpenAI

client = OpenAI(
    api_key="$CAMEL_HUB_KEY",
    base_url="https://api.camel-hub.com/v1",  # <-- the only change vs. the OpenAI default
)

resp = client.chat.completions.create(
    model="gpt-5.4",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Node.js

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.CAMEL_HUB_KEY,
  baseURL: "https://api.camel-hub.com/v1", // <-- the only change vs. the OpenAI default
});

const resp = await client.chat.completions.create({
  model: "gpt-5.4",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);

Get an API key Browse integration guides

Frequently asked questions

How is gpt-5.4 billed on CaMeL Hub?

Input and output tokens are priced separately: $1.875 per 1M input tokens and $11.25 per 1M output tokens on the public default group. You pay only for the tokens each request actually consumes — there are no seat licenses or monthly minimums, and usage is itemized per request in the console logs.

Does gpt-5.4 support streaming, vision, and function calling?

Yes to all three. You can stream tokens via stream=true, send images as input for vision tasks, and define tools for function calling — all through the OpenAI-compatible API on CaMeL Hub, on both the Chat Completions and Responses endpoints.

What are the context window and output limits?

OpenAI's model documentation lists a 1,050,000-token context window and up to 128,000 output tokens for gpt-5.4. Note that the input tokens you send are billed at the input rate, so very large prompts have a proportional cost.

Can I use the Responses API with gpt-5.4?

Yes. CaMeL Hub exposes gpt-5.4 on both the classic /v1/chat/completions endpoint and the /v1/responses endpoint, so SDKs and agent frameworks built on either interface work without modification.

How do I get started?

Create an account at https://api.camel-hub.com/console, generate an API key, then point any OpenAI SDK at base_url https://api.camel-hub.com/v1 with model "gpt-5.4". Top up with Alipay, WeChat Pay, or international cards, or pick a subscription plan — your first request works within minutes.

More from OpenAI

OpenAI

gpt-5.5

Compare with other models