Upscale(放大高清)
POST
https://api.openai-hub.com/ideogram/upscale
Upscale
提供图像的高分辨率版本,并可选附带提示。
请求参数
Header 参数
Authorization
string
必需
示例
Authorization: Bearer 2f68dbbf-519d-4f01-9636-e2421b68f379
默认值:
Bearer {{YOUR_API_KEY}}
Content-Type
string
可选
默认值:
application/json
Body 参数multipart/form-data
image_file
file
必需
图像二进制;目前仅支持 JPEG、WEBP 和 PNG 格式
image_request
string
必需
请求生成一张新图像,使用提供的图像和提示。大致和Generate相同。
示例值:
{"resemblance":50,"magic_prompt_option":"AUTO","prompt":"A serene tropical beach ","seed":12345,"detail":50}