注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 天猫家装API

taobao.ihome.aigc.qiaoyi.task.get (家装aigc任务详情)

家装aigc任务详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
task_primary_key TaskPrimaryKey 可选 任务主键
  • └ shard_id
  • Number
  • 可选
  • 123
  • 分片id
  • └ task_id
  • Number
  • 可选
  • 29502
  • 任务id

响应参数

名称 类型 示例值 描述
data TaskData [] data
  • └ gmt_modified
  • Date
  • 1692858793000
  • gmtModified
  • └ deduce_param
  • String
  • {"bottom":0.6319526627218935,"flip":false,"imageUrls":["https://img.alicdn.com/imgextra/i4/6000000000386/O1CN015w0Bww1Eipk0SE1k8_!!6000000000386-2-ihome.png"],"left":0.26272189349112424,"needMerge":false,"objectType":"床","portfolioType":"HOME_DESIGN","requestCount":4,"right":0.9124260355029585,"roomType":"卧室","style":"原木","top":0.20946745562130178,"userId":123,"userPlatform":"HOME_DESIGN"}
  • deduceParam
  • images
  • Images []
  • images
  • └ id
  • Number
  • 561958201
  • id
  • └ safe_check
  • Boolean
  • true
  • safeCheck
  • └ url
  • String
  • https://homeai.oss-cn-beijing.aliyuncs.com/kunyu/sd_generate_image/1849057e-4248-11ee-9d1f-0202217e4b76_0.png
  • url
  • └ user_platform
  • String
  • HOME_DESIGN
  • userPlatform
  • └ deduce_type
  • String
  • HOME_DESIGN
  • deduceType
  • └ id
  • Number
  • 72903
  • id
  • └ gmt_create
  • Date
  • 1692858776000
  • gmtCreate
  • └ shard_id
  • Number
  • 123
  • 分片id
  • └ status
  • String
  • SUCCESS
  • status

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IhomeAigcQiaoyiTaskGetRequest req = new IhomeAigcQiaoyiTaskGetRequest();
IhomeAigcQiaoyiTaskGetRequest.TaskPrimaryKey obj1 = new IhomeAigcQiaoyiTaskGetRequest.TaskPrimaryKey();
obj1.setShardId(123L);
obj1.setTaskId(29502L);
req.setTaskPrimaryKey(obj1);
IhomeAigcQiaoyiTaskGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<ihome_aigc_qiaoyi_task_get_response>
    <data>
        <task_data>
            <gmt_modified>1692858793000</gmt_modified>
            <deduce_param>{&quot;bottom&quot;:0.6319526627218935,&quot;flip&quot;:false,&quot;imageUrls&quot;:[&quot;https://img.alicdn.com/imgextra/i4/6000000000386/O1CN015w0Bww1Eipk0SE1k8_!!6000000000386-2-ihome.png&quot;],&quot;left&quot;:0.26272189349112424,&quot;needMerge&quot;:false,&quot;objectType&quot;:&quot;床&quot;,&quot;portfolioType&quot;:&quot;HOME_DESIGN&quot;,&quot;requestCount&quot;:4,&quot;right&quot;:0.9124260355029585,&quot;roomType&quot;:&quot;卧室&quot;,&quot;style&quot;:&quot;原木&quot;,&quot;top&quot;:0.20946745562130178,&quot;userId&quot;:123,&quot;userPlatform&quot;:&quot;HOME_DESIGN&quot;}</deduce_param>
            <images>
                <images>
                    <id>561958201</id>
                    <safe_check>true</safe_check>
                    <url>https://homeai.oss-cn-beijing.aliyuncs.com/kunyu/sd_generate_image/1849057e-4248-11ee-9d1f-0202217e4b76_0.png</url>
                </images>
            </images>
            <user_platform>HOME_DESIGN</user_platform>
            <deduce_type>HOME_DESIGN</deduce_type>
            <id>72903</id>
            <gmt_create>1692858776000</gmt_create>
            <shard_id>123</shard_id>
            <status>SUCCESS</status>
        </task_data>
    </data>
</ihome_aigc_qiaoyi_task_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部