> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Tripo3D P1 图生 3D

> Tripo3D P1 API 将参考图片转为 3D 物体，可选纹理并控制面数。

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口获取结果。

使用 Tripo3D P1 图生 3D 将参考图片转为 3D 物体，可选纹理并控制面数。

## 模型

* **tripo3d/p1/image-to-3d** - 根据图片生成 3D 模型。

## 功能

* 根据图片生成 3D 模型。
* `image_urls` 只接受 1 张图片。
* 从任务结果中获取模型资源，以及可用的预览图或辅助文件。

## 输出选项

### 面数上限

* `face_limit`：可选。设置面数上限。`48` 到 `20000` 的整数。

## 高级参数

`model` 和可选的 `callback_url` 放在请求根级。所有工作流参数（包括输出选项）都放在 `input` 内。

本工作流使用下列 `input` 字段。提供可公开访问的 HTTP(S) 图片 URL。

### 图片 URL

* `image_urls`：必填。提供可公开访问的图片 URL。只能提供 1 项，每项必须是 HTTP(S) URL。

### 纹理

* `texture`：可选。控制是否生成纹理。使用 `true` 或 `false`。默认：`true`。

### 模型种子

* `model_seed`：可选。设置模型生成种子。整数。

## 输出文件

* 读取返回的 `files` 数组中的每一项。
* 模型资源为 `file_type: "3d"`；预览图为 `file_type: "image"`。
* 辅助文件为 `file_type: "other"`。保留返回的每个文件，以及存在时的 `label`、`format`、`content_type`、`file_name` 和 `file_size` 元数据。
* 存在相应 label 时，使用 `model_glb` 文件做 3D 预览，并使用 `thumbnail` 文件作为封面图。


## OpenAPI

````yaml zh/api-manual/3d-series/tripo3d-p1-image-to-3d.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Tripo3D P1 图生 3D
  description: 使用 Tripo3D P1 将参考图片转为 3D 物体，可选纹理并控制面数。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - 3D Series
      summary: Tripo3D P1 图生 3D
      description: >-
        将下列工作流字段放在 input 内。读取 files 中的每一项：模型资源的 file_type=3d，预览图为 image，辅助文件为
        other。保留返回的文件元数据。
      operationId: submit_tripo3d_p1_image_to_3d
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              additionalProperties: true
              properties:
                model:
                  type: string
                  example: tripo3d/p1/image-to-3d
                input:
                  type: object
                  properties:
                    image_urls:
                      type: array
                      items:
                        type: string
                        format: uri
                        description: 图片 URL。
                      minItems: 1
                      maxItems: 1
                      description: 只能提供一个可公开访问的 HTTP(S) 图片 URL。
                    face_limit:
                      type: integer
                      minimum: 48
                      maximum: 20000
                      description: 目标面数，48 到 20000 的整数。
                    texture:
                      type: boolean
                      default: true
                      description: 为 true 时生成纹理。默认：true。
                    model_seed:
                      type: integer
                      description: 用于复现几何体的整数种子。
                  additionalProperties: false
                  required:
                    - image_urls
                callback_url:
                  type: string
                  nullable: true
                  description: >-
                    可选的公开 HTTP(S) 地址，用于接收任务完成通知。建议使用 HTTPS。省略、设为 null
                    或空字符串即不发送回调。
              description: model 和可选的 callback_url 放在请求根级。本工作流列出的字段放在 input 内。
            examples:
              basic:
                summary: 基础工作流
                value:
                  model: tripo3d/p1/image-to-3d
                  input:
                    image_urls:
                      - https://example.com/image.png
                    texture: true
              callback:
                summary: 接收完成回调
                value:
                  model: tripo3d/p1/image-to-3d
                  input:
                    image_urls:
                      - https://example.com/image.png
                    texture: true
                  callback_url: https://your-domain.com/callback
      responses:
        '200':
          description: 任务已提交
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - data
                properties:
                  code:
                    type: integer
                    enum:
                      - 200
                  data:
                    type: object
                    required:
                      - task_id
                      - status
                      - created_time
                    properties:
                      task_id:
                        type: string
                      status:
                        type: string
                        enum:
                          - not_started
                          - running
                          - finished
                          - failed
                      created_time:
                        type: string
                        format: date-time
              example:
                code: 200
                data:
                  task_id: task-unified-example
                  status: running
                  created_time: '2026-09-10T08:00:00'
        '400':
          description: 检查输入值、媒体可访问性和账户可用积分。
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '401':
          description: 凭证无效
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '403':
          description: 拒绝访问
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '404':
          description: 模型不存在或已停用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '408':
          description: 请求超时
          content:
            text/plain:
              schema:
                type: string
              example: Request timeout
        '422':
          description: JSON 无效或请求体不是对象
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '429':
          description: 超出频率限制或 API Key 积分限额
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '500':
          description: 内部错误
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '502':
          description: 无法创建生成任务
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '503':
          description: 所请求的模型暂时不可用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 使用 VIDGO_API_KEY。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.