1. 创建任务
超然POD-API开放平台-文档中心
  • 说明
  • 创建任务
    • 图案提取 V1
      POST
    • 图案提取 V2
      POST
    • 图案裁剪
      POST
    • 图生图
      POST
    • 文生图
      POST
    • AI 写标题
      POST
    • 图片高清
      POST
    • 印花抠图
      POST
    • 图片违规检测
      POST
    • TRO 检测
      POST
  • 查询任务
    • 查询任务状态
      GET
    • 查询任务结果
      GET
  1. 创建任务

图案裁剪

POST
/openapi/v1/tasks/icrop
一次请求只创建一个图案裁剪任务,返回 task_id 后轮询查询。参数与网站端图案裁剪表单保持一致:图片 URL、产品类型。

请求参数

Header 参数

Body 参数application/json

示例
{
    "input": {
        "imageUrl": "https://example.com/input.png",
        "productType": "general"
    },
    "callback_url": "https://client.example.com/cran/callback",
    "metadata": {
        "external_order_id": "order-20260601-0001"
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/openapi/v1/tasks/icrop' \
--header 'X-Idempotency-Key;' \
--header 'x-api-key: {{api_key}}' \
--header 'Content-Type: application/json' \
--data '{
    "input": {
        "imageUrl": "https://example.com/input.png",
        "productType": "general"
    },
    "callback_url": "https://client.example.com/cran/callback",
    "metadata": {
        "external_order_id": "order-20260601-0001"
    }
}'

返回响应

🟢200成功
application/json
任务已创建
Bodyapplication/json

示例
{
    "code": "0",
    "message": "ok",
    "data": {
        "task_id": "30df558c-6f94-4c4e-b976-d60569fe595d",
        "status": "CREATED",
        "capability_code": "idetect",
        "request_id": "string"
    }
}
🟠400请求有误
🟠401没有权限
🟠402禁止访问
🟠403禁止访问
🟠429
修改于 2026-06-06 21:53:41
上一页
图案提取 V2
下一页
图生图
Built with