YepAPI

Command Palette

Search for a command to run...

OpenAIText Generation/v1/ai/chat

GPT-5.4 Mini

Access GPT-5.4 Mini through one API key. Smart and affordable with 400K context.

OpenAI's latest cost-effective model. Great balance of capability and price with a 400K context window.

No credit card required. Takes 30 seconds.

2,400+

Developers

1.2M+

API calls served

100+

Endpoints

$0.01

Per call

Yep, that's it.

Try it live

Send a message and see GPT-5.4 Mini respond in real time.

POST/v1/ai/chat

Maximum tokens in the response.

Real-time tokens

Hit "Send Request" to see the response

Context Window

400K tokens

Max Output

16K tokens

Input Price

$1.11 / 1M tokens

Output Price

$6.65 / 1M tokens

Strengths

✓
Cost-effective

At $1.11 per 1M input and $6.65 per 1M output tokens, it brings GPT-5.4-generation quality to budgets that can't justify the full flagship.

✓
400K context

Reads up to 400,000 tokens per request — far more than older mid-tier models — for long documents and codebases.

✓
Fast responses

Lower latency than the full GPT-5.4 makes it a good fit for interactive apps and higher-volume workloads.

✓
Strong for its price

Punches above its tier on reasoning and coding, returning up to 16,384 output tokens per response.

Quick start

Copy this snippet and start making calls with GPT-5.4 Mini.

const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "openai/gpt-5.4-mini",
    "messages": [
      {
        "role": "user",
        "content": "Explain API gateways in 2 sentences."
      }
    ],
    "maxTokens": 256
  }),
});
const { data } = await res.json();
console.log(data.message.content);

Why use GPT-5.4 Mini through YepAPI?

✓One API key for all models — no separate accounts
✓OpenAI SDK compatible — just change the base URL
✓No monthly minimums — pay per token
✓Switch models with one line of code
✓Full provider passthrough — citations, search results, and all extras included
✓Streaming and non-streaming support on every model
✓Works with Cursor, Claude, LangChain, and any LLM tool
✓Unified billing across all providers

GPT-5.4 Mini API — pricing, context window & access

GPT-5.4 Mini is OpenAI's cost-effective member of the GPT-5.4 family, balancing capability and price with a large 400,000-token context window. It returns up to 16,384 output tokens per response.

Through YepAPI you call GPT-5.4 Mini on an OpenAI-compatible endpoint with one key — the same key that also reaches GPT-5.4, GPT-5.4 Nano, GPT-5.5, Claude, Gemini, and the SEO, SERP and scraping endpoints.

What is GPT-5.4 Mini?

GPT-5.4 Mini is the mid-tier, cost-effective model in OpenAI's GPT-5.4 family, sitting between the ultra-cheap GPT-5.4 Nano and the full GPT-5.4 flagship. It's designed to deliver a great balance of capability and price, with a 400,000-token context window that's far larger than older mid-tier models offered. It's the model to choose when GPT-5.4-generation quality matters but the flagship's cost doesn't fit — a smart, affordable default for everyday reasoning, coding, and long-document work at scale.

Build with GPT-5.4 Mini via YepAPI

YepAPI exposes GPT-5.4 Mini through the OpenAI-compatible /v1/ai/chat endpoint, so you use the chat-completions format and the model string gpt-5.4-mini. Escalating to the full GPT-5.4 for harder tasks, dropping to GPT-5.4 Nano for cheap high-volume work, or switching to Claude or Gemini is a one-string change. The same key also covers search and scraping endpoints, so a tiered model strategy plus your data pipelines all run on one account.

GPT-5.4 Mini API pricing — $1.11 / 1M input, $6.65 / 1M output

GPT-5.4 Mini costs $1.11 per 1M input tokens and $6.65 per 1M output tokens through YepAPI — a fraction of the full GPT-5.4 flagship's rate. That makes it economical to run GPT-5.4-generation quality across higher volumes, and its 400K context lets you pass long inputs without splitting them. It's a strong everyday default: cheap enough for scale, capable enough for real work. You pay only for tokens used, with no minimums.

GPT-5.4 Mini for cost-effective scale

GPT-5.4 Mini is built for the middle of a tiered strategy. Its 400K context and solid reasoning handle long-document summarization, coding, and analysis, while its low price and faster responses let you run those tasks at volume. Use it as your workhorse — reserve the full GPT-5.4 or GPT-5.5 for genuinely hard cases and push trivial, high-frequency calls down to GPT-5.4 Nano — and most requests can land here without sacrificing much quality.

Try GPT-5.4 Mini free

New YepAPI accounts get $5 in free credit, no card required. At GPT-5.4 Mini's rates that's enough to run substantial real workloads before committing. Sign up, grab your key, and start calling GPT-5.4 Mini in minutes.

Start generating in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

Frequently asked questions

OpenAI's latest cost-effective model. Great balance of capability and price with a 400K context window.

Input tokens cost $1.11 per 1M tokens and output tokens cost $6.65 per 1M tokens through YepAPI. No monthly minimums — you only pay for what you use.

Sign up for a free API key, then send requests to the /v1/ai/chat endpoint.

GPT-5.4 Mini supports a 400K token context window with up to 16K output tokens per request.

Ready to use GPT-5.4 Mini?

$5 free credit on signup. No credit card required. Pay per call.

Explore more models