xAI
grok-code-fast-1
Grok · トークンごと
grok-code-fast-1利用可能⚡キャッシュ 90% OFFツール利用JSONモード
コンテキストウィンドウ: 128K最大出力トークン: 128K料金
| 公式価格 | LemonData価格 | 割引 | |
|---|---|---|---|
| 入力 | ¥0.20 | ¥0.14 | 30% |
| 出力 | ¥1.50 | ¥1.05 | 30% |
| キャッシュ読み取り | ¥0.02 | ¥0.014 | 30% |
パラメータ
コンテキストウィンドウ
128K トークン
最大出力トークン
128K トークン
コスト計算機
1M
0.5M
月間推定コスト¥0.67
APIコード例
POST/v1/chat/completions
curl https://api.lemondata.cc/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxx" \
-d '{
"model": "grok-code-fast-1",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'よくある質問
grok-code-fast-1の料金はいくらですか?
LemonDataでは、grok-code-fast-1の料金は入力トークン100万個あたり¥0.1400、出力トークン100万個あたり¥1.0500で、公式価格より最大30%お得です。
grok-code-fast-1はどのような用途に最適ですか?
grok-code-fast-1はツール利用, JSONモードに優れています。LemonDataの統合APIを通じて、単一のAPIキーでアクセスできます。
grok-code-fast-1 APIの使用方法は?
LemonDataからAPIキーを取得し、互換性のあるSDKを使用してhttps://api.lemondata.cc/v1/chat/completionsを呼び出します。統合の詳細については、上記のコード例を参照してください。