{
  "capabilityId": "image.generate",
  "schemaVersion": 1,
  "displayName": "创意资产 · 封面生图",
  "payloadSchema": "../schemas/image_generate_request.schema.json",
  "resultSchema": "../schemas/image_generate_result.schema.json",
  "progressSchema": "../schemas/edit_task_progress.schema.json",
  "peers": {
    "local": {
      "transport": "restJob",
      "healthFeature": "imageRest",
      "shippedAvailable": true,
      "submit": { "method": "POST", "path": "image/generate" },
      "poll": { "method": "GET", "path": "image/jobs/{jobId}" },
      "pollByTask": { "method": "GET", "path": "image/jobs/by-task/{taskId}" },
      "auth": "none"
    },
    "cloud": {
      "transport": "restJob",
      "healthFeature": null,
      "shippedAvailable": true,
      "submit": { "method": "POST", "endpointKey": "image/generate" },
      "poll": { "method": "GET", "endpointKey": "image/jobs/{jobId}" },
      "pollByTask": { "method": "GET", "endpointKey": "image/jobs/by-task/{taskId}" },
      "estimateCost": { "method": "POST", "endpointKey": "image/estimate-cost" },
      "auth": "bearer"
    }
  }
}
