{
"model": "gpt-image-2",
"n": 1,
"prompt": "A little boy runs along the beach by the ocean.",
"size": "1536x1024",
"quality": "high",
"response_format": "url",
"image": [
"https://example.com/400?lock=3432402360029195",
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfSJ..."
]
}curl --location 'https://mliapi.com/v1/images/generations' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2",
"n": 1,
"prompt": "A little boy runs along the beach by the ocean.",
"size": "1536x1024",
"quality": "high",
"response_format": "url",
"image": [
"https://example.com/400?lock=3432402360029195",
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfSJ..."
]
}'{
"created": 0,
"data": [
{
"url": "string"
}
],
"usage": {
"total_tokens": 0,
"input_tokens": 0,
"output_tokens": 0,
"input_tokens_details": {
"text_tokens": 0,
"image_tokens": 0
}
}
}