Saltar al cuntegna

Infinitalk · Single Text

Integrar

ID dal model infinitalk/single-text
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/infinitalk/single-text?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/avatar/talking_avatar.jpg",
    "text_input": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "voice": "Aria",
    "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Questa dumonda: ≈$2,32 2 320 credits API Lantschar sin questa pagina

Obtegna ina clav API
Meituan Lipsync e avatars Lipsyncfin a 720p

Video d’avatar che discurra d’in maletg e text scrit, pronunzià cun ina vusch integrada tschernida

Meituan · 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 dirigia il process da generaziun video.

•obligatori

Instrucziuns textualas che guidan la generaziun video.

•obligatori image_url
Trametta in datoteca u

URL dal maletg da funtauna; la relaziun d'aspect tschernida determinescha sche in pre-processament è necessari: ina divergenza chaschuna in redimensiunament suandà d'in tagl central.

resolution standard 480p

Resoluziun dal video d'output; mo 480p e 720p èn sustegnids.

•obligatori

Vusch tschernida per sintetisar la lingua.

standard 145

Dumber da frames per la generaziun, cun l'intervall permess 41–721.

Avanzà acceleration · seed · enable_safety_checker
acceleration standard regular

Nivel d'acceleraziun applitgà durant la generaziun.

standard 42

Seed che renda la generaziun reproducibla. Cun definir None vegn tschernì in seed casualmain.

POST /run/infinitalk/single-text?wait=20 calculaziun → $2,32
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/infinitalk/single-text?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/avatar/talking_avatar.jpg",
    "text_input": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "voice": "Aria",
    "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.com/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 Infinitalk · Single Text

Empè d’ina datoteca audio, questa varianta prenda `text_input` ed ina `voice` (sco Aria, Roger u Sarah) per al pronunziar, e sincronisescha lura ils lefs da l’avatar da `image_url`. In `prompt` gida a dirigir il video. `num_frames` va da 41 to 721, `resolution` è 480p u 720p, e `acceleration` po esser none, regular u high.

Parameters

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

NumTip StandardPermess Descripziun
image_urlobligatori image
Tipurl · image
URL dal maletg da funtauna; la relaziun d'aspect tschernida determinescha sche in pre-processament è necessari: ina divergenza chaschuna in redimensiunament suandà d'in tagl central.
text_inputobligatori
Tipstring
Text che dirigia il process da generaziun video.
voiceobligatori
Tipenum
AriaRogerSarahLauraCharlieGeorgeCallumRiverLiamCharlotteAliceMatildaWillJessicaEricChris
+4 dapliBrianDanielLilyBill
Vusch tschernida per sintetisar la lingua.
promptobligatori
Tipstring
Instrucziuns textualas che guidan la generaziun video.
num_framesopziunal
Tipinteger
Standard145
41 – 721
Dumber da frames per la generaziun, cun l'intervall permess 41–721.
resolutionopziunal
Tipenum
Standard480p
480p720p
Resoluziun dal video d'output; mo 480p e 720p èn sustegnids.
seedopziunal
Tipinteger
Standard42
0 – 4 294 967 295
Seed che renda la generaziun reproducibla. Cun definir None vegn tschernì in seed casualmain.
accelerationopziunal
Tipenum
Standardregular
noneregularhigh
Nivel d'acceleraziun applitgà durant la generaziun.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
La controlla po vegnir schluccada cun definir false, premess che l'appelant saja autorisà.
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": "infinitalk/single-text",
  "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": 2320,
    "usd": "2.32",
    "charged": 2320,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/avatar/talking_avatar.jpg",
    "text_input": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "voice": "Aria",
    "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
    },
    "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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}Datoteca video producida da la generaziun.
seed
integerValur da seed applitgada durant la generaziun.

Dapli models: Lipsync e avatars

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/infinitalk/single-text.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt