用量查询
POST/model/conversions

转换圆雕 3D 格式

将当前 API 账户下已成功的圆雕任务转换为 GLB、OBJ、FBX、USDZ、STL 或 3MF;每次接受转换固定扣 10 API 点。

算力消耗

10 算力点
调用该接口消耗 10 算力点

代码示例

curl --request POST \
  --url 'https://www.cjzmai.com/v2/model/conversions' \
  --header 'Authorization: Bearer sk-your-api-key' \
  --header 'Content-Type: application/json' \
  --data '{
  "source": {
    "job_id": "task_..."
  },
  "format": "stl"
}'

请求参数

source.job_idstring必填
示例: task_...

Succeeded model job id returned by POST /model/jobs

formatglb | obj | fbx | usdz | stl | 3mf必填
示例: stl

Target model format. If you only need the original GLB, use the job artifacts endpoint instead of creating a conversion.

Idempotency-Keyheader可选
默认: 可不填示例: conversion-request-001

Optional; reuse for an exact retry

响应示例

200application/json
{
  "id": "conv_...",
  "object": "model_conversion",
  "status": "queued",
  "product": "model",
  "mode": "model_conversion",
  "source_job_id": "task_...",
  "format": "stl",
  "points": 10,
  "progress": 0,
  "artifacts": []
}
关注我们
抖音小红书快手哔哩哔哩今日头条
© 2024 杭州仓颉造梦数字科技有限公司

浙ICP备2024069408号-1

浙公网安备33011302001161号