Saltar al cuntegna

Happy Horse · Reference to Video

Integrar

ID dal model 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"

Questa dumonda: $1,40 1 400 credits API · ≈ ₽150,61 Lantschar sin questa pagina

Obtegna ina clav API
Alibaba Referenza a video Inputs da referenzaLipsync3–15 sfin a 1080p #stylized#transform

Generescha video cun audio nativ a partir d'in prompt e da 1 fin 9 maletgs da referenza per mantegnair la consistenza dals sujets

Alibaba · Video

Tes emprim resultat vegn qua

Construis ina dumonda sutvart e l'exequescha cun tia clav API. Outputs vegnan copiads en nossa memorisaziun, conservads per adina u 7 dis gratuitamain.

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori

Text che descriva il video da crear, limità a 2500 caracters. Identifitgescha ils subjects dal maletg cun `character1`, `character2`, fin a `character9`, tenor lur posiziuns en `image_urls`.

•obligatori image_urls
Trametta in datoteca u

Referenzas per la consistenza dal subject: furnescha 1–9 maletgs, mintgin maximalmain 10 MB. Utilisescha JPEG, JPG, PNG, WEBP cun ina curta chantunada da minimum 400 px; la resoluziun recumandada è 720P u pli auta.

duration 5 s

Durada dal video final, da 3 fin 15 secundas.

aspect_ratio standard 16:9

Relaziun d'aspect dal video final.

resolution standard 1080p

Nivel da resoluziun dal video final.

Avanzà seed · enable_safety_checker

Seed casual che permetta resultats reproducibels, da 0 fin 2147483647.

POST /run/alibaba/happy-horse/reference-to-video?wait=20 calculaziun → $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"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Happy Horse · Reference to Video

Crea in video a partir d'in `prompt` e da 1 fin 9 maletgs da referenza en `image_urls`. Ils sujets vegnan numnads en il prompt sco character1 fin character9, en l'urden dals maletgs. `duration` è da 3 fin 15 secundas, `resolution` è 720p u 1080p, e `aspect_ratio` è 16:9, 9:16, 1:1, 4:3 u 3:4. Il prompt è limità a 2500 caracters.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Text che descriva il video da crear, limità a 2500 caracters. Identifitgescha ils subjects dal maletg cun `character1`, `character2`, fin a `character9`, tenor lur posiziuns en `image_urls`.
image_urlsobligatori images
Tipurl[] · image
Referenzas per la consistenza dal subject: furnescha 1–9 maletgs, mintgin maximalmain 10 MB. Utilisescha JPEG, JPG, PNG, WEBP cun ina curta chantunada da minimum 400 px; la resoluziun recumandada è 720P u pli auta.
aspect_ratioopziunal
Tipenum
Standard16:9
16:99:161:14:33:4
Relaziun d'aspect dal video final.
resolutionopziunal
Tipenum
Standard1080p
720p1080p
Nivel da resoluziun dal video final.
durationopziunal
Tipenum
Standard5
3456789101112131415
Durada dal video final, da 3 fin 15 secundas.
seedopziunal
Tipinteger | null
Seed casual che permetta resultats reproducibels, da 0 fin 2147483647.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
Moderaziun da l'input e l'output, applitgada a mintga dumonda, nun che il conto saja autorisà da la deactivar e l'opziun saja deactivada.
obligatori Num canonic, er acceptà

Ils parameters da datotecas acceptan ina URL publica https://, ina URI data: fin a 10 MB u il file_url d'ina chargiada. Datotecas

Output

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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Datoteca video producida da la generaziun.
seed
integerValur da seed applitgada durant la generaziun.

Dapli models: Referenza a video

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/alibaba/happy-horse/reference-to-video.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt