tencent/hunyuan-portrait
Hunyuan Portrait by Tencent - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation.
PNG, JPEG, WebP, or GIF · 20 MiB maximum
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runtencent/hunyuan-portraitInput Schema
2 parameters · 1 required · 1 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
image | string | Required | The URL of the source image. |
video | string | Optional | The URL of the driving video. |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "tencent/hunyuan-portrait",
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-portrait/input_image_0.png",
"video": "https://static.sandbase.ai/examples/tencent/hunyuan-portrait/input_video_1.mp4",
"prompt": "a beautiful sunset over mountains"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Hunyuan Portrait
Hunyuan Portrait specializes in the tencent/hunyuan-portrait workflow for hunyuan portrait work in video production. Hunyuan Portrait by Tencent - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation. Teams can place this named operation inside review, asset preparation, and publishing pipelines while keeping the original request attached to every result. The endpoint is especially useful when a project has a defined transformation goal and needs a repeatable request contract instead of an ad-hoc desktop step. Because tencent/hunyuan-portrait is a separate catalog entry, evaluations should use this route’s own inputs, output expectations, and billing behavior. This is the creative remit of the exact endpoint, not a family-wide promise.
Hunyuan Portrait exposes image, video as its documented request surface. The mandatory portion is image. image controls the URL of the source image; video controls the URL of the driving video. For example, the route documentation includes “https://static.sandbase.ai/examples/tencent/hunyuan-portrait/input_image_0.png”. Applications can submit that exact shape asynchronously, retain the chosen arguments in job metadata, and collect the resulting media URL for review or publishing.
Highlights
- Portrait animation. Hunyuan Portrait turns a supplied person image or avatar asset into a moving on-camera performance.
- Speech-led facial motion. Audio or written dialogue drives mouth movement and expressive timing for a more convincing presenter result.
- Recognizable identity. The workflow uses the source portrait as its anchor so the generated performance retains the intended subject.
- Presenter-content workflow. It fits explainers, announcements, localized clips, and character-led media that do not require filming each delivery.
Pricing
| Billing option | Price |
|---|---|
| Billing formula | params.duration <= 5 ? 0.4 : 0.4 + (params.duration - 5) * 0.08 |
| Catalog base price | $0.400000 |
When to Use
| Scenario | Why it fits |
|---|---|
| Choose Hunyuan Portrait | Use it when the job specifically calls for hunyuan portrait and the route’s documented input contract matches assets already available in your workflow. |
| Keep the request reproducible | Use the required image explicitly, then record optional choices alongside the prompt for repeatable reruns. |
| Build controlled creative variations | Change one declared control at a time when comparing framing, format, duration, resolution, style, or other route-supported output decisions. |
| Integrate asynchronous delivery | Use this endpoint when an application can submit work, track completion, and collect the returned media URL instead of requiring an immediate inline artifact. |
| Validate before a large batch | Run representative prompts and source assets first, confirm the visual or audio behavior, then lock the successful request shape for scaled production. |
Prompt Guide
Lead with the subject or transformation, then add the composition, environment, style, lighting, motion, voice, or fidelity details relevant to this route. Keep every parameter inside the documented schema; the example below uses only fields declared for tencent/hunyuan-portrait.
{
"image": "https://static.sandbase.ai/examples/tencent/hunyuan-portrait/input_image_0.png"
}
Technical Specs
| Specification | Details |
|---|---|
| Model ID | tencent/hunyuan-portrait |
| Execution mode | async |
| Task type | video |
image | string · required |
video | string · optional |

