# H3.5 3D 生成模型（Preview）

**Base URL:** `https://openapi.tripo3d.ai/v3`

**Endpoint:** `POST /generation/{text-to-model | image-to-model | multiview-to-model}`

**预览版说明：**H3.5（v3.5-20261108）当前处于公开预览（Preview）阶段，模型能力、参数行为及预览期价格在正式版发布前可能调整。
H3.5（版本标识 v3.5-20261108）是新一代 H 系列 3D 生成模型，提供更高的三角面数上限，并新增输入图超分开关 upscale。H3.5 复用现有的 3 个 3D 生成异步接口，只需在请求体中将 model 设为 v3.5-20261108：- **文生 3D：**POST /v3/generation/text-to-model（type: text_to_model）— 见 [文生 3D](https://developers.tripo3d.ai/zh/docs/generation-text-to-model/standard)
- **图生 3D：**POST /v3/generation/image-to-model（type: image_to_model）— 见 [图生 3D](https://developers.tripo3d.ai/zh/docs/generation-image-to-model/standard)
- **多视图生 3D：**POST /v3/generation/multiview-to-model（type: multiview_to_model）— 见 [多视图生 3D](https://developers.tripo3d.ai/zh/docs/generation-multiview-to-model/standard)
下方仅列出 H3.5 新增或上限变化的参数；prompt、input、inputs、texture、pbr、texture_quality、texture_version、generate_parts、export_orientation 等其余参数沿用对应公开生成文档页的约定。**注意：**quad 及 smart_low_poly 参数在当前 H3.5 预览版本中不支持。
计费说明（预览期价格）H3.5 当前执行**预览期价格**，文生 3D、图生 3D、多视图生 3D 三个接口**同价**，价格仅取决于纹理档位与几何精度（单位：积分 Credits，适用账号既有的批次折扣或 VIP 类目折扣）：| 纹理档位 | 触发条件 | 标准几何 | 高精度几何 | 
| 无纹理 | texture=false 及 pbr=false | **30** | **45** | 
| standard（默认） | 不传 texture_quality，或 texture_quality=standard | **40** | **55** | 
| fast | texture_quality=fast（在贴图 v3.5-20260815 下执行，省略 texture_version 时默认即为该版本；旧版 v2.5-20250123 已下架并返回 400 / 2015） | **40** | **55** | 
| detailed | texture_quality=detailed | **50** | **65** | 
| extreme | texture_quality=extreme | **60** | **75** | 

- generate_parts 功能为 true 时，额外消耗 **30 积分**。
- generate_parts 与 texture、pbr 不兼容：generate_parts=true 时，其他两个参数需设置为 false。
- geometry_quality=detailed 在 H3.5 上固定加收 **+15 积分**（已含在上表最后一列中）。
- upscale=true 在 H3.5 预览期均**不额外加价**。
- 提交阶段校验失败不预扣；提交后若任务失败或过期，预扣积分自动全额退回。预览期价格调整为正式价格前会提前公告通知。

参数校验错误码（HTTP 400 / code 1004，预扣前返回）- 缺少 model：model is required, allowed values: P1-20260311, P2-20260801, v3.0-20250812, v3.1-20260211, v3.5-20261108
- 非法 model：invalid model 'v3.1-20261108', allowed values: P1-20260311, P2-20260801, v3.0-20250812, v3.1-20260211, v3.5-20261108
- 非 H3.5 模型传 upscale=true：upscale is only supported by model v3.5-20261108, got model v3.1-20260211
- upscale 非布尔值：upscale must be a boolean, got true
- face_limit 非整数：face_limit must be an integer, got 1.5
- 三角面标准几何超 2,000,000：face_limit must be at most 2000000 for model v3.5-20261108 (triangle mesh, geometry_quality=standard), got 2000001
- 三角面高精度几何超 5,000,000：face_limit must be at most 5000000 for model v3.5-20261108 (triangle mesh, geometry_quality=detailed), got 5000001
- generate_parts=true 与纹理冲突：generate_parts is incompatible with texture; set texture=false to generate parts
- texture_quality=fast 搭配已下架 v2.5 贴图版本（400 / 2015）：The version has been deprecated, please try higher version
鉴权失败、余额不足（403 / 2010）、限流（429 / 2000）、内容审核拒绝（400 / 2008）等通用错误请参考 [错误处理](https://developers.tripo3d.ai/zh/docs/error-handling)。



## Request Parameters

### model

- **Type:** string
- **Required:** 必选

三个生成接口均必须显式传入，不设回退默认值。使用 H3.5 时固定传 `v3.5-20261108`。
### upscale

- **Type:** boolean
- **Required:** 可选
- **Default:** `false`

生成前对低分辨率输入做超分。仅 `model=v3.5-20261108` 允许传 `true`，其他模型传 `true` 返回 `400 / 1004`。

必须为布尔值（传字符串 `"true"` 等返回 `400 / 1004`）；省略或传 `false` 时不启用，旧模型传 `false` 会被忽略。放在 `parameters` 扩展字段内同样校验。
### geometry_quality

- **Type:** string
- **Required:** 可选
- **Default:** `standard`

几何精度档位：`standard`（标准几何）或 `detailed`（高精度几何）。仅精确值 `detailed` 生效并适用高精度面数上限与高精度计费（+15 积分）。
### face_limit

- **Type:** integer
- **Required:** 可选

目标面数限制，必须为整数。H3.5 提高了三角面数上限（见下表）；超出上限在预扣前直接返回 `400 / 1004`；建议下限不要低于 `20,000`。若同时通过 `parameters.face_limit` 传入，以 `parameters` 中的值为准并同样校验。

| 网格类型 | standard（默认） | detailed | 
| 纯三角面 | **2,000,000** | **5,000,000** | 



## Response Fields

### model_url

- **Type:** string
- **Required:** 必选

生成的 3D 模型签名下载链接。
### rendered_image_url

- **Type:** string
- **Required:** 必选

预览渲染图签名链接。
### generated_image_url

- **Type:** string
- **Required:** 可选

`text_to_model` 任务返回；`image_to_model` 与 `multiview_to_model` 不包含该字段。

## Request Example

### 文生 3D · 无纹理（30 积分）

```
curl -X POST "https://openapi.tripo3d.ai/v3/generation/text-to-model" \
  -H "Authorization: Bearer tsk_<your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a miniature ceramic teapot with a curved spout",
    "model": "v3.5-20261108",
    "texture": false,
    "pbr": false
  }'
```

### 文生 3D · 默认纹理 + upscale（40 积分）

```
curl -X POST "https://openapi.tripo3d.ai/v3/generation/text-to-model" \
  -H "Authorization: Bearer tsk_<your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "a vintage brass compass with engraved markings",
    "model": "v3.5-20261108",
    "upscale": true
  }'
```

### 图生 3D · file_token（40 积分）

```
curl -X POST "https://openapi.tripo3d.ai/v3/generation/image-to-model" \
  -H "Authorization: Bearer tsk_<your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "file_<your-upload-token>",
    "model": "v3.5-20261108"
  }'
```

### 多视图生 3D · 无纹理（30 积分）

```
curl -X POST "https://openapi.tripo3d.ai/v3/generation/multiview-to-model" \
  -H "Authorization: Bearer tsk_<your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": [
      { "front": "file_<front-image-token>" },
      { "left": "file_<left-image-token>" },
      { "back": "file_<back-image-token>" },
      { "right": "file_<right-image-token>" }
    ],
    "model": "v3.5-20261108",
    "texture": false,
    "pbr": false
  }'
```


## Response Example

### 创建任务

```json
{
  "code": 0,
  "status": "success",
  "data": {
    "task_id": "00000000-0000-0000-0000-000000000000",
    "type": "text_to_model",
    "status": "queued"
  }
}
```

### 查询任务成功（GET /v3/tasks/{task_id}）

```json
{
  "code": 0,
  "status": "success",
  "data": {
    "task_id": "00000000-0000-0000-0000-000000000000",
    "type": "text_to_model",
    "status": "success",
    "progress": 100,
    "input": {
      "model_version": "v3.5-20261108",
      "upscale": true
    },
    "output": {
      "model_url": "https://cdn.example.com/output/model.glb",
      "rendered_image_url": "https://cdn.example.com/output/preview.webp",
      "generated_image_url": "https://cdn.example.com/output/generated.webp"
    },
    "created_at": "2026-12-01T00:00:00Z",
    "completed_at": "2026-12-01T00:02:10Z",
    "credits_consumed": 40.00,
    "cost_amount": "0.40",
    "currency": "USD",
    "files_expired": false,
    "files_expire_at": "2026-12-09T00:00:00Z"
  }
}
```
