Ruka hadi kwenye maudhui

Ovi Text to Video

Unganisha

Kitambulisho cha modeli ovi
# 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/ovi?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"
  }'

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

Ombi hili: $ 0.20 salio za API 200 Iendeshe kwenye ukurasa huu

Pata ufunguo wa API
Character.AI Maandishi hadi Video

Modeli ya maandishi-hadi-video inayozalisha video pamoja na wimbo wake wa sauti

Character.AI · Video

Tokeo lako la kwanza linaonekana hapa

Unda ombi hapa chini na uliendeshe kwa ufunguo wako wa API. Matokeo yanakiliwa kwenye hifadhi yetu, yakihifadhiwa milele au 7 siku bila malipo.

Unda ombi

Vidhibiti vinazalishwa kutoka kwenye schema ya modeli. Msimbo na bei husasishwa unapovibadilisha.

•inahitajika

Maelekezo ya maandishi yanayoongoza uzalishaji wa video.

resolution chaguomsingi 992x512

Mwonekano wa video ya tokeo unaoonyeshwa kama W:H. Chagua kutoka 512x992, 992x512, 960x512, 512x960, 720x720, au 448x1120.

Ya kina negative_prompt · audio_negative_prompt · num_inference_steps · seed · enable_safety_checker
chaguomsingi jitter, bad hands, bl...

Kidokezo hasi kinachotumika wakati wa kutengeneza video.

chaguomsingi robotic, muffled, ech...

Kidokezo hasi kinachobainisha cha kuepuka katika sauti inayozalishwa.

chaguomsingi 30

Idadi ya hatua zinazotumika kwa uelekezaji.

Seed inayofanya uzalishaji uweze kurudiwa. Kuiweka kuwa None huchagua seed bila mpangilio.

POST /run/ovi?wait=20 makadirio → $ 0.20
# 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/ovi?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"
  }'

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

Endesha ombi hili

Key yako inabaki kwenye kivinjari hiki: inatumwa kwa Doitong API pekee na kuhifadhiwa (localStorage) tu ukiweka tiki kwenye Kumbuka. Pata ufunguo wa API

Kuhusu Ovi Text to Video

Huunda klipu yenye sauti kutoka kwa `prompt` ya maandishi. Chagua mojawapo ya thamani saba za `resolution`, zikiwemo 992x512, 512x992, 720x720 na 1120x448. Vidokezo hasi tofauti vipo kwa video na sauti (`negative_prompt`, `audio_negative_prompt`). `num_inference_steps` ni kuanzia 1 hadi 50 (chaguomsingi 30), na `seed` huruhusu matokeo yanayoweza kurudiwa.

Vigezo

JinaAina ChaguomsingiInaruhusiwa Maelezo
promptinahitajika
Ainastring
Maelekezo ya maandishi yanayoongoza uzalishaji wa video.
negative_promptsi lazima
Ainastring
Chaguomsingijitter, bad hands, blur, distortion
Kidokezo hasi kinachotumika wakati wa kutengeneza video.
num_inference_stepssi lazima
Ainainteger
Chaguomsingi30
1 – 50
Idadi ya hatua zinazotumika kwa uelekezaji.
audio_negative_promptsi lazima
Ainastring
Chaguomsingirobotic, muffled, echo, distorted
Kidokezo hasi kinachobainisha cha kuepuka katika sauti inayozalishwa.
seedsi lazima
Ainainteger | null
Seed inayofanya uzalishaji uweze kurudiwa. Kuiweka kuwa None huchagua seed bila mpangilio.
resolutionsi lazima
Ainaenum
Chaguomsingi992x512
512x992992x512960x512512x960720x720448x11201120x448
Mwonekano wa video ya tokeo unaoonyeshwa kama W:H. Chagua kutoka 512x992, 992x512, 960x512, 512x960, 720x720, au 448x1120.
enable_safety_checkersi lazima
Ainaboolean
Chaguomsingitrue
Ukaguzi unaweza kulegezwa kwa kuweka false, ikiwa mpigaji simu ameidhinishwa.
inahitajika

Tokeo

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ovi",
  "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": 200,
    "usd": "0.20",
    "charged": 200,
    "refunded": 0
  },
  "input": {
    "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"
  }
}
Faili zako, chaguo lakoKila outputs[].url ni nakala kwenye hifadhi yetu: huhifadhiwa milele (hutozwa kwa GB kwa mwezi) au 7 siku bila malipo, kulingana na mpangilio wa akaunti yako au ?storage=.
Muundo uleule kwenye kila modelitype, url, content_type, width, height na duration, kwa picha, video na sauti. output ni kitu cha matokeo cha modeli yenyewe.
Sehemu za tokeo
video
object {url, content_type, file_name, file_size} | nullFaili ya video iliyozalishwa.
seed
integerThamani ya seed inayotumika wakati wa uzalishaji.

Miundo zaidi: Maandishi hadi Video

Kwa mawakala wa AI: ukurasa huu katika Markdown unapatikana kwenye https://doitong.com/sw/developers/models/ovi.md. Modeli na miongozo yote: https://doitong.com/developers/llms.txt