Bỏ qua đến nội dung

Flux 3 Image to Video · Keyframes to Video

Tích hợp

Id mô hình 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://api.doitong.ru/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://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Yêu cầu này: 0,85 $ 850 tín dụng API · ≈ 91,44 ₽ Chạy trên trang này

Lấy khóa API
Black Forest Labs Hình ảnh sang video Âm thanh gốcĐầu ra 4KLipsync5–20 stối đa 2160p #stylized#transform

Video từ tối đa 10 khung hình chính tại các vị trí khung hình được chỉ định, với thời lượng cố định từ 5 đến 20 giây

Được tạo trên Doitong

Các tác phẩm công khai được cộng đồng Doitong tạo bằng Flux 3 New. Tái sử dụng một lời nhắc chỉ với một lần nhấp.

Tác phẩm công khai được hiển thị: 9
Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lemb...

Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi...

Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lemb...

Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi...

Prompt Details Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut ...

Prompt Details Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi...

Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikel...

Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi wajahnya. Ia memeluk...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat men...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat menggemaskan dengan mata cokelat besar yang ekspresif, rambut hitam berantakan yang tebal, mengenakan kaus putih kerah henley. Dia berpose dengan kedua tangan terkatup di depan dada, menunjukkan senyum...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat men...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat menggemaskan dengan mata cokelat besar yang ekspresif, rambut hitam berantakan yang tebal, mengenakan kaus putih kerah henley. Dia berpose dengan kedua tangan terkatup di depan dada, menunjukkan senyum...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat men...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat menggemaskan dengan mata cokelat besar yang ekspresif, rambut hitam berantakan yang tebal, mengenakan kaus putih kerah henley. Dia berpose dengan kedua tangan terkatup di depan dada, menunjukkan senyum...

Foto sinematik hiper-realistis resolusi tinggi menampilkan seorang pria muda Indonesia dengan tub...

Foto sinematik hiper-realistis resolusi tinggi menampilkan seorang pria muda Indonesia dengan tubuh ramping dan proporsional, rambut hitam pendek agak acak, mengenakan jaket kulit hitam, celana riding fit, dan sepatu motor. Ia sedang melakukan aksi freestyle ekstrem dengan motor sport 500cc...

Tạo một yêu cầu

Các điều khiển được tạo từ lược đồ mô hình. Mã và giá sẽ cập nhật khi bạn thay đổi chúng.

•bắt buộc

Mô tả bằng văn bản về video mong muốn.

duration 5 s

Cung cấp rõ thời lượng video, tính bằng giây, để xác thực vị trí khung hình chính.

aspect_ratio mặc định auto

Tỷ lệ khung hình của video đầu ra; `auto` giao việc lựa chọn cho mô hình.

resolution mặc định 720p

Độ phân giải đầu ra, với kích thước pixel được xác định theo tỷ lệ khung hình. Khi hoàn thiện, bộ nâng cấp video được dùng cho `1080p`, `1440p` (2K) và `2160p` (4K).

•bắt buộc

Hình ảnh khung hình chính được đặt vào video đầu ra theo `frame_index`; cung cấp tối đa 10 hình ảnh và không lặp lại chỉ mục.

Nâng cao safety_tolerance
mặc định 2

Mức dung sai an toàn của video sử dụng thang đo trong đó thiết lập dễ dãi nhất là 4 và nghiêm ngặt nhất là 0.

POST /run/blackforestlabs/flux-3/keyframes-to-video?wait=20 báo giá → 0,85 $
# 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/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://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Chạy yêu cầu này

Key của bạn vẫn nằm trong trình duyệt này: key chỉ được gửi đến Doitong API và chỉ được lưu trong localStorage nếu bạn chọn Ghi nhớ. Nhận khóa API

Giới thiệu về Flux 3 Image to Video · Keyframes to Video

Tạo video bằng cách tạo chuyển động giữa 1 đến 10 hình ảnh khung hình chính, mỗi hình ảnh được ghim vào một `frame_index` duy nhất và được điều khiển bằng `prompt`. Cần chỉ định rõ `duration` từ 5 đến 20 giây để xác thực vị trí khung hình chính. `resolution` từ 720p đến 2160p, và tạo âm thanh là tùy chọn.

Tham số

TênKiểu Mặc địnhĐược phép Mô tả
promptbắt buộc
Kiểustring
Mô tả bằng văn bản về video mong muốn.
aspect_ratiotùy chọn
Kiểuenum
Mặc địnhauto
auto21:92:116:94:31:13:49:16
Tỷ lệ khung hình của video đầu ra; `auto` giao việc lựa chọn cho mô hình.
resolutiontùy chọn
Kiểuenum
Mặc định720p
720p1080p1440p2160p
Độ phân giải đầu ra, với kích thước pixel được xác định theo tỷ lệ khung hình. Khi hoàn thiện, bộ nâng cấp video được dùng cho `1080p`, `1440p` (2K) và `2160p` (4K).
durationtùy chọn
Kiểuenum
Mặc định5
567891011121314151617181920
Cung cấp rõ thời lượng video, tính bằng giây, để xác thực vị trí khung hình chính.
generate_audiotùy chọn
Kiểuboolean
Mặc địnhtrue
Kiểm soát việc video có bao gồm âm thanh được tạo hay không.
safety_tolerancetùy chọn
Kiểuinteger
Mặc định2
0 – 4
Mức dung sai an toàn của video sử dụng thang đo trong đó thiết lập dễ dãi nhất là 4 và nghiêm ngặt nhất là 0.
keyframesbắt buộc
Kiểuobject[]
≤ 10 mục
Hình ảnh khung hình chính được đặt vào video đầu ra theo `frame_index`; cung cấp tối đa 10 hình ảnh và không lặp lại chỉ mục.
keyframes[].image_urlbắt buộc
Kiểuurl · image
URL hình ảnh khung hình chính; chấp nhận PNG, JPEG hoặc WebP.
keyframes[].frame_indexbắt buộc
Kiểuinteger
≥ 0
Vị trí khung hình chính sử dụng một chỉ mục khung hình riêng cho mỗi khung hình chính, có giới hạn trên là `duration * 24`; đầu ra chạy ở 24 fps.
bắt buộc

Đầu ra

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://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tệp của bạn, lựa chọn của bạnMỗi outputs[].url là một bản sao trên bộ lưu trữ của chúng tôi: được giữ vĩnh viễn (tính phí theo GB-tháng) hoặc 7 ngày miễn phí, theo cài đặt tài khoản hoặc ?storage=.
Cùng một cấu trúc trên mọi mô hìnhtype, url, content_type, width, height và duration cho hình ảnh, video và âm thanh. output là đối tượng kết quả riêng của mô hình.
Các trường đầu ra
video
object {url, content_type, file_name, file_size}Video do mô hình tạo ra.
seed
integerGiá trị seed được dùng trong quá trình tạo sinh.

Thêm mô hình: Hình ảnh sang video

Dành cho tác nhân AI: trang này ở dạng Markdown tại https://doitong.com/vi/developers/models/blackforestlabs/flux-3/keyframes-to-video.md. Tất cả mô hình và hướng dẫn: https://doitong.com/developers/llms.txt