Download Results

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

Download result for a given task submitted to the API.

post
授权
请求体
task_uuidstring必填
响应
201成功
application/json
post
POST /api/v2/download HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 20

{
  "task_uuid": "text"
}
201成功
{
  "error": "OK",
  "list": [
    {
      "url": "text",
      "name": "text"
    }
  ]
}

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

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

价格

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

请求

Authentication

此API使用密钥进行身份验证。您需要在所有请求的Authorization头中包含一个有效的密钥. 参阅Quickstart section获取您的账户的API生成密钥.

Authorization: Bearer RODIN_API_KEY

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

模型文件的名称。

样例

export RODIN_API_KEY="your api key"
curl -X 'POST' \
  'https://api.hyper3d.com/api/v2/download' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "task_uuid": "your-task-uuid"
}'
unset RODIN_API_KEY

最后更新于

这有帮助吗?