tbuy
gpt-5.4 API pricing & access
gpt-5.4 API pricing: $2.5 per 1M tokens. GPT-5.4 API for coding, document analysis and visual questions.
gpt-5.4 API access
GPT-5.4 API for coding, document analysis and visual questions.
Compare supported API endpoints and capabilities, then access gpt-5.4 through the unified API gateway.
- Category
- text
- Context length
- 1050000 tokens
- Maximum output
- 128000 tokens
- Supported APIs
- OpenAI Chat Completions API, Anthropic Messages API
- API endpoints
- POST /v1/chat/completions, POST /v1/messages
- Input modalities
- text, image
- Output modalities
- text
- Capabilities
- streaming, structured output, function calling, vision, caching, reasoning
gpt-5.4 API pricing
- Base input price
- $2.5 per 1M tokens
- Base output price
- $15 per 1M tokens
Base prices are shown in USD before group-specific adjustments. Open the live pricing page for current access-group prices.
About gpt-5.4
GPT-5.4 is OpenAI's model for professional tasks and coding. It accepts text and images and produces text. The official limits are a 1,050,000-token context and up to 128,000 output tokens.
Evaluate it for code analysis, document workflows, and visual questions. Request limits, endpoints, and prices depend on the provider selected on this page.
Official model reference, checked 2026-10-11.
API pricing and model selection
Review the prices and endpoints on this page. Check your account discounts, quota and actual usage after signing in, then evaluate the selected endpoint on a small sample.
Compare models in this category ยท API integration documentation.
Use cases and prompting
Define an output you can verify
Provide the goal, evidence, constraints, and expected format. For a code review, request confirmed issues, reproduction steps, and minimal fixes separately.
Compare accuracy, latency, and actual usage on representative examples. Separate document content from instructions. Verify a short request with an endpoint listed here before adding images or tool definitions. Your application controls tool execution and should verify the result.
A task to evaluate
Review the function and failing case below. List evidence-backed issues, minimal changes and acceptance checks. Identify missing context rather than inventing runtime results.
Compare the output with your acceptance criteria. Record the model, endpoint, input size, elapsed time and actual usage; change one condition at a time.
How to call gpt-5.4
gpt-5.4 is served through tbuy's unified gateway. Existing OpenAI or Anthropic SDK code keeps working: point base_url at https://modelsok.com and use your tbuy API key.
curl (OpenAI-compatible)
curl https://modelsok.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5.4", "messages": [{"role": "user", "content": "Hello"}]}'Python (openai SDK)
from openai import OpenAI
client = OpenAI(base_url="https://modelsok.com/v1", api_key="YOUR_API_KEY")
response = client.chat.completions.create(
model="gpt-5.4",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Python (anthropic SDK)
from anthropic import Anthropic
client = Anthropic(base_url="https://modelsok.com", api_key="YOUR_API_KEY")
message = client.messages.create(
model="gpt-5.4",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)Related pages
Frequently asked questions about gpt-5.4
What is gpt-5.4?
GPT-5.4 API for coding, document analysis and visual questions.
How do I call gpt-5.4?
Create an API key with access to gpt-5.4, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.
How is gpt-5.4 priced?
Pricing depends on the selected provider group and the model billing unit. Refer to the current input, output, request, or media prices in the pricing section.
What is the context window of gpt-5.4?
The model catalog lists a context window of 1050000 tokens. Check the selected endpoint for request limits.
What is the maximum output of gpt-5.4?
The model catalog lists a maximum output of 128000 tokens. Your request settings may set a lower limit.
How should I evaluate gpt-5.4 for my project?
Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.