OpenAI's advanced small model, 60% cheaper than GPT-3.5 Turbo while scoring 82% on MMLU. Optimized for cost-effective tasks requiring strong language understanding and generation capabilities.
128K コンテキストウィンドウ
16K 最大出力トークン
リリース日: 2024-07-18
対応プロトコル:openai
利用可能なプロバイダー:Azure
機能:VisionFunction Callingプロンプトキャッシュ
料金
| タイプ | 料金 |
|---|---|
| 入力トークン | $0.15/M |
| 出力トークン | $0.6/M |
| キャッシュ読込 | $0.075/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-4o-mini",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
関連モデル
よくある質問
Ofox.aiでのGPT-4o Miniの料金は、入力100万トークンあたり$0.15/M、出力100万トークンあたり$0.6/Mです。従量課金制、月額料金なし。
GPT-4o Miniは128Kトークンのコンテキストウィンドウと最大16Kトークンの出力に対応。大規模ドキュメントの処理や長い会話の維持が可能です。
ベースURLをhttps://api.ofox.ai/v1に設定し、Ofox APIキーを使用するだけ。OpenAI互換APIなので、既存コードのベースURLとAPIキーを変更するだけです。
GPT-4o Miniは以下の機能に対応:Vision, Function Calling, プロンプトキャッシュ。Ofox.ai統合APIですべての機能にアクセスできます。