Authorization: Bearer ********************curl --location '/images/generations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "A cute baby sea otter",
"model": "string",
"n": 1,
"quality": "auto",
"response_format": "url",
"output_format": "png",
"output_compression": 100,
"stream": false,
"partial_images": 0,
"size": "string",
"moderation": "auto",
"background": "auto",
"style": "vivid",
"user": "user-1234"
}'{
"created": 0,
"data": [
{
"b64_json": "string",
"url": "http://example.com",
"revised_prompt": "string"
}
],
"background": "transparent",
"output_format": "png",
"size": "1024x1024",
"quality": "low",
"usage": {
"input_tokens": 0,
"total_tokens": 0,
"output_tokens": 0,
"output_tokens_details": {
"image_tokens": 0,
"text_tokens": 0
},
"input_tokens_details": {
"text_tokens": 0,
"image_tokens": 0
}
}
}