
AI 미디어 크리에이터
하나의 통합 작업 공간에서 AI 이미지와 동영상 제작
Flaq AI에서 Sand AI의 Magi 2 API로 참조 자료를 활용해 동영상을 만드세요. 이미지로 외관을, 클립으로 움직임을, 오디오로 장면의 소리를 이끌 수 있습니다. 함께 조합하세요.
// Step 1: Submit generation request
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model_name: 'magi-2-reference-to-video',
prompt: 'Use the reference image for the subject, the reference video for the camera movement, and the reference audio for the ambience',
duration: 8,
aspect_ratio: '16:9',
sound: true,
images: ['https://example.com/subject-reference.jpg'],
videos: ['https://example.com/camera-movement-reference.mp4'],
audios: ['https://example.com/ambience-reference.mp3']
})
});
const { data } = await response.json();
const taskId = data.task_id;
// Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
// Placeholder numbering is 1-based for each media array:
// <<<image_1>>> = images[0], <<<image_2>>> = images[1]
// <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
const mediaReferenceResponse = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model_name: 'magi-2-reference-to-video',
prompt: 'Show the cyclist from <<<image_1>>> on the trail in <<<image_2>>>. Follow the camera movement in <<<video_1>>> and use <<<audio_1>>> as a reference for the forest ambience',
duration: 10,
aspect_ratio: '16:9',
sound: true,
images: [
'https://example.com/cyclist-reference.jpg',
'https://example.com/forest-trail-reference.png'
],
videos: ['https://example.com/camera-movement-reference.mp4'],
audios: ['https://example.com/forest-ambience-reference.mp3']
})
});
const { data: mediaReferenceData } = await mediaReferenceResponse.json();
const mediaReferenceTaskId = mediaReferenceData.task_id;
// Step 2: Poll for results
const taskId = data.task_id;
const pollResult = async (taskId) => {
const res = await fetch(`https://api.flaq.ai/api/v1/video/${taskId}`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
return res.json();
};
while (true) {
const pollResultData = await pollResult(taskId);
const status = pollResultData.data.task_status;
if (status === 'succeed') {
console.log(pollResultData.data.task_result.videos[0].url);
break;
}
if (status === 'failed') {
console.error(pollResultData.data.task_status_msg);
break;
}
await new Promise(resolve => setTimeout(resolve, 10000));
}
# Step 1: Submit generation request
import requests
response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model_name': 'magi-2-reference-to-video',
'prompt': 'Use the reference image for the subject, the reference video for the camera movement, and the reference audio for the ambience',
'duration': 8,
'aspect_ratio': '16:9',
'sound': True,
'images': ['https://example.com/subject-reference.jpg'],
'videos': ['https://example.com/camera-movement-reference.mp4'],
'audios': ['https://example.com/ambience-reference.mp3']
}
)
result = response.json()
task_id = result['data']['task_id']
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1]
# <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
media_reference_response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model_name': 'magi-2-reference-to-video',
'prompt': 'Show the cyclist from <<<image_1>>> on the trail in <<<image_2>>>. Follow the camera movement in <<<video_1>>> and use <<<audio_1>>> as a reference for the forest ambience',
'duration': 10,
'aspect_ratio': '16:9',
'sound': True,
'images': [
'https://example.com/cyclist-reference.jpg',
'https://example.com/forest-trail-reference.png'
],
'videos': ['https://example.com/camera-movement-reference.mp4'],
'audios': ['https://example.com/forest-ambience-reference.mp3']
}
)
media_reference_result = media_reference_response.json()
media_reference_task_id = media_reference_result['data']['task_id']
# Step 2: Poll for results
task_id = response.json()['data']['task_id']
poll_url = f"https://api.flaq.ai/api/v1/video/{task_id}"
while True:
poll_result = requests.get(poll_url, headers={'Authorization': 'Bearer YOUR_API_KEY'}).json()
status = poll_result['data']['task_status']
if status == 'succeed':
print(poll_result['data']['task_result']['videos'][0]['url'])
break
if status == 'failed':
print(poll_result['data']['task_status_msg'])
break
time.sleep(10)
# Step 1: Submit generation request
curl -X POST https://api.flaq.ai/api/v1/video/task \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model_name": "magi-2-reference-to-video",
"prompt": "Use the reference image for the subject, the reference video for the camera movement, and the reference audio for the ambience",
"duration": 8,
"aspect_ratio": "16:9",
"sound": true,
"images": ["https://example.com/subject-reference.jpg"],
"videos": ["https://example.com/camera-movement-reference.mp4"],
"audios": ["https://example.com/ambience-reference.mp3"]
}'
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1]
# <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
curl -X POST https://api.flaq.ai/api/v1/video/task \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model_name": "magi-2-reference-to-video",
"prompt": "Show the cyclist from <<<image_1>>> on the trail in <<<image_2>>>. Follow the camera movement in <<<video_1>>> and use <<<audio_1>>> as a reference for the forest ambience",
"duration": 10,
"aspect_ratio": "16:9",
"sound": true,
"images": [
"https://example.com/cyclist-reference.jpg",
"https://example.com/forest-trail-reference.png"
],
"videos": ["https://example.com/camera-movement-reference.mp4"],
"audios": ["https://example.com/forest-ambience-reference.mp3"]
}'
# Step 2: Poll for results
# Replace {task_id} with the task_id returned from the submit response
curl -X GET "https://api.flaq.ai/api/v1/video/{task_id}" \
-H "Authorization: Bearer YOUR_API_KEY"
| 매개변수 | 가격 | 원래 가격 | 할인 |
|---|
개발자와 콘텐츠 제작팀은 Flaq AI의 Sand AI Magi 2 Reference-to-Video API를 통해 참조 이미지, 동영상 클립, 오디오 트랙을 선택적으로 활용해 새로운 동영상을 만들 수 있습니다. 하나의 프롬프트에서 화면, 움직임, 소리의 참조 자료를 자유롭게 조합하거나 한 종류만 사용할 수 있으며 클립 길이, 화면비, 오디오 동시 생성 여부도 지정할 수 있습니다.
참고 참조 이미지, 동영상 클립, 오디오 파일은 모두 선택 사항이며 자유롭게 조합할 수 있습니다. 참조 미디어를 모두 생략하면 Magi 2는 프롬프트만으로 동영상을 생성합니다. 요청을 보내기 전에 지원 파일 형식과 용량 제한, 참조 동영상과 오디오에 각각 적용되는 총 재생 시간 제한을 확인하세요. 요금은 요청한 출력 길이를 기준으로 초 단위로 계산되며, 모든 프롬프트와 자료는 Sand AI의 콘텐츠 안전 가이드라인을 따라야 합니다.
Magi 2 Reference-to-Video와 Magi 2 Text-to-Video
Text-to-Video는 텍스트 지시만으로 동영상을 생성합니다. Reference-to-Video는 이미지, 동영상, 오디오를 선택적으로 추가해 장면의 모습, 움직임, 소리를 구체적으로 지정할 수 있습니다.
Magi 2 Reference-to-Video와 Magi 2 Image-to-Video
Image-to-Video는 필수 입력인 첫 프레임에 움직임을 더하며, 마지막 프레임도 선택적으로 지정할 수 있습니다. Reference-to-Video는 이미지, 동영상, 오디오 참조 자료를 여러 개 선택해 완전히 새로운 장면을 구성할 수 있습니다.
Magi 2 Reference-to-Video와 Seedance 2.5 Reference-to-Video
두 모델 모두 이미지, 동영상, 오디오 참조 자료를 선택적으로 조합하고 프롬프트로 연출을 지시할 수 있습니다. Seedance 2.5 Reference-to-Video는 출력 해상도를 단계별로 선택할 수 있습니다. Magi 2 Reference-to-Video는 Sand AI의 참조 기반 생성 방식으로 클립 길이를 직접 지정할 수 있고 출력 시간에 따라 초 단위로 과금됩니다.
Magi 2 Reference-to-Video와 Wan Reference-to-Video
Wan Reference-to-Video는 업로드한 시각 자료를 참조해 동영상을 생성합니다. Flaq AI의 Magi 2 Reference-to-Video는 한 요청에서 이미지, 동영상 클립, 오디오 트랙을 함께 사용할 수 있으며 다양한 화면비를 지원합니다.
Flaq AI에서 제공하는 Magi 2 Reference to Video의 실시간 매개변수, 지원 입력 및 기능입니다.
API 요청 전에 Playground에서 모델을 체험해 보세요.
아래 모델 ID를 Magi 2 Reference to Video API 요청에 복사하세요.
Flaq AI에서 Sand AI의 Magi 2 API로 참조 자료를 활용해 동영상을 만드세요. 이미지로 외관을, 클립으로 움직임을, 오디오로 장면의 소리를 이끌 수 있습니다. 함께 조합하세요.
지원 작업은 참조-투-비디오입니다. 사용 가능한 입력과 설정에는 길이, 화면 비율, 참조 이미지, 참조 동영상, referenceAudios, referenceSubjects가 있습니다. 지원하는 값은 사양을 확인하세요.
과금 방식은 초당입니다. 위 요금표에 요율과 적용 요율을 결정하는 설정이 나와 있습니다.
시스템 오류로 작업이 실패하면 잔액이 차감되지 않습니다.
요청의 모델 ID로 magi-2-reference-to-video를 사용하세요. 인증과 요청 세부 사항은 API 문서를 참고하세요.
다른 모델로는 Magi 2 Text to Video, Magi 2 Image to Video가 있습니다. 각 모델 페이지에서 지원 입력, 출력 설정, 요금을 비교하세요.
구매한 크레딧은 만료되지 않습니다. 생성 결과의 상업적 이용에는 Flaq AI 이용 약관과 해당 모델 제공업체의 약관이 적용됩니다.
브라우저에서 빠른 이미지 및 비디오 워크플로를 위한 여러 AI 제작 도구를 살펴본 뒤, 성공한 아이디어를 Flaq AI의 프로덕션 준비 모델 API로 확장하세요. Flaq AI는 모든 모델을 위한 통합 API 레이어를 제공해 워크플로를 쉽게 사용하고 확장할 수 있게 합니다.