gpt-5.1 — price, context and performance

gpt-5.1 is a OpenAI model with a 400K context window supporting Reasoning, Tools, Files, Vision. Input $1.25, output $10.00 per 1M tokens.

Overview

VendorOpenAI
Context400K
CapabilitiesReasoning, Tools, Files, Vision
API formatsopenai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search
Billing formulap * 1.25 + cr * 0.125 + c * 10
Sharper GPT-5 generation for coding, product work, and tool-assisted tasks

Pricing

PlanMultiplierInputOutputCached inputNote
Base price1×$1.25$10.00$0.13
Eco0.3×$0.38$3.00$0.04Standard — standard reasoning, moderate stability.
default0.6×$0.75$6.00$0.08Standard — standard reasoning, moderate stability.
Plus1×$1.25$10.00$0.13High — strong reasoning, stable.
Pro2×$2.50$20.00$0.25Enterprise — full reasoning, high stability.
Max4×$5.00$40.00$0.50Premium — max reasoning & stability.

Only groups enabled for this model are listed.

Performance

TPS2254.24
Avg latency67592 ms
Success rate100%
API endpointhttps://api.airai.cc/v1
OpenAI-compatibleOpenAI-compatible

FAQ

How much does gpt-5.1 cost?
Input $1.25, output $10.00 per 1M tokens.
What is the context window of gpt-5.1?
gpt-5.1 has a 400K context window: the combined token limit for input and output in a single request.
How do I call gpt-5.1 from code?
Point base_url to https://api.airai.cc/v1 and set model to gpt-5.1. The API is fully OpenAI compatible.
Why does gpt-5.1 return error 429?
429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Model comparison

ModelVendorInputOutputContext
gpt-5.1OpenAI$1.25$10.00400K
gpt-4.1-nano-2025-04-14OpenAI$0.10$0.40not specified
gpt-4.1-nanoOpenAI$0.10$0.401M
gpt-audio-2025-08-28OpenAI$2.50$5.00not specified
gpt-image-2-cOpenAIPer request $0.12—not specified
gpt-4o-realtime-preview-2024-10-01OpenAI$5.00$20.00not specified
gpt-5.2-codexOpenAI$0.14$1.14not specified
gpt-3.5-turbo-16kOpenAI$3.00$6.00not specified
text-embedding-3-smallOpenAI$0.02—8.2K
gpt-5-miniOpenAI$0.25$2.00400K
o3-proOpenAI$20.00$80.00200K
gpt-4-1106-previewOpenAI$10.00$30.00not specified
gpt-5.6-solOpenAI$4.00$20.001.1M

Troubleshooting

429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Common causes

  • Too many concurrent requests
  • Quota of the current plan exhausted
  • Retrying immediately without backoff

How to fix

  • Limit concurrency and retry with exponential backoff
  • Switch to a plan with a larger quota
  • Cache repeated requests

How to connect

curl https://api.airai.cc/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.1",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="<YOUR_API_KEY>",
    base_url="https://api.airai.cc/v1"
)

response = client.chat.completions.create(
    model="gpt-5.1",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

const response = await client.chat.completions.create({
  model: "gpt-5.1",
  messages: [{ role: "user", content: "Hello" }]
});
console.log(response.choices[0].message.content);
const OpenAI = require("openai");

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

client.chat.completions.create({
  model: "gpt-5.1",
  messages: [{ role: "user", content: "Hello" }]
}).then((r) => console.log(r.choices[0].message.content));

Replace <YOUR_API_KEY> with the API Key from your token settings.

Compatible endpoints

openaiopenai-responseopenai-response-compactanthropicgeminiopenai-alpha-search

Gemini SDK · TypeScript

import { GoogleGenerativeAI } from "@google/generative-ai";

const genAI = new GoogleGenerativeAI("<YOUR_API_KEY>");
const model = genAI.getGenerativeModel({ model: "gpt-5.1" });

const result = await model.generateContent(
  "Explain quantum entanglement in one paragraph."
);
console.log(result.response.text());

Authentication

All requests must include the Authorization: Bearer <TOKEN> header. Anthropic-format endpoints also accept the x-api-key header. Generate your API Key on the Tokens page, where you can scope access by model, group, IP, and rate limits.

Supported parameters

ParameterTypeDefaultRangeDescription
temperaturefloat10–2Sampling temperature; lower is more stable
top_pfloat10–1Nucleus sampling cumulative probability
max_tokensinteger——Maximum tokens in the response
frequency_penaltyfloat0−2–2Penalizes repeated high-frequency tokens
presence_penaltyfloat0−2–2Encourages introducing new topics
stopstring[]null≤ 4Up to 4 strings that stop generation
seedintegernull—Seed for more reproducible sampling
ninteger1—Number of candidate completions
streambooleanfalse—Stream tokens via SSE
response_formatobject——Force JSON output or schema-conformant results
toolsarray——Function/tool declarations the model can call
tool_choicestring | objectauto—Tool selection strategy or specific tool name
logprobsbooleanfalse—Return log probabilities for each token
top_logprobsintegernull0–20Number of top probabilities returned per token
logit_biasmap——Logit bias mapping per token
userstring——End-user identifier for risk auditing

Rate limits

TierRPMTPMRPD
Eco990398K20K
Test980393K20K

Data updated: 2026-10-10 08:15

Technical SupportLive Support
Back to Top