Op den Inhalt sprangen

Flux 3 Image to Video · Keyframes to Video

Integréieren

Modell-ID blackforestlabs/flux-3/keyframes-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/blackforestlabs/flux-3/keyframes-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",
    "keyframes": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
        "frame_index": 0
      }
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro: 0,85 $ 850 API-Kreditter Op dëser Säit ausféieren

API-Schlëssel kréien
Black Forest Labs Bild zu Video Native Audio4K-OutputLipsync5–20 sbis zu 2160p #stylized#transform

Video aus bis zu 10 Keyframes op feste Framepositiounen, mat fixer Dauer vu 5 bis 20 Sekonnen

Black Forest Labs · Video

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Textbeschreiwung vum gewënschte Video.

duration 5 s

Gitt d'Videolängt explizit a Sekonnen un, fir Keyframe-Positiounen ze validéieren.

aspect_ratio Standard auto

Aspektverhältnis vum Output-Video; `auto` iwwerléisst d'Auswiel dem Modell.

resolution Standard 720p

Output-Opléisung, mat Pixel-Dimensiounen, déi vum Aspektverhältnis bestëmmt ginn. Fir `1080p`, `1440p` (2K) an `2160p` (4K) benotzt d'Finaliséierung de Video-Upsampler.

•obligatoresch

Keyframe-Biller, déi no `frame_index` am Output-Video placéiert ginn; liwwert maximal 10, ouni en Index ze widderhuelen.

Erweidert safety_tolerance
Standard 2

D'Toleranz fir Videosécherheet benotzt eng Skala, wou 4 déi tolerantst an 0 déi strengst Astellung ass.

POST /run/blackforestlabs/flux-3/keyframes-to-video?wait=20 Präis → 0,85 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/blackforestlabs/flux-3/keyframes-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",
    "keyframes": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
        "frame_index": 0
      }
    ]
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Flux 3 Image to Video · Keyframes to Video

Erstellt e Video andeems Beweegung tëscht 1 bis 10 Keyframe-Biller generéiert gëtt, all mat engem eenzegaartege `frame_index`, geleet vun engem `prompt`. Eng explizit `duration` vu 5 bis 20 Sekonne ass néideg, fir d'Keyframe-Positiounen ze validéieren. `resolution` geet vun 720p bis 2160p, an d'Toungeneratioun ass fakultativ.

Parameteren

NummTyp StandardErlaabt Beschreiwung
promptobligatoresch
Typstring
Textbeschreiwung vum gewënschte Video.
aspect_ratiooptional
Typenum
Standardauto
auto21:92:116:94:31:13:49:16
Aspektverhältnis vum Output-Video; `auto` iwwerléisst d'Auswiel dem Modell.
resolutionoptional
Typenum
Standard720p
720p1080p1440p2160p
Output-Opléisung, mat Pixel-Dimensiounen, déi vum Aspektverhältnis bestëmmt ginn. Fir `1080p`, `1440p` (2K) an `2160p` (4K) benotzt d'Finaliséierung de Video-Upsampler.
durationoptional
Typenum
Standard5
567891011121314151617181920
Gitt d'Videolängt explizit a Sekonnen un, fir Keyframe-Positiounen ze validéieren.
generate_audiooptional
Typboolean
Standardtrue
Steiert, ob de Video generéierten Audio enthält.
safety_toleranceoptional
Typinteger
Standard2
0 – 4
D'Toleranz fir Videosécherheet benotzt eng Skala, wou 4 déi tolerantst an 0 déi strengst Astellung ass.
keyframesobligatoresch
Typobject[]
≤ 10 Elementer
Keyframe-Biller, déi no `frame_index` am Output-Video placéiert ginn; liwwert maximal 10, ouni en Index ze widderhuelen.
keyframes[].image_urlobligatoresch
Typurl · image
URL vum Keyframe-Bild; akzeptéiert PNG, JPEG oder WebP.
keyframes[].frame_indexobligatoresch
Typinteger
≥ 0
All Keyframe kritt en eegene Frame-Index, maximal `duration * 24`; den Output leeft mat 24 fps.
obligatoresch

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "blackforestlabs/flux-3/keyframes-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": 850,
    "usd": "0.85",
    "charged": 850,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "keyframes": [
      {
        "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
        "frame_index": 0
      }
    ]
  },
  "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
video
object {url, content_type, file_name, file_size}Video, dee vum Modell produzéiert gëtt.
seed
integerSeed-Wäert, dee bei der Generatioun benotzt gëtt.

Méi Modeller: Bild zu Video

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/blackforestlabs/flux-3/keyframes-to-video.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt