在图片或视频生成请求中加入 callback_url,即可在任务变为 completed 或 failed 时接收 POST 请求。
{ "model": "gpt-image-2", "prompt": "A technical cutaway illustration of a compact camera", "callback_url": "https://api.example.com/webhooks/apipod/opaque-route-token"}
图层拆分模型(seedream-5.0-pro-layer、seedream-5.0-flash-layer)完成回调的 result 中,每一项都是包含 url、z_index、bounding_box、name 和 description 的对象,而不是 URL 字符串。格式与查询图片任务接口的 result 字段完全相同。其它模型的 result 仍是 URL 字符串数组。