Pika v2.2 is a text-to-video model that creates high-quality videos from text prompts, supporting multiple video sizes and advanced prompt optimization. Ready-to-use REST API, no coldstarts, affordable pricing.
Idle
$0.2per run·~50 / $10
Nurse finishing a long night shift, walking alone through hospital corridor, fatigue in her posture
Family dinner in a small apartment kitchen, lively conversation, warm lighting, cluttered table
A teenager sitting alone on a rooftop, city lights below, headphones on, lost in thought
Police car chasing a motorcycle at night through urban alleys, sirens blaring, shaky cam style
Food delivery worker rushing up apartment stairs, panting, checking phone GPS, camera following from behind
Woman walking alone through a poorly lit parking garage, footsteps echoing, turning around nervously
Elderly man reading a newspaper by the window in a quiet café, morning light streaming through dust particles
Teenagers hanging out at a gas station late at night, drinking soda, laughing under flickering fluorescent lights
A cozy cabin in snowy mountains, smoke rising from the chimney, camera slowly panning, morning golden light, high detail realism
A sports car drifting through sharp turns on a mountain road, tire smoke trailing, action camera, 4K slow motion
Pika V2.2 Text-to-Video is a state-of-the-art text-to-video generation model that creates high-quality videos from text descriptions. Generate cinematic 720p videos with smooth motion and rich detail — simply describe your scene and watch it come to life.
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the video you want to generate. |
| size | No | Output resolution (default: 1280×720). |
| duration | No | Video length in seconds (default: 5). |
| Duration | Price |
|---|---|
| 5 seconds | $0.20 |
| 10 seconds | $0.40 |
Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/pika/v2.2-t2v with your input as JSON. The endpoint returns a prediction id. Start polling the result endpoint around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. On completed, read URLs from data.outputs. Examples for v2.2 T2v below.
# Submit the prediction
curl --fail-with-body --connect-timeout 10 --max-time 60 \
-X POST "https://api.wavespeed.ai/api/v3/pika/v2.2-t2v" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1280*720",
"duration": 5
}'
# Wait at least 2 seconds, then poll. Safe GET requests may be retried.
curl --fail-with-body --connect-timeout 10 --max-time 30 \
--retry 4 --retry-all-errors --retry-delay 1 \
-X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
-H "Authorization: Bearer $WAVESPEED_API_KEY"
# Start at 2 seconds and increase the interval for long-running tasks.
# Stop on completed, failed, cancelled, or timeout.// npm install wavespeed
const { Client } = require('wavespeed');
const apiKey = process.env.WAVESPEED_API_KEY;
if (!apiKey) throw new Error('Set WAVESPEED_API_KEY');
const client = new Client(apiKey, {
maxConnectionRetries: 5,
retryInterval: 1.0,
});
try {
const result = await client.run("pika/v2.2-t2v", {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1280*720",
"duration": 5
}, {
timeout: 3600,
pollInterval: 2.0,
});
console.log(result.outputs);
} catch (error) {
console.error('Generation failed:', error);
process.exitCode = 1;
}# pip install wavespeed
import os
from wavespeed import Client
client = Client(
api_key=os.environ["WAVESPEED_API_KEY"],
max_connection_retries=5,
retry_interval=1.0,
)
try:
output = client.run(
"pika/v2.2-t2v",
{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"size": "1280*720",
"duration": 5
},
timeout=3600.0,
poll_interval=2.0,
)
print(output["outputs"])
except Exception as error:
raise SystemExit(f"Generation failed: {error}") from errorv2.2 T2v is a Pika model for video generation, exposed as a REST API on WaveSpeedAI. Pika v2.2 is a text-to-video model that creates high-quality videos from text prompts, supporting multiple video sizes and advanced prompt optimization. Ready-to-use REST API, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates production-oriented Python, JavaScript, and cURL examples with timeouts, transient-error handling, and safe GET retries. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/pika/pika-v2.2-t2v.
v2.2 T2v starts at $0.20 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
Key inputs: `prompt`, `duration`, `size`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/pika/pika-v2.2-t2v.
Average end-to-end generation time on WaveSpeedAI is around 76 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.
Commercial usage rights depend on the model's license, set by its provider (Pika). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.