Midjourney Upscale
使用我们的 /upscale API,通过专业质量的放大功能增强和放大您生成的 AI 图像。
什么是 Upscale?
放大通过增加分辨率和提高质量来增强您生成的图像。
使用 /upscale API
将 Midjourney 的放大功能直接集成到您的应用程序中。
API 示例
curl --location 'https://api.legnext.ai/api/v1/upscale' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"jobId": "280b8eb6-978f-446b-a87d-198caed8eabe",
"imageNo": 4,
"type": 0,
"callback": "https://webhook.site/a334611b-cc33-4f5e-a865-9800f92f5551"
}'参数
- jobId: 原始生成任务 ID
- imageNo: 图像编号 (1-4)
- type: 放大类型 (0-3)
- callback: Webhook URL
响应
返回任务 ID、状态和使用信息以跟踪进度
API 响应示例
{
"job_id": "2c76c546-40aa-4142-9ac1-bb30020f9f29",
"model": "midjourney",
"task_type": "upscale",
"status": "pending",
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "https://webhook.site/...",
"secret": ""
}
},
"output": {
"image_url": "",
"image_urls": null
},
"meta": {
"created_at": "2025-09-10T15:21:05Z",
"usage": {
"type": "point",
"frozen": 120,
"consume": 0
}
}
}job_id: job_id: 用于跟踪放大任务的唯一标识符
status: status: 当前任务状态(pending, processing, completed, failed)
frozen: frozen: 为此操作保留的点数(放大需要 120 点)