
텍스트를 이미지로
텍스트 프롬프트에서 AI 이미지 만들기
Alibaba Wan 3.0 참조 미디어 동영상 생성 API를 무료로 체험하고 이미지, 영상, 오디오, 문서 또는 웹페이지로 생성 방향을 안내하세요. 유연한 제작에 활용하세요.
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: 'wan-3.0-reference-to-video',
prompt: 'Use the references to create a cinematic product launch with coordinated motion and sound',
duration: 12,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
images: ['https://example.com/product-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/sound-reference.mp3'],
files: ['https://example.com/creative-brief.pdf'],
seed: 42
})
});
const { data } = await response.json();
const taskId = data.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));
}
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': 'wan-3.0-reference-to-video',
'prompt': 'Use the references to create a cinematic product launch with coordinated motion and sound',
'duration': 12,
'resolution': '1080p',
'aspect_ratio': '16:9',
'sound': True,
'images': ['https://example.com/product-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/sound-reference.mp3'],
'files': ['https://example.com/creative-brief.pdf'],
'seed': 42
}
)
result = response.json()
task_id = 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)
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": "wan-3.0-reference-to-video",
"prompt": "Use the references to create a cinematic product launch with coordinated motion and sound",
"duration": 12,
"resolution": "1080p",
"aspect_ratio": "16:9",
"sound": true,
"images": ["https://example.com/product-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/sound-reference.mp3"],
"files": ["https://example.com/creative-brief.pdf"],
"seed": 42
}'
# 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"
| 매개변수 | 가격 | 원래 가격 | 할인 |
|---|
Wan 3.0 Reference-to-Video API는 프롬프트와 선택적 이미지, 동영상, 오디오, 문서 또는 공개 웹페이지 참조를 사용하여 동영상을 생성합니다. 개발자는 지원되는 입력을 통해 시각적 정체성, 움직임, 사운드, 맥락, 장면 연출을 안내하면서 길이, 해상도, 화면 비율, 사운드, 시드를 설정할 수 있습니다. Flaq AI는 멀티모달 요청을 제출하고 완성된 동영상을 가져올 수 있는 작업 기반 워크플로를 제공합니다.
참고 참조 입력은 선택 사항이지만, 제공하는 모든 에셋은 형식 및 제한 요구 사항을 충족해야 합니다. 참조 파일과 웹페이지 링크는 동일한 요청에서 함께 사용할 수 없습니다. 해외 웹페이지 URL은 해외 서비스에서 지원되지만 중국 국내 서비스에서는 분석할 수 없습니다.
Wan 3.0과 Wan 2.7 Reference-to-Video 비교
Wan 2.7은 이미지, 동영상, 음성 참조에 중점을 두며 시각 참조의 통합 제한을 적용합니다. Wan 3.0은 미디어별 독립 제한과 문서 및 공개 웹페이지 맥락을 추가하여 워크플로를 확장합니다.
Wan 3.0과 MiniMax H3 Reference-to-Video 비교
MiniMax H3는 시각 및 오디오 참조를 통한 멀티모달 동영상 연출을 지원합니다. Wan 3.0은 더 폭넓은 크리에이티브 원본 자료를 다루는 팀을 위해 문서 및 웹페이지 입력 옵션을 추가합니다.
Wan 3.0과 Seedance 2.5 Reference-to-Video 비교
Seedance 2.5는 시청각 생성 워크플로에서 이미지, 동영상, 오디오 참조를 사용합니다. Wan 3.0은 선택적 문서 또는 공개 링크 맥락을 지원하는 Wan 제품군의 대안을 제공합니다.
Wan 3.0과 Kling Video O3 Reference-to-Video 비교
Kling Video O3는 참조 생성 및 동영상 편집 변형을 지원합니다. Wan 3.0은 유연한 출력 및 사운드 제어를 갖춘 Alibaba 중심의 멀티모달 요청 형식을 제공합니다.
Wan 3.0과 Runway References 비교
Runway는 광범위한 크리에이티브 작업 공간에 참조 기능을 통합합니다. Wan 3.0은 참조 기반 생성을 자체 제품 및 자동화 워크플로에 직접 구축하는 개발자에게 적합합니다.
브라우저에서 빠른 이미지 및 비디오 워크플로를 위한 여러 AI 제작 도구를 살펴본 뒤, 성공한 아이디어를 Flaq AI의 프로덕션 준비 모델 API로 확장하세요. Flaq AI는 모든 모델을 위한 통합 API 레이어를 제공해 워크플로를 쉽게 사용하고 확장할 수 있게 합니다.