{ "query": { "async": "true", // 必需,固定启用异步模式 "webhook": "https://www.baidu.com/notify" // 可选,结果回调通知URL }, "body": { "size": "1024x1024", "prompt": "cat", "model": "sora_image", "n": 1 } }
curl --location --request POST 'https://maas.haoee.com/v1/images/edits' \ --header 'Authorization: key' \ --header 'ModelName: 模型名称' \ --header 'Content-Type: application/json' \ --data-raw '{ "query": { "async": "true", // 必需,固定启用异步模式 "webhook": "https://www.baidu.com/notify" // 可选,结果回调通知URL }, "body": { "size": "1024x1024", "prompt": "cat", "model": "sora_image", "n": 1 } }'
{ "task_id": "3dad96708a77485e97ac7ef652796d7b" }