In the development of DeepSeek Harness (DSH), integrating external generative models typically involves three steps: task submission, status polling, and result download. Tencent Cloud Hunyuan 3D (ai3d) provides text-to-3D and image-to-3D capabilities. The jjtovo/dsh-hunyuan-3d plugin wraps this process, turning the model API calls into tool functions that DSH can use directly. It also writes the downloaded assets to local file paths for consumption by downstream tools (such as Blender).
Core Features¶
This plugin mainly handles the following tasks:
- Task submission and execution: Supports submitting 3D modeling tasks via text prompts or image inputs.
- Result management: Automatically polls task status and downloads asset files to the local machine when tasks complete.
- Dual API modes: Supports both the OpenAI-compatible interface and Tencent Cloud native API.
- Concurrency and queue control: Built-in local concurrency logic manages job slots and queueing behavior with the server.
- Credential management: Integrates with Host-side credential storage; supports environment variables or Host credential configuration.
Configuration and Credentials¶
The plugin is configured through a settings card. Go to Settings → Plugins → Configurable and find the “Tencent Cloud Hunyuan 3D” card.
Credential Configuration¶
Credential values are stored only on the Host and are not sent to the browser. Configure them as follows:
- OpenAI-compatible mode: Configure the API Key (obtained from the console’s “API KEY” page).
- Native cloud API mode: Configure
SecretIdandSecretKey(and optionally an STS Token).
Credential precedence: Host credential storage > environment variables.
General Settings¶
Adjust the following parameters in the settings card. These configurations are written under the hunyuan-3d namespace in settings.yaml:
- Concurrency control:
maxConcurrency: Maximum number of concurrent jobs allowed locally; default is 3.queueLimit: Maximum number of jobs allowed to wait in the queue; default is 32.queueTimeoutMs: Queue wait timeout in milliseconds; default is 600000.
- Polling and timeouts:
pollIntervalMs: Interval for polling task status.defaultWaitMs: Default time to wait for results.httpTimeoutMs: HTTP request timeout.
- Result storage:
resultDir: Directory for storing result files.
API Mode Overview¶
Tencent Cloud Hunyuan 3D service is exposed through two different interfaces; the plugin supports both and allows switching in settings:
| Feature | OpenAI-compatible mode (default) | Native Cloud API mode |
|---|---|---|
| Base URL | https://api.ai3d.cloud.tencent.com |
https://ai3d.tencentcloudapi.com |
| Authentication | Authorization: <api key> |
TC3-HMAC-SHA256 (SecretId/SecretKey) |
| Supported modes | pro |
pro and rapid |
Concurrency and Queue Strategy¶
The server limits to at most 3 concurrent jobs. Requests beyond this limit are intercepted by the local queue to avoid invalid API calls.
- Submission limit: When concurrency reaches
maxConcurrency, new submission requests are rejected withconcurrency-queue-full. - Queue waiting: Requests within
queueLimitenter the waiting queue. If the wait exceedsqueueTimeoutMs, the request fails withconcurrency-wait-timeout. - Resource release: After task submission, even if
wait: falsemode is used (returns immediately), the occupied concurrency slot is held untilhunyuan_3d_querydetects task completion (DONEorFAIL).
Typical Usage¶
The plugin registers two tool functions:
hunyuan_3d_model: Submit a task and by default wait for result download.- Input: Text prompt or image URL.
- Behavior: By default, waits for task completion, downloads files, and returns local file paths.
hunyuan_3d_query: Query task status or resume results.- Input: Task ID.
- Behavior: Used to resume tasks previously submitted with
wait: falseor to check background task progress.
Notes¶
- Result validity: Generated result URLs are valid for 24 hours. If a task completed a long time ago, you must re-run it; old results cannot be re-downloaded directly.
- Prerequisites:
- Tencent Cloud Hunyuan 3D service must be activated.
- Node.js version must be >= 22.19.0.
- Environment dependency: The plugin relies on Host-side credential storage; ensure the Host process has permissions to read and write credential configurations.
References¶
- Plugin directory: SkillHub catalog page
- Source repository: GitHub - jjtovo/dsh-hunyuan-3d