Download Results

下载提交到API的给定任务的结果。

Download result for a given task submitted to the API.

post
授权
Authorizationstring必填
Bearer authentication header of the form Bearer <token>.
请求体
task_uuidstring必填
响应
post
/api/v2/download
201成功

在Check status端点返回的Done状态之后,调用这个API端点来获取生成任务的下载url。

在任务完成之前调用这个API端点可能会返回错误的结果,比如文件列表不完整。 查看Check Status了解如何查看任务是否完成。

价格

我们不会对调用API下载生成结果的行为收取任何额外的费用。

请求

Authentication

此API使用密钥进行身份验证。您需要在所有请求的Authorization头中包含一个有效的密钥. 参

Body

API在POST请求体中需求一个参数。

对于response from the Generation APItask_uuid,使用uuid字段替代jobs_uuid

Parameter
Type
Description

task_uuid

string

Required. 需要查询状态的任务UUID。通常,您将在生成API的响应中获得它。

响应

JSON响应包含以下字段。您可以在list列表中下载preview.webp以预览模型。

Property
Type
Description

error

string

可选。 可能存在的错误信息。

list

array

此任务可下载的模型文件列表。

list.url

string

下载模型文件的URL。

list.name

string

模型文件的名称。

样例

最后更新于

这有帮助吗?