ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Hunyuan Video Foley

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id hunyuan-video-foley
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/hunyuan-video-foley?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "text_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਉਦਾਹਰਨ ਵਰਗੀਆਂ ਫ਼ਾਈਲਾਂ: $0.10 100 API ਕ੍ਰੈਡਿਟ · ≈ ₽10.76 ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਮਾਪੀਆਂ ਜਾਂਦੀਆਂ ਹਨ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Tencent ਵੀਡੀਓ ਤੋਂ ਆਡੀਓ #video-to-video#add-sound

ਟੈਕਸਟ ਵੇਰਵੇ ਤੋਂ ਮੌਜੂਦਾ ਵੀਡੀਓ ਵਿੱਚ ਤਿਆਰ ਕੀਤੇ ਸਾਊਂਡ ਇਫ਼ੈਕਟ ਜੋੜਦਾ ਹੈ

Tencent · ਵੀਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ

ਤਿਆਰ ਕੀਤੇ ਜਾਣ ਵਾਲੇ ਆਡੀਓ ਦਾ ਵਰਣਨ ਕਰਨ ਵਾਲਾ ਵਿਕਲਪਿਕ ਟੈਕਸਟ।

•ਲੋੜੀਂਦਾ video_url
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਆਡੀਓ ਸਿਰਜਣਾ ਲਈ ਸਰੋਤ ਵਜੋਂ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਵੀਡੀਓ URL।

ਉੱਨਤ negative_prompt · guidance_scale · num_inference_steps · seed · enable_safety_checker
ਡਿਫ਼ਾਲਟ noisy, harsh

ਬਾਹਰ ਰੱਖਣ ਵਾਲੀਆਂ ਆਡੀਓ ਵਿਸ਼ੇਸ਼ਤਾਵਾਂ ਦਰਸਾਉਣ ਵਾਲਾ ਨੈਗੇਟਿਵ ਪ੍ਰੌਂਪਟ।

ਡਿਫ਼ਾਲਟ 4.5

ਆਡੀਓ ਸਿਰਜਣਾ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤੀ ਗਈ guidance ਦਾ ਸਕੇਲ।

ਡਿਫ਼ਾਲਟ 50

ਸਿਰਜਣਾ ਦੌਰਾਨ ਵਰਤੇ ਗਏ ਇਨਫ਼ਰੈਂਸ ਕਦਮਾਂ ਦੀ ਗਿਣਤੀ।

ਬੇਤਰਤੀਬ ਸੀਡ ਜੋ ਸਿਰਜਣਾ ਨੂੰ ਦੁਹਰਾਉਣਯੋਗ ਬਣਾਉਂਦੀ ਹੈ।

POST /run/hunyuan-video-foley?wait=20 ਕੋਟ → $0.10
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/hunyuan-video-foley?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "text_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Hunyuan Video Foley ਬਾਰੇ

`text_prompt` ਅਤੇ ਵਿਕਲਪਿਕ `negative_prompt` ਦੇ ਨਿਰਦੇਸ਼ਾਂ ਅਨੁਸਾਰ `video_url` ਵਾਲੀ ਵੀਡੀਓ ਲਈ ਆਡੀਓ ਬਣਾਉਂਦਾ ਹੈ; `negative_prompt` ਦਾ ਡਿਫ਼ਾਲਟ ਸ਼ੋਰ ਵਾਲੀ ਜਾਂ ਤਿੱਖੀ ਆਵਾਜ਼ ਤੋਂ ਬਚਣਾ ਹੈ। `guidance_scale` 1 ਤੋਂ 10 ਅਤੇ `num_inference_steps` 10 ਤੋਂ 100 ਤੱਕ ਹੁੰਦੇ ਹਨ। ਆਡੀਓ ਸਮੇਤ ਵੀਡੀਓ ਵਾਪਸ ਕਰਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਕੈਨੋਨਿਕਲ ਨਾਮ ਜਾਂ ਨੇਟਿਵ ਨਾਮ ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਭੇਜੋ, ਦੋਵੇਂ ਨਹੀਂ। ਕੈਨੋਨਿਕਲ ਨਾਮ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
video_urlਲੋੜੀਂਦਾ video
ਕਿਸਮurl · video
ਆਡੀਓ ਸਿਰਜਣਾ ਲਈ ਸਰੋਤ ਵਜੋਂ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਵੀਡੀਓ URL।
text_promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਤਿਆਰ ਕੀਤੇ ਜਾਣ ਵਾਲੇ ਆਡੀਓ ਦਾ ਵਰਣਨ ਕਰਨ ਵਾਲਾ ਵਿਕਲਪਿਕ ਟੈਕਸਟ।
negative_promptਵਿਕਲਪਿਕ
ਕਿਸਮstring
ਡਿਫ਼ਾਲਟnoisy, harsh
ਬਾਹਰ ਰੱਖਣ ਵਾਲੀਆਂ ਆਡੀਓ ਵਿਸ਼ੇਸ਼ਤਾਵਾਂ ਦਰਸਾਉਣ ਵਾਲਾ ਨੈਗੇਟਿਵ ਪ੍ਰੌਂਪਟ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
false ਸੈੱਟ ਕਰਕੇ ਸਕ੍ਰੀਨਿੰਗ ਨੂੰ ਢਿੱਲਾ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ, ਜੇ ਕਾਲਰ ਅਧਿਕਾਰਤ ਹੋਵੇ।
guidance_scaleਵਿਕਲਪਿਕ
ਕਿਸਮnumber
ਡਿਫ਼ਾਲਟ4.5
1 – 10
ਆਡੀਓ ਸਿਰਜਣਾ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤੀ ਗਈ guidance ਦਾ ਸਕੇਲ।
num_inference_stepsਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ50
10 – 100
ਸਿਰਜਣਾ ਦੌਰਾਨ ਵਰਤੇ ਗਏ ਇਨਫ਼ਰੈਂਸ ਕਦਮਾਂ ਦੀ ਗਿਣਤੀ।
seedਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
ਬੇਤਰਤੀਬ ਸੀਡ ਜੋ ਸਿਰਜਣਾ ਨੂੰ ਦੁਹਰਾਉਣਯੋਗ ਬਣਾਉਂਦੀ ਹੈ।
ਲੋੜੀਂਦਾ ਕੈਨੋਨਿਕਲ ਨਾਮ, ਇਹ ਵੀ ਸਵੀਕਾਰਿਆ ਜਾਂਦਾ ਹੈ

ਫ਼ਾਈਲ ਪੈਰਾਮੀਟਰ ਜਨਤਕ https:// URL, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ file_url ਨੂੰ ਸਵੀਕਾਰਦੇ ਹਨ। ਫ਼ਾਈਲਾਂ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "hunyuan-video-foley",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "text_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
video
object {url, content_type, file_name, file_size}ਆਪਣੇ ਆਡੀਓ ਸਮੇਤ ਸਿਰਜੇ ਗਏ ਵੀਡੀਓਆਂ ਵਾਲੀ ਸੂਚੀ।

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/hunyuan-video-foley.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt