Neidio i'r cynnwys

AI Avatar Multi Text

Integreiddio

ID y model ai-avatar/multi-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/ai-avatar/multi-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",
    "first_text_input": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "second_text_input": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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"

Y cais hwn: ≈$0.648 648 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Open model Cydamseru Gwefusau ac Afatarau Cydamseru gwefusauhyd at 720p #stylized#transform

Yn creu fideo siarad dau berson o un ddelwedd, gyda sgript a llais dewisol i bob siaradwr

Open model · Fideo

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol

Testun sy'n cyfarwyddo'r broses cynhyrchu fideo.

•gofynnol

Testun sy'n cyfarwyddo'r broses cynhyrchu fideo.

•gofynnol

Cyfarwyddiadau testun sy'n arwain cynhyrchu fideo.

•gofynnol image_url
Gollyngwch ffeil, neu

URL delwedd ffynhonnell, gyda'r gymhareb agwedd a ddewisir yn pennu a oes angen rhagbrosesu: mae anghysondeb yn sbarduno newid maint ac yna docio o'r canol.

resolution rhagosodedig 480p

Cydraniad fideo allbwn; dim ond 480p a 720p a gefnogir.

rhagosodedig 191

Cyfrif fframiau ar gyfer cynhyrchu, yn amrywio o 81 hyd at 129, yn gynhwysol.

Uwch acceleration · voice1 · voice2 · seed · enable_safety_checker
acceleration rhagosodedig regular

Lefel cyflymu a gymhwysir wrth gynhyrchu.

rhagosodedig Sarah

Llais a neilltuir i'r person cyntaf wrth gynhyrchu lleferydd.

rhagosodedig Roger

Llais a neilltuir i'r ail berson wrth gynhyrchu lleferydd.

rhagosodedig 81

Hadau sy'n gwneud cynhyrchu'n atgynhyrchadwy. Mae ei osod i None yn dewis hedyn ar hap.

POST /run/ai-avatar/multi-text?wait=20 dyfynbris → $0.648
# 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/ai-avatar/multi-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",
    "first_text_input": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "second_text_input": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â AI Avatar Multi Text

Yn animeiddio un ddelwedd yn sgwrs rhwng dau berson. Darparwch `first_text_input` a `second_text_input` fel y llinellau, ynghyd â `prompt`, a dewiswch `voice1` a `voice2` o’r lleisiau rhagosodedig. Mae’r allbwn yn 480p neu 720p, gyda `num_frames` o 41 i 241. Mae gosodiad `acceleration` o none, regular neu high ar gael.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
image_urlgofynnol image
Mathurl · image
URL delwedd ffynhonnell, gyda'r gymhareb agwedd a ddewisir yn pennu a oes angen rhagbrosesu: mae anghysondeb yn sbarduno newid maint ac yna docio o'r canol.
first_text_inputgofynnol
Mathstring
Testun sy'n cyfarwyddo'r broses cynhyrchu fideo.
second_text_inputgofynnol
Mathstring
Testun sy'n cyfarwyddo'r broses cynhyrchu fideo.
voice1dewisol
Mathenum
RhagosodedigSarah
AriaRogerSarahLauraCharlieGeorgeCallumRiverLiamCharlotteAliceMatildaWillJessicaEricChris
+4 yn rhagorBrianDanielLilyBill
Llais a neilltuir i'r person cyntaf wrth gynhyrchu lleferydd.
voice2dewisol
Mathenum
RhagosodedigRoger
AriaRogerSarahLauraCharlieGeorgeCallumRiverLiamCharlotteAliceMatildaWillJessicaEricChris
+4 yn rhagorBrianDanielLilyBill
Llais a neilltuir i'r ail berson wrth gynhyrchu lleferydd.
promptgofynnol
Mathstring
Cyfarwyddiadau testun sy'n arwain cynhyrchu fideo.
num_framesdewisol
Mathinteger
Rhagosodedig191
41 – 241
Cyfrif fframiau ar gyfer cynhyrchu, yn amrywio o 81 hyd at 129, yn gynhwysol.
resolutiondewisol
Mathenum
Rhagosodedig480p
480p720p
Cydraniad fideo allbwn; dim ond 480p a 720p a gefnogir.
seeddewisol
Mathinteger
Rhagosodedig81
0 – 4,294,967,295
Hadau sy'n gwneud cynhyrchu'n atgynhyrchadwy. Mae ei osod i None yn dewis hedyn ar hap.
accelerationdewisol
Mathenum
Rhagosodedigregular
noneregularhigh
Lefel cyflymu a gymhwysir wrth gynhyrchu.
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigtrue
Gellir llacio'r sgrinio drwy osod false, ar yr amod bod y galwr wedi'i awdurdodi.
gofynnol Enw canonaidd, derbyniol hefyd

Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ai-avatar/multi-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": 648,
    "usd": "0.648",
    "charged": 648,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/avatar/talking_avatar.jpg",
    "first_text_input": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "second_text_input": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
video
object {url, content_type, file_name, file_size}Ffeil fideo a gynhyrchir.
seed
integerGwerth hedyn a gymhwysir wrth gynhyrchu.

Mwy o fodelau: Cydamseru Gwefusau ac Afatarau

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/ai-avatar/multi-text.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt