Flux 3 비디오 생성
텍스트, 참조 이미지 또는 첫 번째와 마지막 프레임으로 720p 또는 1080p 크기 사전 설정의 Flux 3 비디오를 생성합니다.
id을 저장하여 작업 상태를 폴링하고 완료된 비디오를 다운로드하세요.
POST /v1/videos multipart/form-data을 사용합니다. 제어값은 양식 필드로 전송하세요. 이미지 입력에는 참조 이미지 URL 또는 시작 및 종료 프레임을 사용하세요.
input_reference을 first_frame 및 last_frame과 별도로 유지하세요.
입력 모드 선택
참조 이미지 사용
input_reference 필드는 공개적으로 액세스 가능한 HTTPS 이미지 URL만 허용합니다. 이미지가 하나이면 한 번 전송하고, 여러 이미지이면 키프레임 순서대로 반복하여 전송하세요. 필드당 URL 하나를 사용하며, 총 최대 10개의 URL을 사용할 수 있습니다.
생성된 비디오가 참조 이미지에서 유지해야 하는 움직임, 카메라 동작 및 시각적 세부 사항을 설명하세요.
이 페이지 상단의 요청 샘플은 단일 이미지 및 다중 이미지 입력을 보여 줍니다. 다음 요청은 제출된 순서대로 두 이미지를 사용합니다:
첫 번째와 마지막 프레임 설정
시작 이미지를 설정하려면first_frame을 전송하세요. 종료 이미지도 설정하려면 last_frame을 포함하고, 두 프레임 사이의 움직임을 prompt에 설명하세요.
시작 프레임만 사용할 경우 last_frame을 생략하세요. 종료 프레임에는 first_frame 및 last_frame이 모두 필요합니다.
각 필드는 공개적으로 액세스 가능한 HTTPS URL 하나 또는 PNG나 JPEG 파일 하나를 허용합니다. URL 또는 파일 중 하나를 사용하여 각 필드를 한 번 전송하세요. 각 파일의 크기는 20 MiB(20 × 1024 × 1024바이트).
이 페이지 상단의 프레임 예시는 URL 입력과 파일 업로드를 보여 주며, seconds 및 size이 명시적으로 설정되어 있습니다.
길이 및 크기 설정
seconds을 5부터 20까지의 정수로 명시적으로 설정하세요.
size을 다음의 정확한 WxH 사전 설정 값 중 하나로 설정하세요:
작업 흐름
작업 생성
id을 저장하세요.작업 폴링
status이 completed 또는 failed이 될 때까지 호출합니다.결과 다운로드
completed 상태가 되면 다음을 호출하여 Flux 3 비디오 콘텐츠 다운로드 MP4 파일을 저장합니다.인증
Bearer authentication. Use your CometAPI API key.
본문
Flux 3 multipart request. Choose text, input_reference URLs, or first_frame and last_frame inputs. Keep reference-image and frame inputs separate.
Model ID for this route. Use flux-3.
"flux-3"Text that describes the scene, motion, camera behavior, and visual details that the video should preserve.
1Requested clip duration in whole seconds. Set seconds explicitly to an integer from 5 through 20.
5 <= x <= 20Resolution preset in exact WxH form. Use 1280x720 for the 720p tier or 1920x1080 for the 1080p tier. Encoded dimensions can be codec-aligned; image-to-video framing can follow the reference image.
1280x720, 1920x1080 Reference image URLs. Send one publicly accessible HTTPS image URL per input_reference field. For multiple images, repeat the field in keyframe order, up to 10 URLs. This field accepts URLs only. Keep it separate from first_frame and last_frame.
^https://Opening-frame image as one publicly accessible HTTPS URL or one PNG or JPEG file. Keep each file at or below 20 MiB (20 × 1024 × 1024 bytes). Send the field once, using either a URL or a file. Pair with last_frame to set both boundaries. Keep frame inputs separate from input_reference.
^https://Closing-frame image as one publicly accessible HTTPS URL or one PNG or JPEG file. Keep each file at or below 20 MiB (20 × 1024 × 1024 bytes). Send the field once, using either a URL or a file. To specify the closing image through this endpoint, send last_frame together with first_frame. Keep frame inputs separate from input_reference.
^https://응답
Task created. Store the returned id and poll GET /v1/videos/{task_id}.
Task ID. Use this value as task_id in retrieve and content requests.
"<task_id>"
Object type for the asynchronous video task.
"video"Model ID that the task uses.
"flux-3"Task lifecycle status. Poll until the value is completed or failed.
queued, in_progress, completed, failed Task progress as a coarse percentage.
0 <= x <= 100Task creation time as a Unix timestamp in seconds.
Compatibility alias for id. This field can be omitted from retrieve responses.
"<task_id>"
Task completion time as a Unix timestamp in seconds when the task provides one.
Result expiration time as a Unix timestamp in seconds when the task provides one.
Video delivery URL. This field appears on completed tasks.
"https://media.example.com/flux-3-result.mp4"
Failure details. This field appears when the task fails.