zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Artificial Intelligence/Upsampler
Logo Upsampler

Upsampler

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.

Endpoints
1
Requests
6
Updated
2 months ago
For LLMs
llms.txt
Endpoint health6 hours ago
  • generatefailed the last check
0/1 passingdaily 01:00 WIB

Playground

1 endpoint
POST/v1/ai:upsampler/generateno cache10 paramschecking key…
Parameters
promptstringrequired
text/plain

Text prompt describing the video to generate

imagestring
text/plain

Optional source image URL to animate (image-to-video). When provided, the model animates this image guided by prompt; output dimensions auto-fit the image. Omit for pure text-to-video

modelenum

Model. Only wan (Wan 2.2 5B, fast 4-step) is available. Default wan

durationnumber

Video length in seconds (1-8). Default 2

widthnumber

Output width px, multiple of 32 (256-1024). Default 704

heightnumber

Output height px, multiple of 32 (256-1024). Default 704

seednumber

Seed for reproducibility. Default random

negativePromptstring
text/plain

Things to avoid in the video. Has a sensible default

stepsnumber

Inference steps (1-8). More steps = higher quality but slower. Default 4

guidancenumber

Guidance scale (0-5). Higher = follow prompt more strictly. Default 0 (recommended for the fast model)

·
Response
EXAMPLE
{
  "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
}

Code examples

Generate Video
zpi-sdkrecommended
// 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);
Full SDK reference →
request.sh
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}'

Full reference

1 endpoint · plain text
POSTGenerate Video/v1/ai:upsampler/generateGenerate video pendek dari prompt teks (Wan 2.2).

Parameters

promptstringrequiredin body
Text prompt describing the video to generate
imagestringoptionalin body
Optional source image URL to animate (image-to-video). When provided, the model animates this image guided by prompt; output dimensions auto-fit the image. Omit for pure text-to-video
modelenumoptionalin body
Model. Only wan (Wan 2.2 5B, fast 4-step) is available. Default wan Values: wan.
durationnumberoptionalin body
Video length in seconds (1-8). Default 2
widthnumberoptionalin body
Output width px, multiple of 32 (256-1024). Default 704
heightnumberoptionalin body
Output height px, multiple of 32 (256-1024). Default 704
seednumberoptionalin body
Seed for reproducibility. Default random
negativePromptstringoptionalin body
Things to avoid in the video. Has a sensible default
stepsnumberoptionalin body
Inference steps (1-8). More steps = higher quality but slower. Default 4
guidancenumberoptionalin body
Guidance scale (0-5). Higher = follow prompt more strictly. Default 0 (recommended for the fast model)

Request

curl -X POST "https://api.zpi.web.id/v1/ai:upsampler/generate" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "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
}

Related APIs

More in ai

Copilot AI

ai/copilot

Microsoft Copilot — chat completion OpenAI-compatible, support streaming SSE

829 calls·10m cache

ChatGPT (chatgpt.com)

ai/chatgpt

ChatGPT (mode anonim, tanpa login) dari OpenAI. Endpoint kompatibel OpenAI Chat Completions (stream & non-stream).

706 calls·no cache

Chatex

ai/chatex

Chatex chat — OpenAI-compatible chat completions.

233 calls·no cache

Felo AI

ai/felo

AI search assistant dengan web real-time — OpenAI-compatible, support streaming, return sumber referensi.

200 calls·no cache

Dolphin AI

ai/dolphin

Dolphin 24B uncensored chat — chat completion OpenAI-compatible, support streaming SSE

77 calls·10m cache

Google AI (g.ai)

ai/google-aimode

Asisten penelusuran AI dari Google (AI Mode / g.ai) — jawaban grounded ke web realtime dengan sitasi. OpenAI-compatible chat completions.

67 calls·no cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026