curl --request POST \ --url https://api.apimart.ai/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "pixverse-v6", "prompt": "A cinematic shot of a corgi running through a sunflower field at golden hour", "size": "16:9", "resolution": "540p", "duration": 5 }'
import requestsurl = "https://api.apimart.ai/v1/videos/generations"payload = { "model": "pixverse-v6", "prompt": "A cinematic shot of a corgi running through a sunflower field at golden hour", "size": "16:9", "resolution": "540p", "duration": 5}headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}response = requests.post(url, json=payload, headers=headers)print(response.json())
const url = "https://api.apimart.ai/v1/videos/generations";const payload = { model: "pixverse-v6", prompt: "A cinematic shot of a corgi running through a sunflower field at golden hour", size: "16:9", resolution: "540p", duration: 5};const headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"};fetch(url, { method: "POST", headers: headers, body: JSON.stringify(payload)}) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error("Error:", error));
curl --request POST \ --url https://api.apimart.ai/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "pixverse-v6", "prompt": "A cinematic shot of a corgi running through a sunflower field at golden hour", "size": "16:9", "resolution": "540p", "duration": 5 }'
import requestsurl = "https://api.apimart.ai/v1/videos/generations"payload = { "model": "pixverse-v6", "prompt": "A cinematic shot of a corgi running through a sunflower field at golden hour", "size": "16:9", "resolution": "540p", "duration": 5}headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}response = requests.post(url, json=payload, headers=headers)print(response.json())
const url = "https://api.apimart.ai/v1/videos/generations";const payload = { model: "pixverse-v6", prompt: "A cinematic shot of a corgi running through a sunflower field at golden hour", size: "16:9", resolution: "540p", duration: 5};const headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"};fetch(url, { method: "POST", headers: headers, body: JSON.stringify(payload)}) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error("Error:", error));
curl --request POST \ --url https://api.apimart.ai/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "pixverse-v6", "prompt": "A cinematic shot of a corgi running through a sunflower field at golden hour", "size": "16:9", "resolution": "540p", "duration": 5 }'
import requestsurl = "https://api.apimart.ai/v1/videos/generations"payload = { "model": "pixverse-v6", "prompt": "A cinematic shot of a corgi running through a sunflower field at golden hour", "size": "16:9", "resolution": "540p", "duration": 5}headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"}response = requests.post(url, json=payload, headers=headers)print(response.json())
const url = "https://api.apimart.ai/v1/videos/generations";const payload = { model: "pixverse-v6", prompt: "A cinematic shot of a corgi running through a sunflower field at golden hour", size: "16:9", resolution: "540p", duration: 5};const headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json"};fetch(url, { method: "POST", headers: headers, body: JSON.stringify(payload)}) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error("Error:", error));
{ "model": "pixverse-v6", "prompt": "A neon-lit alley in Tokyo at night, light rain, anamorphic lens flare", "size": "21:9", "resolution": "720p", "duration": 8, "seed": 42, "audio": true}
シナリオ 2:画像から動画
{ "model": "pixverse-v6", "prompt": "Camera slowly zooms in, gentle wind moves the leaves", "image_urls": ["https://example.com/first-frame.jpg"], "resolution": "540p", "duration": 5}
シナリオ 3:始終フレームトランジション
{ "model": "pixverse-v6", "prompt": "transform smoothly from a puppy to a cat", "first_frame_image": "https://example.com/puppy.jpg", "last_frame_image": "https://example.com/cat.jpg", "resolution": "540p", "duration": 5, "motion_mode": "normal"}
シナリオ 4:複数参照画像融合
{ "model": "pixverse-v6", "prompt": "A girl wearing the outfit from image 2, holding the cat from image 3", "img_references": [ "https://example.com/character.jpg", "https://example.com/outfit.jpg", "https://example.com/cat.jpg" ], "size": "9:16", "resolution": "720p", "duration": 5}
シナリオ 5:動画延長
{ "model": "pixverse-v6", "prompt": "the character now walks into a forest", "extend_from_task_id": "task_01JWXXXXXXXXXXXX", "resolution": "540p", "duration": 5}