All models

OpenAI

GPT-5 Mini

GPT-5 Mini is a compact version of GPT-5, designed to handle lighter-weight reasoning tasks. It provides the same instruction-following and safety-tuning benefits as GPT-5, but with reduced latency and cost.

textreasoningfunction tools

Our price

$0.175 / $1.40

input / output per 1M

Official

$0.25 / $2.00
−30% vs official

USD · Published rate · Updated 2026-10-12

First request

Available
curl https://api.tokely.me/v1/responses \
  -H "Authorization: Bearer $TOKELY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-mini",
    "input": "Hello!",
    "max_output_tokens": 1024,
    "store": false
  }'

Set TOKELY_API_KEY to your dashboard key. Requests require a funded Tokely balance. Base URL: https://api.tokely.me/v1.

Capabilities & limits

Context window
400,000 tokens
Model max output
128,000 tokens
Cached input price
$0.0175 per 1M tokens · Official: $0.025
Provider
OpenAI
API model ID
gpt-5-mini
Category
Text
Endpoints
POST /v1/responses
Tokely max output
128,000 tokens / request, including reasoning tokens
Default output
256 tokens. Set an explicit limit for longer responses.
Request limits
16 MB JSON body (including base64) · 128 messages · 32 function tools
Rate limit
60 requests / minute / account, across its keys
Supported input
Text and function tool results · inline PNG, JPEG and WebP images · inline PDFs
Model modalities
text, image, file. Tokely accepts text, inline images and PDFs where listed above; audio and video input are not enabled.

The context includes your instructions, conversation history, tool definitions and generated output. Keep the input and requested output within the model’s context window.

API reference

Authenticate with Authorization: Bearer YOUR_TOKELY_API_KEY. Use an OpenAI SDK with the Tokely base URL.

model
Required string: gpt-5-mini
input
Text or an array of text messages and function call results. Send history in each request; use store=false.
max_output_tokens
Optional integer, 1–128,000. Defaults to 256.
stream
Streaming has not been verified for this model.
reasoning.effort
Optional reasoning effort. Supported values depend on the model; omit to use its default.
tools
Function definitions executed by your application. Provider-hosted tools are not enabled.

The response contains output items and usage (input_tokens, output_tokens, total_tokens). Streaming uses named Responses events.

400 / 415
Invalid request, parameter, endpoint for this model, or content type.
401 / 403
Invalid, revoked or restricted API key.
402
Insufficient account balance or API key budget.
429
Request limit reached. Retry after the indicated delay.
502 / 503 / 504
Upstream failure, temporary service unavailability or request timeout.

Compare nearby prices

USD per million tokens. Compare price and context; these are not quality benchmarks.
ModelInputOutputContext
GPT-5 MiniOpenAI · this model$0.175$1.4400,000
MiMo V2.6 ProXiaomi$0.522$1.0441,050,000
Grok 4.20 Non ReasoningGrok$0.505519$1.0110382,000,000
Grok 4.20 ReasoningGrok$0.505519$1.0110382,000,000
GPT-4.1 MiniOpenAI$0.28$1.121,047,576

Frequently asked questions

How much does GPT-5 Mini cost?

$0.175 per million input tokens, $1.4 per million output tokens and $0.0175 per million cached input tokens. Usage is charged to your Tokely balance.

Do I need a separate OpenAI account?

Use your Tokely API key and balance. A separate provider key is not required.

How do I switch to this model?

Set model to gpt-5-mini and use /v1/responses. Keep your Tokely base URL and API key.

What is the context window?

400,000 tokens, including input and output. The Tokely request body and output limits listed above also apply.

More OpenAI models & prices

Compare GPT-5 Mini with other OpenAI versions and with the official developer rates.

All OpenAI models on Tokely · Cheap GPT API — Model Prices & Discounts · Compare AI API gateways · Estimate your token cost

Related versions