gpt-4.1-2025-04-14 API
Use OpenAI’s pinned GPT-4.1 chat snapshot on APISea for text generation with large inputs and prompt-cache reads.
gpt-4.1-2025-04-14これはgpt-4.1-2025-04-14の特定日時点のスナップショットです。ほとんどのユーザーには、モデルのメインページをご利用いただくことをおすすめします。 gpt-4.1
gpt-4.1-2025-04-14 APIの料金
すべての料金はUSDです。同じ単位でAPISeaの料金と公式価格表の料金を比較しています。
| トークン種別 | APISea | 公式 | 節約 |
|---|---|---|---|
| 入力 100万tokenあたり | $1.76 | $2.00 | −12% |
| キャッシュ済み入力 100万tokenあたり | $0.44 | $0.50 | −12% |
| 出力 100万tokenあたり | $7.04 | $8.00 | −12% |
gpt-4.1-2025-04-14とは?
OpenAI’s gpt-4.1-2025-04-14 is a GPT-4 family chat model available through APISea. Its date-suffixed name identifies a pinned snapshot, suited to teams that want a stable model selection for reproducible workflows. Build text-generation applications using conversation messages with user, assistant, and system roles. The model accepts up to 1,047,576 input tokens and generates up to 32,768 output tokens, making it an option for workflows that supply extensive reference material or conversation history.
Call it through APISea’s OpenAI-compatible Chat Completions interface with your API key. Controls include temperature, top_p, max_tokens, stop sequences, and streaming or complete-response output. Prompt-cache reads are supported. Pay-as-you-go pricing is $1.76 per 1M tokens for input, $0.44 per 1M tokens for cached input (cache read), and $7.04 per 1M tokens for output. The default configuration is about 12% below the provider list price, and APISea bills only successful requests.
gpt-4.1-2025-04-14の特長
Large Input Limit
Supply up to 1,047,576 input tokens for text-generation workflows with extensive context.
Long Output Allowance
Generate up to 32,768 output tokens. Use max_tokens to set a lower generation budget for individual requests.
Prompt Cache Reads
The model supports prompt-cache reads, priced at $0.44 per 1M tokens for cached input (cache read).
Configurable Chat Output
Choose streaming or complete responses and adjust temperature or top_p. Stop sequences and repetition penalties provide additional generation controls.
gpt-4.1-2025-04-14 APIを4つのステップで呼び出す方法
- 01
APIキーを取得する
APISeaにサインインし、$50からチャージして、コンソールでsk-seaキーを作成します。
- 02
ベースURLを設定する
SDKまたはHTTPクライアントのベースURLにhttps://api.apisea.ai/v1を設定します。
- 03
リクエストを送信する
"model": "gpt-4.1-2025-04-14"と以下のパラメーターを指定して、POST /v1/chat/completionsを呼び出します。
- 04
レスポンスを処理する
レスポンスを読み取ります(またはstream: trueを指定してトークンをストリーミングします)。使用量と料金はコンソールで確認できます。
curl https://api.apisea.ai/v1/chat/completions \
-H "Authorization: Bearer $APISEA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4.1-2025-04-14",
"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-4.1-2025-04-14でできること
Document-Based Assistants
Supply reference text alongside a user question to build assistants that draft answers from provided material.
Multi-Turn Support Chat
Include prior user and assistant messages to build support conversations, with a system message defining the assistant’s role.
Long-Form Drafting
Provide an outline, source material, and writing instructions to generate reports or other extended text drafts within the output limit.
Snapshot-Based Evaluation
Use the date-pinned model ID in evaluation runs to keep model selection consistent while testing changes to prompts and generation settings.
より良い結果を得るためのヒント
- 01
Set the Model Explicitly
Pass
gpt-4.1-2025-04-14as the model value rather than relying on the general chat endpoint’s default model. - 02
Budget Output Tokens
Set max_tokens to match the response length your application needs, staying within the 32,768-token output limit.
- 03
Tune One Sampling Control
Use a lower temperature, such as 0.2, for more deterministic output. The documentation recommends adjusting either temperature or top_p rather than both.
- 04
Separate Cached Input Costs
Account for cache-read input separately when estimating costs: it is priced at $0.44 per 1M tokens. Cache-read support does not mean every input request receives that rate.
制限事項と注意点
Maximum input is 1,047,576 tokens, and maximum output is 32,768 tokens.
The chat API accepts up to four stop sequences.
The supplied documentation does not establish Responses API or multimodal support for this model.
gpt-4.1-2025-04-14 APIに関するよくある質問
How much does gpt-4.1-2025-04-14 cost on APISea?
Input costs $1.76 per 1M tokens, cached input (cache read) costs $0.44 per 1M tokens, and output costs $7.04 per 1M tokens. The default configuration is about 12% below the provider list price, with pay-as-you-go billing only for successful requests.
How do I call gpt-4.1-2025-04-14 through the API?
Use the OpenAI-compatible base URL https://api.apisea.ai/v1 and send a POST request to /v1/chat/completions with Bearer Token authentication. Set model to gpt-4.1-2025-04-14 and provide a messages array containing role and content fields.
Which generation parameters can I use?
The chat interface documents temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Set stream to true for SSE output or false for a complete response.
What are the input and output token limits?
The model supports a maximum input of 1,047,576 tokens and a maximum output of 32,768 tokens. Set max_tokens within the output limit to control the generation budget.
Can I use this model in a commercial application?
Commercial use is subject to the provider’s terms and applicable APISea terms. Review those terms for your application before deployment.
How does this snapshot differ from other GPT-4 models?
The date suffix identifies gpt-4.1-2025-04-14 as a pinned snapshot, suited to reproducible model selection. The supplied facts do not establish performance differences from other GPT-4 family models.
関連モデル
gpt-4.1
gpt-4.1-mini
gpt-4.1-mini-2025-04-14
GPT-4o
gpt-4ogpt-4o-2024-11-20
GPT-4o Mini
gpt-4o-minigpt-5
gpt-5-2025-08-07
gpt-4.1-2025-04-14で開発を始めましょう
APIキー1つで利用でき、$50からの従量課金です。課金対象は成功したリクエストのみです。