Bỏ qua đến nội dung

Flux 3 Keyframes To Video Draft

Tích hợp

Id mô hình blackforestlabs/flux-3/keyframes-to-video/draft
# 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/draft?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,30 $ 300 tín dụng API · ≈ 32,27 ₽ Chạy trên trang này

Lấy khóa API
Black Forest Labs Hình ảnh sang video Âm thanh gốcLipsync5–20 s #stylized#transform

Video nháp được xây dựng quanh tối đa mười hình ảnh khung hình chính được ghim vào các vị trí khung hình cụ thể

Đượ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. 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 bản nháp.

duration 5 s

Thời lượng bản nháp dùng để xác thực vị trí khung hình chính; bắt buộc có giá trị nguyên tính bằng giây từ 5 đến 20.

aspect_ratio mặc định auto

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

•bắt buộc

Tập hợp tối đa 10 hình ảnh, mỗi hình ảnh được gán một `frame_index` khác nhau để cố định vị trí trong bản nháp được tạo.

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/draft?wait=20 báo giá → 0,30 $
# 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/draft?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 Keyframes To Video Draft

Cung cấp `prompt` và 1 đến 10 `keyframes`, mỗi khung có một `frame_index` duy nhất. Cần chỉ định rõ `duration` từ 5 đến 20 giây để xác thực vị trí khung hình chính. `aspect_ratio` có thể là auto hoặc từ 21:9 đến 9:16, còn `generate_audio` bật hoặc tắt âm thanh. Đầu ra bao gồm `draft_cache` cho kết xuất chất lượng đầy đủ.

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 bản nháp.
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 đầu ra bản nháp; `auto` giao việc lựa chọn cho mô hình.
durationtùy chọn
Kiểuenum
Mặc định5
567891011121314151617181920
Thời lượng bản nháp dùng để xác thực vị trí khung hình chính; bắt buộc có giá trị nguyên tính bằng giây từ 5 đến 20.
generate_audiotùy chọn
Kiểuboolean
Mặc địnhtrue
Kiểm soát việc tạo âm thanh cho video bản nháp.
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
Tập hợp tối đa 10 hình ảnh, mỗi hình ảnh được gán một `frame_index` khác nhau để cố định vị trí trong bản nháp được tạo.
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/draft",
  "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": 300,
    "usd": "0.30",
    "charged": 300,
    "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
    },
    "draft_cache": {
      "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"
  }
}
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 được tạo dưới dạng bản nháp.
draft_cache
object {url, content_type, file_name, file_size} | nullDữ liệu bộ nhớ đệm để kết xuất bản nháp ở chất lượng đầy đủ qua `draft-enhance`, được lưu trong gói bền vững và mã hóa. Đầu ra này không có nếu đối tác không trả về gói cho bản nháp.

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/draft.md. Tất cả mô hình và hướng dẫn: https://doitong.com/developers/llms.txt