curl --location --request POST 'https://api.uniapi.io/v1/images/variations' \
--form 'image=@""'
{
"created": 0,
"data": [
{
"b64_json": "string",
"url": "string",
"revised_prompt": "string"
}
],
"usage": {
"total_tokens": 0,
"input_tokens": 0,
"output_tokens": 0,
"input_tokens_details": {
"text_tokens": 0,
"image_tokens": 0
}
}
}
dall-e-2
。dall-e-2
。url
或 b64_json
之一。URL 仅在图像生成后 60 分钟内有效。256x256
、512x512
或1024x1024
。