OpenAI's flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. Features 1M context window for complex document analysis and code generation.
1M コンテキストウィンドウ
33K 最大出力トークン
リリース日: 2025-04-14
対応プロトコル:openai
利用可能なプロバイダー:Azure
機能:VisionFunction Callingプロンプトキャッシュ音声入力PDF入力
料金
| タイプ | 料金 |
|---|---|
| 入力トークン | $2/M |
| 出力トークン | $8/M |
| キャッシュ読込 | $0.5/M |
| Web検索 | $0.01/R |
コード例
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.ai/v1",api_key="YOUR_OFOX_API_KEY",)response = client.chat.completions.create(model="openai/gpt-4.1",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
関連モデル
よくある質問
Ofox.aiでのGPT-4.1の料金は、入力100万トークンあたり$2/M、出力100万トークンあたり$8/Mです。従量課金制、月額料金なし。
GPT-4.1は1Mトークンのコンテキストウィンドウと最大33Kトークンの出力に対応。大規模ドキュメントの処理や長い会話の維持が可能です。
ベースURLをhttps://api.ofox.ai/v1に設定し、Ofox APIキーを使用するだけ。OpenAI互換APIなので、既存コードのベースURLとAPIキーを変更するだけです。
GPT-4.1は以下の機能に対応:Vision, Function Calling, プロンプトキャッシュ, 音声入力, PDF入力。Ofox.ai統合APIですべての機能にアクセスできます。