curl --location --globoff '{{baseUrl}}/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": "url"
}'{
"data": [
{
"url": "https://imgen.x.ai/xai-imgen/xai-tmp-imgen-xxxx.jpeg",
"mime_type": "image/jpeg"
}
],
"usage": {
"cost_in_usd_ticks": 400000000
}
}