tencent cloud

APIs

CreateAigcHunyuan3DTask

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-09-18 16:00:24

1. API Description

Domain name for API request: vod.intl.tencentcloudapi.com.

This API is used to create AIGC Hunyuan 3D tasks.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CreateAigcHunyuan3DTask.
Version Yes String Common Params. The value used for this API: 2018-07-17.
Region No String Common Params. This parameter is not required.
SubAppId No Integer

On-demand application ID. For customers who activate on-demand services from December 25, 2023, this field must be filled with the app ID to access resources in on-demand applications (whether the default application or a newly created application).

ImageInfos.N No Array of AigcHunyuan3DReferenceImageInfo

Reference image information for generating a 3D model.

Input parameter limitation: The maximum array length is 1.

The three input parameters ImageInfos, MultiViewImageInfos, and Prompt are mutually exclusive. One and only one must be filled in.

MultiViewImageInfos.N No Array of AigcHunyuan3DMultiViewImageInfo

Multi-perspective image information used to generate a 3D model.

Input limits: The array length must be between 2 and 8, and the front perspective must be included.

The three input parameters ImageInfos, MultiViewImageInfos, and Prompt are mutually exclusive with each other. One and only one must be filled in.

Prompt No String

Prompt for generating a 3D model.

Input parameter limit: up to 1024 utf-8 characters.

ImageInfos, MultiViewImageInfos, and Prompt are mutually exclusive. One and only one must be filled in.

GenerateType No String

Generation Type.

Enumeration values:

  • Normal: Generate a complete 3D asset (geometry + texture);
  • Geometry: Generate only the geometry (no texture, faster output speed);
  • Texture: Generate only the texture (requires filling in MeshInfos)

Default value: Normal

MeshInfos.N No Array of AigcHunyuan3DMeshInfo

Reference 3D model used to generate a 3D model.

Input parameter limit: when MeshInfos is filled in, GenerateType must be Texture (texture scenario).

EnablePBR No String

Whether to enable output PBR materials.

Enumeration values:

  • Enabled: enable;
  • Disabled: disable.

Default value: Disabled

FaceCount No Integer

Number of patches. This parameter is valid only when GenerateType is Normal or Geometry.

Value range: [3000, 1500000]

Default value: 500000

KeepUV No String

Whether to retain UV unfolding.

Enumeration values:

  • Enabled: retained;
  • Disabled: not retain.

Default value: Disabled

ResultFormat No String

Result format. An extra output format in addition to the default return of obj and glb.

Enumeration values:

  • FBX: FBX format file.
Seed No Integer

Random Seed. Results are reproducible with the same Seed input.

Value range: [0, 2147483647]

Style No String

Style control words.

OutputConfig No AigcHunyuan3DOutputConfig

Configuration of the output media file of the task.

SessionId No String

Identifier for deduplication. If a request with the same identifier has been sent within the past three days, an error is returned for the current request. The maximum length is 50 characters. If this is not specified or left empty, deduplication is not performed.

SessionContext No String

Source context, used to pass through user request information. The value of this field will be returned in the audio and video quality revival completion callback. It can contain up to 1000 characters.

TasksPriority No Integer

Task priority. The higher the value, the higher the priority. The value range is from -10 to 10. If left blank, the default value is 0.

3. Output Parameters

Parameter Name Type Description
TaskId String

Task ID.

RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Text-to-3D

Generate 3D through prompt content

Input Example

POST / HTTP/1.1
Host: vod.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAigcHunyuan3DTask
<Common request parameters>

{
    "SubAppId": 250000002,
    "Prompt": "a warrior holding a sword",
    "KeepUV": "Enabled",
    "Style": "cyberpunk",
    "OutputConfig": {
        "StorageMode": "Temporary"
    },
    "SessionId": "my*******Id",
    "SessionContext": "*********Context",
    "TasksPriority": 1
}

Output Example

{
    "Response": {
        "TaskId": "251******-AigcHunyuan3DTask-7bf97*************afcdb0f0342fc2t",
        "RequestId": "a92d6730-19ec-4c3f-b579-44097aab0fc2"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
FailedOperation.InvalidVodUser The VOD service is not activated.
InternalError Internal error.
InvalidParameter Parameter error.
InvalidParameterValue Parameter value error.
InvalidParameterValue.FileId FileId does not exist.
InvalidParameterValue.SessionContextTooLong SessionContext is too long.
InvalidParameterValue.SessionIdTooLong SessionId is too long.
InvalidParameterValue.SubAppId Parameter value error: app ID.
LimitExceeded.Quota The quota limit is exceeded.
UnauthorizedOperation Unauthorized operation.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック