gpt-5.4 API
Use gpt-5.4 on APISea for text generation and multi-turn chat with large inputs and prompt-cache reads.
gpt-5.4gpt-5.4 API-ის ფასები
ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.
| Token-ის ტიპი | APISea | ოფიციალური | დაზოგვა |
|---|---|---|---|
| შეყვანა 1M token-ზე | $2.20 | $2.50 | −12% |
| ქეშირებული შეყვანა 1M token-ზე | $0.22 | $0.25 | −12% |
| გამოტანა 1M token-ზე | $13.20 | $15.00 | −12% |
ფასები prompt-ის სიგრძის მიხედვით
| Token-ის ტიპი | 272,000 token-მდე | წინა საფეხურზე მეტი |
|---|---|---|
| შეყვანა | $2.20$2.50 | $4.40$5.00 |
| ქეშირებული შეყვანა | $0.22$0.25 | $0.44$0.50 |
| გამოტანა | $13.20$15.00 | $19.80$22.50 |
რა არის gpt-5.4?
gpt-5.4 is an OpenAI GPT-5 family chat model available through APISea for text generation and multi-turn conversations. Developers can use it to build document-based assistants, drafting workflows, and applications that carry conversation history between turns. It accepts message arrays with system, user, and assistant roles and returns generated text. The listed limits are 922,000 input tokens and 128,000 output tokens. APISea's Chat Completions interface provides streaming and non-streaming responses, plus controls such as temperature, top_p, and max_tokens.
Call gpt-5.4 through APISea's OpenAI-compatible base URL, https://api.apisea.ai/v1, using one API key. Billing is pay-as-you-go and applies only to successful requests. For inputs up to 272,000 tokens, input costs $2.20 per 1M tokens and output costs $13.20 per 1M tokens. Above that input tier, rates are $4.40 per 1M input tokens and $19.80 per 1M output tokens. Listed cache reads cost $0.22 per 1M tokens; the default configuration is about 12% below provider list price.
gpt-5.4-ის მთავარი მახასიათებლები
Large Input Capacity
Accepts up to 922,000 input tokens, providing room for substantial text and conversation history.
Long Output Allowance
Supports up to 128,000 output tokens. Use max_tokens to set a smaller generation budget for each request.
Prompt Cache Reads
Supports prompt-cache reads, with a listed cached-input rate of $0.22 per 1M tokens.
Chat Response Controls
Use the Chat Completions interface to select streaming or complete responses. Temperature and top_p provide controls over output randomness and sampling.
როგორ გამოვიძახოთ gpt-5.4 API 4 ნაბიჯში
- 01
მიიღეთ API გასაღები
შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.
- 02
დააყენეთ საბაზისო URL
თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.
- 03
გაგზავნეთ მოთხოვნა
გამოიძახეთ POST /v1/chat/completions პარამეტრებით "model": "gpt-5.4" და ქვემოთ ჩამოთვლილი პარამეტრებით.
- 04
დაამუშავეთ პასუხი
წაიკითხეთ პასუხი (ან მიიღეთ token-ები ნაკადურად stream: true-ის გამოყენებით). გამოყენების მონაცემები და ღირებულება თქვენს კონსოლში გამოჩნდება.
მოთხოვნის მაგალითები
დოკუმენტაცია: General Chat API (Default Streaming)curl https://api.apisea.ai/v1/chat/completions \
-H "Authorization: Bearer $APISEA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4",
"messages": [
{"role": "system", "content": "You are a concise assistant."},
{"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
],
"stream": false
}'პარამეტრები
| პარამეტრი | ტიპი | სავალდებულო | ნაგულისხმევი | აღწერა |
|---|---|---|---|---|
model | string | სავალდებულო | gpt-5 | Model name |
messages | array | სავალდებულო | — | List of conversation messages |
role | string | სავალდებულო | user | Role type |
content | string | სავალდებულო | — | Message content |
temperature | number | არასავალდებულო | — | Controls output randomness, range 0-2 |
max_tokens | integer | არასავალდებულო | — | Maximum number of tokens to generate |
stream | boolean | არასავალდებულო | — | Whether to use streaming output |
top_p | number | არასავალდებულო | — | Nucleus sampling parameter, range 0-1 |
frequency_penalty | number | არასავალდებულო | — | Frequency penalty, range -2.0 to 2.0 |
presence_penalty | number | არასავალდებულო | — | Presence penalty, range -2.0 to 2.0 |
stop | string or array | არასავალდებულო | — | Stop sequences |
n | integer | არასავალდებულო | — | Number of completions to generate |
რისი შექმნა შეგიძლიათ gpt-5.4-ით
Document-Based Assistants
Supply reference text alongside a user's question to build an assistant that answers from provided material. The large input allowance accommodates substantial document collections.
Multi-Turn Support Chat
Include previous user and assistant messages to maintain conversational context, with a system message defining the assistant's behavior.
Drafting Workflows
Generate drafts from detailed briefs, then send revision instructions in follow-up turns. Set max_tokens to match the intended output length.
Long-Text Summaries
Provide lengthy source text and request a summary organized around specific questions or sections. Account for the higher pricing tier when input exceeds 272,000 tokens.
რჩევები უკეთესი შედეგებისთვის
- 01
Set an Output Budget
Set max_tokens explicitly rather than relying on the maximum output allowance. Choose a budget appropriate to the requested answer or draft.
- 02
Watch the Input Tier
Track prompt_tokens in response usage. Inputs above 272,000 tokens use higher listed input and output rates.
- 03
Plan for Cache Reads
Consider prompt-cache reads for workflows with reusable input. Check caching documentation for eligibility rather than assuming every repeated prompt receives the cached-input rate.
- 04
Choose Sampling and Streaming
The chat documentation recommends adjusting either temperature or top_p. Set stream explicitly to true for SSE output or false for a complete response.
შეზღუდვები და გასათვალისწინებელი საკითხები
Maximum input is 922,000 tokens; maximum output is 128,000 tokens.
Inputs above 272,000 tokens fall into a higher-priced input and output tier.
The supplied documentation does not establish model-specific support for Responses API tools or image inputs.
gpt-5.4 API-ის ხშირად დასმული კითხვები
How much does gpt-5.4 cost on APISea?
For inputs up to 272,000 tokens, input is $2.20 per 1M tokens and output is $13.20 per 1M tokens; above that tier, input is $4.40 per 1M tokens and output is $19.80 per 1M tokens. Listed cached input is $0.22 per 1M tokens. The default configuration is about 12% below provider list price, with billing only for successful requests.
How do I call gpt-5.4 through APISea?
Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions with model set to gpt-5.4 and a messages array. Authenticate with your APISea API key as a Bearer token.
Which generation parameters are documented?
The general Chat Completions documentation lists temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Check the model documentation for any model-specific restrictions before relying on individual options.
What are gpt-5.4's token limits?
The listed maximums are 922,000 input tokens and 128,000 output tokens. The pricing threshold of 272,000 input tokens is separate from the maximum input limit.
Can I use gpt-5.4 commercially?
Commercial use is subject to the provider's terms and applicable APISea terms. Review those terms for your application's intended use and data requirements.
How does gpt-5.4 compare with GPT-5 mini?
The mini naming convention positions GPT-5 mini as a lighter, cost-focused tier. The supplied facts do not establish comparative performance or latency for gpt-5.4, so evaluate both with representative workloads.
მსგავსი მოდელები
gpt-5
gpt-5-2025-08-07
gpt-5-mini
gpt-5-mini-2025-08-07
gpt-5-nano
gpt-5-nano-2025-08-07
gpt-5-pro
gpt-5-pro-2025-10-06
დაიწყეთ gpt-5.4-ით შექმნა
ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.