数字人作品详情
<pre><code class="language-text">数字人-数字人作品详情</code></pre>
<h4>接口URL</h4>
<p>> /api/v1/ai/avatar/works/info</p>
<h4>请求方式</h4>
<p>> GET</p>
<h4>请求Query参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>cv</td>
<td>1.1.0</td>
<td>String</td>
<td>是</td>
<td>-</td>
</tr>
<tr>
<td>cp</td>
<td>a</td>
<td>String</td>
<td>是</td>
<td>-</td>
</tr>
<tr>
<td>ci</td>
<td>999999</td>
<td>String</td>
<td>是</td>
<td>-</td>
</tr>
<tr>
<td>token</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>登录令牌</td>
</tr>
<tr>
<td>uid</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>用户标识</td>
</tr>
<tr>
<td>taskId</td>
<td>-</td>
<td>String</td>
<td>是</td>
<td>任务id</td>
</tr>
</tbody>
</table>
<h4>返回参数说明</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>taskId</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>任务id</td>
</tr>
<tr>
<td>cover</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>封面</td>
</tr>
<tr>
<td>url</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>视频地址</td>
</tr>
<tr>
<td>name</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>名称</td>
</tr>
<tr>
<td>status</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>状态 0生成中,1生成成功未查看,2生成成功已查看,3生成失败</td>
</tr>
<tr>
<td>extra</td>
<td>-</td>
<td>Object</td>
<td>-</td>
<td>数字人参数(视频宽高、xy轴,等数据)</td>
</tr>
<tr>
<td>createdAt</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>创建时间</td>
</tr>
<tr>
<td>updatedAt</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>更新时间</td>
</tr>
</tbody>
</table>
<h4>avatarExtra参数说明</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例值</th>
<th>参数类型</th>
<th>是否必填</th>
<th>参数描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>width</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>视频宽</td>
</tr>
<tr>
<td>height</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>视频高</td>
</tr>
<tr>
<td>createType</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>类型,sys:系统预设,user:用户自定义</td>
</tr>
<tr>
<td>avatarWidth</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>数字人宽度</td>
</tr>
<tr>
<td>avatarHeight</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>数字人高度</td>
</tr>
<tr>
<td>avatarX</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>数字人x轴坐标,相对于视频左上角</td>
</tr>
<tr>
<td>avatarY</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>数字人y轴坐标,相对于视频左上角</td>
</tr>
<tr>
<td>bgImage</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>背景图url</td>
</tr>
<tr>
<td>bgImageWidth</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>背景图宽度</td>
</tr>
<tr>
<td>bgImageHeight</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>背景图高度</td>
</tr>
<tr>
<td>bgImageX</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>背景图x轴坐标,相对于视频左上角</td>
</tr>
<tr>
<td>bgImageY</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>背景图y轴坐标,相对于视频左上角</td>
</tr>
<tr>
<td>audioUrl</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>音频url</td>
</tr>
<tr>
<td>audioDuration</td>
<td>-</td>
<td>int</td>
<td>-</td>
<td>音频时长,audioUrl不为空是,该字段必传</td>
</tr>
<tr>
<td>customImage</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>自定义数字人图片</td>
</tr>
<tr>
<td>extInfo</td>
<td>-</td>
<td>string</td>
<td>-</td>
<td>扩展参数</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;taskId&quot;: &quot;&quot;,
&quot;cover&quot;:&quot;&quot;,
&quot;url&quot;:&quot;&quot;,
&quot;name&quot;:&quot;&quot;,
&quot;status&quot;:0,
&quot;extra&quot;: {},
&quot;createdAt&quot;:&quot;&quot;,
&quot;updatedAt&quot;:&quot;&quot;,
}</code></pre>
<h5>失败返回示例</h5>
<pre><code>{
&quot;code&quot;: 1001,
&quot;reason&quot;: &quot;请求参数错误&quot;,
&quot;extInfo&quot;: null
}</code></pre>