{
"model": "gpt-image-2",
"prompt": "A childrens book drawing of a veterinarian using a stethoscope to listen to the heartbeat of a baby otter.",
"size": "1024x1024",
"n": 1,
"quality": "low",
"output_format": "jpeg",
"response_format": "url"
}curl --location 'https://aipipe.vip/v1/images/generations' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2",
"prompt": "A childrens book drawing of a veterinarian using a stethoscope to listen to the heartbeat of a baby otter.",
"size": "1024x1024",
"n": 1,
"quality": "low",
"output_format": "jpeg",
"response_format": "url"
}'{
"created": 1795683519,
"data": [
{
"revised_prompt": "A childrens book drawing of a veterinarian using a stethoscope to listen to the heartbeat of a baby otter.",
"b64_json": "{base64字符}",
"width": 1024,
"height": 1024
}
],
"usage": {
"input_tokens": 23,
"output_tokens": 272,
"total_tokens": 295,
"input_tokens_details": {
"text_tokens": 23,
"image_tokens": 0,
"cached_tokens": 0
},
"output_tokens_details": {
"text_tokens": 0,
"image_tokens": 272,
"reasoning_tokens": 0
}
}
}