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

Happy Horse · Reference to Video

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

ਮਾਡਲ id alibaba/happy-horse/reference-to-video
# 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/alibaba/happy-horse/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# 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"

ਇਹ ਬੇਨਤੀ: $1.40 1,400 API ਕ੍ਰੈਡਿਟ · ≈ ₽150.24 ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Alibaba ਹਵਾਲੇ ਤੋਂ ਵੀਡੀਓ ਹਵਾਲਾ ਇਨਪੁੱਟਲਿਪਸਿੰਕ3–15 s1080p ਤੱਕ #stylized#transform#lipsync

ਵਿਸ਼ੇ ਦੀ ਇਕਸਾਰਤਾ ਲਈ ਪ੍ਰੌਂਪਟ ਅਤੇ 1 ਤੋਂ 9 ਹਵਾਲਾ ਚਿੱਤਰਾਂ ਤੋਂ ਮੂਲ ਆਡੀਓ ਸਮੇਤ ਵੀਡੀਓ ਸਿਰਜਦਾ ਹੈ

Alibaba · ਵੀਡੀਓ

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

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

ਰਿਕਵੈਸਟ ਬਣਾਓ

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

•ਲੋੜੀਂਦਾ

ਬਣਾਈ ਜਾਣ ਵਾਲੀ ਵੀਡੀਓ ਦਾ ਵਰਣਨ ਕਰਨ ਵਾਲਾ ਟੈਕਸਟ, 2500 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ। ਚਿੱਤਰ ਵਿਸ਼ਿਆਂ ਦੀ ਪਛਾਣ `character1`, `character2` ਤੋਂ `character9` ਤੱਕ ਕਰੋ, ਜੋ `image_urls` ਵਿੱਚ ਉਨ੍ਹਾਂ ਦੀਆਂ ਸਥਿਤੀਆਂ ਨਾਲ ਮੇਲ ਖਾਂਦੇ ਹਨ।

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

ਵਿਸ਼ਾ-ਸੰਗਤੀ ਸੰਦਰਭ: 1–9 ਚਿੱਤਰ ਦਿਓ, ਹਰ ਇੱਕ 10 MB ਤੋਂ ਵੱਧ ਨਾ ਹੋਵੇ। JPEG, JPG, PNG, WEBP ਵਰਤੋ ਅਤੇ ਛੋਟੇ ਕਿਨਾਰੇ ਦੀ ਘੱਟੋ-ਘੱਟ ਲੰਬਾਈ 400 px ਹੋਵੇ; ਸਿਫ਼ਾਰਸ਼ੀ ਰੈਜ਼ੋਲਿਊਸ਼ਨ 720P ਜਾਂ ਵੱਧ ਹੈ।

duration 5 s

ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ, 3 ਤੋਂ 15 ਸਕਿੰਟ।

aspect_ratio ਡਿਫ਼ਾਲਟ 16:9

ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਦਾ ਪੱਖ ਅਨੁਪਾਤ।

resolution ਡਿਫ਼ਾਲਟ 1080p

ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਲਈ ਰੈਜ਼ੋਲਿਊਸ਼ਨ ਪੱਧਰ।

ਉੱਨਤ seed · enable_safety_checker

ਦੁਹਰਾਏ ਜਾ ਸਕਣ ਵਾਲੇ ਨਤੀਜਿਆਂ ਲਈ ਬੇਤਰਤੀਬਾ ਸੀਡ, 0 ਤੋਂ 2147483647 ਤੱਕ।

POST /run/alibaba/happy-horse/reference-to-video?wait=20 ਕੋਟ → $1.40
# 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/alibaba/happy-horse/reference-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

# 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 ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Happy Horse · Reference to Video ਬਾਰੇ

`prompt` ਅਤੇ `image_urls` ਵਿੱਚ 1 ਤੋਂ 9 ਹਵਾਲਾ ਚਿੱਤਰਾਂ ਤੋਂ ਵੀਡੀਓ ਸਿਰਜਦਾ ਹੈ। ਵਿਸ਼ਿਆਂ ਦੇ ਨਾਮ ਪ੍ਰੌਂਪਟ ਵਿੱਚ ਚਿੱਤਰਾਂ ਦੇ ਕ੍ਰਮ ਅਨੁਸਾਰ character1 ਤੋਂ character9 ਤੱਕ ਦਿੱਤੇ ਜਾਂਦੇ ਹਨ। `duration` 3 ਤੋਂ 15 ਸਕਿੰਟ, `resolution` 720p ਜਾਂ 1080p, ਅਤੇ `aspect_ratio` 16:9, 9:16, 1:1, 4:3 ਜਾਂ 3:4 ਹੁੰਦਾ ਹੈ। ਪ੍ਰੌਂਪਟ 2500 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ ਹੈ।

ਪੈਰਾਮੀਟਰ

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

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਬਣਾਈ ਜਾਣ ਵਾਲੀ ਵੀਡੀਓ ਦਾ ਵਰਣਨ ਕਰਨ ਵਾਲਾ ਟੈਕਸਟ, 2500 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ। ਚਿੱਤਰ ਵਿਸ਼ਿਆਂ ਦੀ ਪਛਾਣ `character1`, `character2` ਤੋਂ `character9` ਤੱਕ ਕਰੋ, ਜੋ `image_urls` ਵਿੱਚ ਉਨ੍ਹਾਂ ਦੀਆਂ ਸਥਿਤੀਆਂ ਨਾਲ ਮੇਲ ਖਾਂਦੇ ਹਨ।
image_urlsਲੋੜੀਂਦਾ images
ਕਿਸਮurl[] · image
ਵਿਸ਼ਾ-ਸੰਗਤੀ ਸੰਦਰਭ: 1–9 ਚਿੱਤਰ ਦਿਓ, ਹਰ ਇੱਕ 10 MB ਤੋਂ ਵੱਧ ਨਾ ਹੋਵੇ। JPEG, JPG, PNG, WEBP ਵਰਤੋ ਅਤੇ ਛੋਟੇ ਕਿਨਾਰੇ ਦੀ ਘੱਟੋ-ਘੱਟ ਲੰਬਾਈ 400 px ਹੋਵੇ; ਸਿਫ਼ਾਰਸ਼ੀ ਰੈਜ਼ੋਲਿਊਸ਼ਨ 720P ਜਾਂ ਵੱਧ ਹੈ।
aspect_ratioਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ16:9
16:99:161:14:33:4
ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਦਾ ਪੱਖ ਅਨੁਪਾਤ।
resolutionਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ1080p
720p1080p
ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਲਈ ਰੈਜ਼ੋਲਿਊਸ਼ਨ ਪੱਧਰ।
durationਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ5
3456789101112131415
ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ, 3 ਤੋਂ 15 ਸਕਿੰਟ।
seedਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
ਦੁਹਰਾਏ ਜਾ ਸਕਣ ਵਾਲੇ ਨਤੀਜਿਆਂ ਲਈ ਬੇਤਰਤੀਬਾ ਸੀਡ, 0 ਤੋਂ 2147483647 ਤੱਕ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਹਰ ਬੇਨਤੀ 'ਤੇ ਲਾਗੂ ਕੀਤੀ ਜਾਣ ਵਾਲੀ ਇਨਪੁੱਟ ਅਤੇ ਆਉਟਪੁੱਟ ਦੋਵਾਂ ਦੀ ਮਾਡਰੇਸ਼ਨ, ਜਦੋਂ ਤੱਕ ਖਾਤਾ ਇਸਨੂੰ ਬੰਦ ਕਰਨ ਲਈ ਅਧਿਕਾਰਤ ਨਾ ਹੋਵੇ ਅਤੇ ਵਿਕਲਪ ਬੰਦ ਨਾ ਕੀਤਾ ਗਿਆ ਹੋਵੇ।
ਲੋੜੀਂਦਾ ਕੈਨੋਨਿਕਲ ਨਾਮ, ਇਹ ਵੀ ਸਵੀਕਾਰਿਆ ਜਾਂਦਾ ਹੈ

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

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/happy-horse/reference-to-video",
  "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": 1400,
    "usd": "1.40",
    "charged": 1400,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42
  },
  "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, width, height, fps, duration, num_frames}ਸਿਰਜਣਾ ਨਾਲ ਤਿਆਰ ਕੀਤੀ ਵੀਡੀਓ ਫ਼ਾਈਲ।
seed
integerਸਿਰਜਣਾ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤਾ ਗਿਆ ਸੀਡ ਮੁੱਲ।

ਹੋਰ ਮਾਡਲ: ਹਵਾਲੇ ਤੋਂ ਵੀਡੀਓ

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