lianfan.huiwa.task.content.understanding.submit (内容理解)

内容理解任务提交API,支持视频

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
content_understanding_top_req ContentUnderstandingTopReq 必须 内容理解TOP请求
  • request
  • ContentUnderstandingRequest
  • 可选
  • 内容理解请求
  • └ pass_through
  • String
  • 可选
  • {}
  • 扩展字段,业务透传给绘蛙,在查询的时候开发者可以使用这些参数
  • └ content_url
  • String
  • 必须
  • https://xxx.mp4
  • 内容地址,如视频地址
  • └ task_biz_type
  • Number
  • 必须
  • 51
  • 内容理解的任务类型,视频内容理解:51

响应参数

名称 类型 示例值 描述
result ResultDTO 返回结果
  • └ succeed
  • Boolean
  • true
  • 是否成功
  • model
  • TaskSubmitTopResult
  • 任务信息
  • └ task_id
  • Number
  • 123
  • 任务id
  • └ error_msg
  • String
  • 参数错误
  • 错误信息
  • └ error_code
  • String
  • AIGC_NVWA_PARAM_INVALID
  • 错误码
  • error_codes
  • ErrorCodeDTO
  • RPC错误
  • └ code
  • String
  • errorCode
  • 错误码
  • └ message
  • String
  • 失败
  • 错误文案

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LianfanHuiwaTaskContentUnderstandingSubmitRequest req = new LianfanHuiwaTaskContentUnderstandingSubmitRequest();
LianfanHuiwaTaskContentUnderstandingSubmitRequest.ContentUnderstandingTopReq obj1 = new LianfanHuiwaTaskContentUnderstandingSubmitRequest.ContentUnderstandingTopReq();
LianfanHuiwaTaskContentUnderstandingSubmitRequest.ContentUnderstandingRequest obj2 = new LianfanHuiwaTaskContentUnderstandingSubmitRequest.ContentUnderstandingRequest();
obj2.setPassThrough("{}");
obj2.setContentUrl("https://xxx.mp4");
obj2.setTaskBizType(51L);
obj1.setRequest(obj2);
req.setContentUnderstandingTopReq(obj1);
LianfanHuiwaTaskContentUnderstandingSubmitResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<lianfan_huiwa_task_content_understanding_submit_response>
    <result>
        <succeed>true</succeed>
        <model>
            <task_id>123</task_id>
            <error_msg>参数错误</error_msg>
            <error_code>AIGC_NVWA_PARAM_INVALID</error_code>
        </model>
        <error_codes>
            <code>errorCode</code>
            <message>失败</message>
        </error_codes>
    </result>
</lianfan_huiwa_task_content_understanding_submit_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

返回
顶部