grok-imagine-image-2.0grok-imagine-image-2.0curl --location 'https://4sapi.com/v1/images/generations' \
--header 'Accept: application/json' \
--header 'Authorization: {{YOUR API KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"model": "grok-imagine-image-2.0",
"prompt": "a cute orange cat sitting on a windowsill, sunny day",
"n": 1,
"response_format": "b64_json"
}'{
"data": [
{
"b64_json": "/9j/4AAQSkZJRg...(base64 图片数据)"
}
],
"usage": {
"cost_in_usd_ticks": 400000000
}
}