xai/grok-imagine-image
replicate.x.xai-grok-imagine-imageSOTA image model from xAI
- Price
- 価格未定プロバイダー原価
- Success rate
- 100%Last 30 days · 6 calls
- Latency p50
- 363 msp95 616 ms
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/replicate.x.xai-grok-imagine-imagePreview- Uses platform quota
- Asynchronous response
- Reads public data
パラメータ
このツールにパラメータはありません。プロバイダのドキュメント ↗ を参照してください Provider docs
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/replicate.x.xai-grok-imagine-image' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/replicate.x.xai-grok-imagine-image",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/replicate.x.xai-grok-imagine-image", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。