MiniMax H3 동영상 만들기
CometAPI를 통해 텍스트, 참조 미디어 또는 첫 번째와 마지막 프레임으로 MiniMax H3 또는 H3-Max 동영상 작업 만들기
id를 저장하여 작업을 폴링하고 완성된 동영상을 다운로드하세요.
POST /v1/videos multipart/form-data을 사용합니다. 제어 항목은 양식 필드로 전송하고 각 참조 필드는 미디어 입력마다 한 번씩 반복하세요.
모델 선택
model을 다음 모델 ID 중 하나로 설정하세요. 요청 크기는 해당 모델 표에서 선택하세요: 기간 및 크기 설정.
입력 모드 선택
두 모델 모두 아래 필드를 사용합니다.model을 선택한 모델 ID로 설정하세요.
참조 이미지 사용
공개적으로 액세스 가능한 HTTPS URL 또는 업로드한 파일로input_reference을 통해 참조 이미지를 전송하세요. 여러 이미지를 전송하려면 이미지 순서대로 필드를 반복하고 필드마다 URL 또는 파일을 하나씩 지정하세요.
이 필드에서는 URL만 모두 사용하거나 파일만 모두 사용하세요. URL을 쉼표로 구분된 값으로 결합하지 말고 각각 별도로 전송하세요.
URL 또는 업로드한 파일을 사용하여 PNG 또는 JPEG 참조 이미지를 최대 9개까지 전송할 수 있습니다. 업로드하는 각 이미지는 20MiB 이하로 유지하세요.
프롬프트(Prompt)에서 생성된 동영상이 유지해야 하는 시각적 세부 정보를 설명하세요.
참조 비디오 및 오디오 사용
아래 형식을 사용하여reference_videos 및 reference_audios을(를) 멀티파트 텍스트 값 또는 업로드된 파일로 전송하세요.
각 입력마다 각 필드를 한 번씩 반복하고, 해당 필드 내에서는 텍스트 값만 또는 파일만 사용하세요. 입력을 쉼표로 구분된 값으로 결합하지 마세요.
이미지 URL과 업로드된 오디오 파일처럼 서로 다른 필드에서 서로 다른 입력 유형을 사용할 수 있습니다.
이미지, 비디오, 오디오 참조를 결합하려면 동일한 요청에서 input_reference, reference_videos, reference_audios을(를) 전송하세요.
input_reference을(를) 통해 참조 오디오를 하나 이상의 이미지와 연결하세요.
생성된 비디오가 따라야 하는 동작, 타이밍 또는 사운드를 설명하세요.
업로드하는 각 MP4는 50 MiB 이하로, 각 MP3는 15 MiB 이하로 유지하세요. 1 MiB는 1024 × 1024바이트입니다.
이 페이지 상단의 요청 샘플은 이미지와 연결된 MP4 URL, MP4 데이터 URI 및 MP3 URL을 보여 줍니다.
참조 비디오 업로드
샷 구성과 동작을 안내할 MP4 파일을 업로드하세요:이미지와 함께 참조 오디오 업로드
참조 이미지 URL을 업로드된 MP3 파일과 연결하세요:첫 번째 및 마지막 프레임 설정
시작 이미지에는first_frame을(를) 전송하고, 종료 이미지에는 선택적으로 last_frame 하나를 전송하세요.
각 필드는 직접 액세스할 수 있는 공개 HTTPS PNG URL 하나 또는 업로드된 PNG 파일 하나를 허용합니다. 업로드하는 각 PNG는 20 MiB 이하로 유지하세요(20 × 1024 × 1024바이트).
프레임 필드를 참조 이미지, 비디오 또는 오디오 필드와 결합하지 마세요. 프레임 기반 생성에는 별도의 요청을 사용하세요.
프레임 입력에서는 size이(가) 해상도 등급을 선택합니다. 서비스는 제공된 프레임에 따라 최종 출력 크기를 정규화할 수 있습니다.
계속해서 size을(를) WxH 형식으로 전송하세요.
id을(를) 저장하세요. status이(가) completed 또는
failed이 될 때까지 작업을 폴링하세요. 작업이 완료되면 비디오 콘텐츠를 다운로드하세요.기간 및 크기 설정
두 모델 모두에서seconds 값을 5부터 15까지의 정수로 설정합니다. 기본값은 5초입니다.
모델에 맞는 표에서 해상도와 종횡비를 선택한 다음, 해당 요청 크기 값을 size에서 WxH 형식으로 전송합니다.
텍스트 및 참조 미디어 요청에서 size는 해상도 등급과 프레이밍 종횡비를 선택합니다.
서비스는 요청한 크기와 제공된 참조 미디어를 기반으로 최종 출력 크기를 정규화할 수 있습니다.
minimax-h3의 크기
model=minimax-h3에 사용할 요청 크기는 다음과 같습니다:
minimax-h3-max의 크기
model=minimax-h3-max에 사용할 요청 크기는 다음과 같습니다:
작업 흐름
작업 생성
id를 저장합니다.작업 폴링
status가 completed 또는 failed일 때까지 호출합니다.결과 다운로드
completed 상태가 되면 다음 API를 MiniMax H3 비디오 콘텐츠 다운로드 호출하여 MP4 파일을 저장합니다.인증
Bearer authentication. Use your CometAPI API key.
본문
Model ID for the video task. Use minimax-h3 for 768P or 2K, or minimax-h3-max for 480P or 768P. Choose size from the matching model table.
minimax-h3, minimax-h3-max Text that describes the scene, motion, camera behavior, and visual details that the video should preserve.
1Requested clip duration in whole seconds. Use an integer from 5 through 15. The default is 5.
5 <= x <= 15Requested size in WxH form. For text and reference-media requests, size selects the resolution tier and framing aspect ratio. With first or last frames, size selects the resolution tier. Use the matching model table: minimax-h3 uses 768P or 2K; minimax-h3-max uses 480P or 768P. For example, use 1344x768 for H3 at 768P, 864x480 for H3-Max at 480P, or 1360x768 for H3-Max at 768P. The service can normalize the final output dimensions.
^[1-9][0-9]*x[1-9][0-9]*$"1536x672"
"1344x768"
"1024x768"
"768x768"
"768x1024"
"768x1344"
"2912x1280"
"2544x1456"
"1920x1440"
"1440x1440"
"1440x1920"
"1440x2560"
"1120x480"
"864x480"
"640x480"
"480x480"
"480x640"
"480x864"
"1792x768"
"1360x768"
"768x1360"
PNG or JPEG reference images. Repeat input_reference with one publicly accessible HTTPS image URL or uploaded image file per field. Send up to nine reference images, whether you use URLs or uploaded files. Use all URLs or all files within this field. Do not combine URLs into a comma-separated value. Keep each uploaded image at or below 20 MiB. Do not combine this field with first_frame or last_frame. Across images, videos, and audio, send at most 12 reference inputs. Each reference video or audio clip must be 2–15 seconds; keep the combined video duration and combined audio duration at or below 15 seconds each. Submit images in the order you want to reference them in the prompt.
^https://Reference video inputs. Repeat reference_videos with a direct publicly accessible HTTPS MP4 URL or an uploaded MP4 file. Use only text values or only files within this field. Each uploaded file can be up to 50 MiB. Send no more than three video inputs. A complete data:video/mp4;base64,... URI is also accepted as a text value. Use MP4 with H.264 video; an AAC audio track is optional. Do not combine this field with first_frame or last_frame. Across images, videos, and audio, send at most 12 reference inputs. Each reference video or audio clip must be 2–15 seconds; keep the combined video duration and combined audio duration at or below 15 seconds each.
1 - 3 elements^(https://|data:video/mp4;base64,)"https://your-media-host/reference.mp4"
Reference audio inputs. Repeat reference_audios with a direct publicly accessible HTTPS MP3 URL or an uploaded MP3 file. Use only text values or only files within this field. Each uploaded file can be up to 15 MiB. Send no more than three audio inputs. Pair reference audio with at least one reference image. Do not combine this field with first_frame or last_frame. Across images, videos, and audio, send at most 12 reference inputs. Each reference video or audio clip must be 2–15 seconds; keep the combined video duration and combined audio duration at or below 15 seconds each.
1 - 3 elements^https://"https://your-media-host/reference.mp3"
Opening frame input as one direct publicly accessible HTTPS PNG URL or one uploaded PNG file at or below 20 MiB (20 x 1024 x 1024 bytes). Do not combine frame fields with reference media fields.
^https://"https://your-image-host/first-frame.png"
Optional ending frame input, used with first_frame, as one direct publicly accessible HTTPS PNG URL or one uploaded PNG file at or below 20 MiB (20 x 1024 x 1024 bytes). Do not combine frame fields with reference media fields.
^https://"https://your-image-host/last-frame.png"
응답
Task created. Store the returned id and use it in retrieve and content requests.
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.
minimax-h3, minimax-h3-max 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>"
Unix timestamp returned by the platform. Use status, not this field, to decide when polling can stop.
Result expiration time as a Unix timestamp in seconds when the task provides one.
Video delivery URL. This field appears on completed tasks.
"https://your-media-host/result.mp4"
Failure details. This field appears when the task fails.