Rodin Gen-2
使用 Rodin Gen-2 tier 生成 3D asset。
根据图片和/或文本提示生成网格与纹理。
Authorization
bearer In: header
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v2/rodin" \ -F tier="Gen-2"{ "error": "NO_SUCH_TASK", "message": "Submitted.", "uuid": "123e4567-e89b-12d3-a456-426614174000", "submit_time": "2019-08-24T14:15:22Z", "jobs": { "uuids": [ "52faea01-729e-4195-85e8-6050a65315e3" ], "subscription_key": "string" }, "consumed": 0.5, "prompt": "string"}输入
设置 tier=Gen-2。Image-to-3D 提交一到五个 images,并可选提交 prompt;Text-to-3D 提交 prompt,并省略 images。
tier 为必传参数
请始终显式传入 tier=Gen-2。如果省略 tier,endpoint 会回退到 Regular 并生成 Gen-1/1.5 asset。
curl --fail-with-body --request POST 'https://api.hyper3d.com/api/v2/rodin' \
--header "Authorization: Bearer ${RODIN_API_KEY}" \
--form 'images=@./input.png' \
--form 'tier=Gen-2' \
--form 'mesh_mode=Raw' \
--form 'quality=medium'
HighPack 会把 pack 纹理从 2K 升级到 4K。对于 Gen-2,它不会改变几何体,也不会额外生成高模。
计费
| 项目 | 扣费 |
|---|---|
| Gen-2 基础生成 | 0.5 credits |
addons 包含 HighPack | +1.0 credits |
各项费用累加计算。基础生成仅需 0.5 credits;除上表列出的参数外,其他参数均不会产生额外费用。
响应与生命周期
{
"message": "Submitted.",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"jobs": {
"uuids": ["223e4567-e89b-12d3-a456-426614174000"],
"subscription_key": "subscription-key-from-generation-response"
},
"consumed": 0.5
}
使用 jobs.subscription_key 查询状态,使用顶层 uuid 下载结果。HTTP 201 仅表示 endpoint 已处理请求;只有在 error 缺失或为空且顶层 uuid 非空时,任务才算已受理。400 表示字段或文件无效,401 表示鉴权无效,429 表示触发限流。