Ruka hadi kwenye maudhui

Gemini Omni Flash · Image to Video

Unganisha

Kitambulisho cha modeli google/gemini-omni-flash/image-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/google/gemini-omni-flash/image-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",
    "image": "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"

Ombi hili: ≈$ 1.276 salio za API 1,276 · ≈ ₽ 136.93 Iendeshe kwenye ukurasa huu

Pata ufunguo wa API
Google Picha hadi Video Usawazishaji wa midomoHaraka3–10 s #stylized#transform#lipsync

Huhuisha picha moja tulivu kuwa video yenye sauti, ikiongozwa na kidokezo cha mwendo

Google · 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 88 / 20000

Maelekezo ya maandishi yanayobainisha uhuishaji wa kutumia kwenye picha.

•inahitajika image_url
Dondosha faili, au

URL inayoelekeza kwenye picha chanzo ya uhuishaji.

aspect_ratio chaguomsingi 16:9

Uwiano wa picha wa video ya tokeo.

chaguomsingi 8

Urefu wa video ya tokeo, unaopimwa kwa sekunde.

POST /run/google/gemini-omni-flash/image-to-video?wait=20 makadirio → $ 1.276
# 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/google/gemini-omni-flash/image-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",
    "image": "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"

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 Gemini Omni Flash · Image to Video

Hubadilisha picha moja, iliyopitishwa kama `image_url`, kuwa video inayofuata maelezo ya mwendo katika `prompt` yako. Unaweza kuchagua 16:9 au 9:16 na muda wa sekunde 3 hadi 10, huku sekunde 8 ikiwa chaguo-msingi. Hili ndilo chaguo linalofaa wakati fremu moja ya mwanzo inapaswa kubainisha mwonekano wa klipu.

Vigezo

Tuma jina rasmi au jina asilia, si yote mawili. Majina rasmi

JinaAina ChaguomsingiInaruhusiwa Maelezo
promptinahitajika
Ainastring
≤ herufi 20,000
Maelekezo ya maandishi yanayobainisha uhuishaji wa kutumia kwenye picha.
image_urlinahitajika image
Ainaurl · image
URL inayoelekeza kwenye picha chanzo ya uhuishaji.
aspect_ratiosi lazima
Ainaenum
Chaguomsingi16:9
16:99:16
Uwiano wa picha wa video ya tokeo.
durationsi lazima
Ainainteger
Chaguomsingi8
3 – 10
Urefu wa video ya tokeo, unaopimwa kwa sekunde.
inahitajika Jina rasmi, pia linakubalika

Vigezo vya faili vinakubali URL ya umma ya https://, data: URI ya hadi 10 MB, au file_url ya upakiaji. Faili

Tokeo

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "google/gemini-omni-flash/image-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": 1276,
    "usd": "1.276",
    "charged": 1276,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "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
    }
  },
  "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"
  }
}
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}Video iliyozalishwa na modeli.

Miundo zaidi: Picha hadi Video

Kwa mawakala wa AI: ukurasa huu katika Markdown unapatikana kwenye https://doitong.com/sw/developers/models/google/gemini-omni-flash/image-to-video.md. Modeli na miongozo yote: https://doitong.com/developers/llms.txt