Generate video dari teks (text-to-video) pakai model Wan 2.2 — output MP4 tanpa watermark/login. Catatan: rate-limited (kuota GPU), URL video ephemeral.
generatefailed the last check/v1/ai:upsampler/generateno cache10 paramschecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("ai:upsampler", "generate", {
"prompt": "a red sports car driving on a coastal road at sunset, cinematic motion",
"image": "https://example.com/cat.jpg"
});
console.log(data);curl -X POST "https://api.zpi.web.id/v1/ai:upsampler/generate" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx" \
-H "content-type: application/json" \
--data '{"prompt":"a red sports car driving on a coastal road at sunset, cinematic motion","image":"https://example.com/cat.jpg","model":"","duration":0,"width":0,"height":0,"seed":0,"negativePrompt":"","steps":0,"guidance":0}'/v1/ai:upsampler/generateGenerate video pendek dari prompt teks (Wan 2.2).promptstringrequiredin bodyimagestringoptionalin bodyprompt; output dimensions auto-fit the image. Omit for pure text-to-videomodelenumoptionalin bodydurationnumberoptionalin bodywidthnumberoptionalin bodyheightnumberoptionalin bodyseednumberoptionalin bodynegativePromptstringoptionalin bodystepsnumberoptionalin bodyguidancenumberoptionalin bodycurl -X POST "https://api.zpi.web.id/v1/ai:upsampler/generate" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"mode": "text-to-video",
"seed": 1234567,
"model": "wan",
"steps": 4,
"width": 704,
"height": 704,
"prompt": "a red sports car driving on a coastal road at sunset, cinematic motion",
"status": "completed",
"videos": [
{
"url": "https://<upstream>/file/tmp/abc123/output.mp4",
"width": 704,
"height": 704,
"durationSeconds": 2
}
],
"duration": 2,
"guidance": 0,
"provider": "upsampler",
"elapsedMs": 41230
}