xAI 的 Grok Imagine Image 2.0——快速 text-to-image,可选 2K,提供低/中质量档位和从超宽到超高的十三种画面比例。每次请求最多四张图像。
~10s
curl https://www.flixly.ai/api/v1/generate \
-H "Authorization: Bearer flx_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-image-v2",
"prompt": "A beautiful sunset over the ocean",
"type": "TEXT_TO_IMAGE"
}'在开发者门户获取你的API密钥。