{
"size": "1024x1024",
"prompt": "a man walks",
"model": "gpt-image-2",
"n": 1,
"quality": "low",
"format": "jpeg"
}curl --location 'https://mliapi.com/v1/images/generations' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"size": "1024x1024",
"prompt": "a man walks",
"model": "gpt-image-2",
"n": 1,
"quality": "low",
"format": "jpeg"
}'{
"created": 1776664739,
"background": "opaque",
"data": [
{
"b64_json": "iVB"
}
],
"output_format": "png",
"quality": "high",
"size": "1024x1024",
"usage": {
"input_tokens": 10,
"input_tokens_details": {
"image_tokens": 0,
"text_tokens": 10
},
"output_tokens": 4160,
"total_tokens": 4170
}
}