PixVerse API SDKs for JavaScript, Python, Ruby, Go, Java, and PHP on RunAPI.
Use PixVerse V6 through RunAPI from JavaScript, Python, Ruby, Go, Java, or PHP. The SDK exposes five asynchronous resources: textToVideo, imageToVideo, editVideo, transitionVideo, and extendVideo.
Model details and pricing: https://runapi.ai/models/pixverse/pixverse-v6
npm install @runapi.ai/pixverse
pip install runapi-pixverse
gem install runapi-pixverse
go get github.com/runapi-ai/pixverse-sdk/go@latestJava artifact: ai.runapi:runapi-pixverse. PHP package: runapi-ai/pixverse.
import { PixVerseClient } from '@runapi.ai/pixverse';
const client = new PixVerseClient({ apiKey: process.env.RUNAPI_API_KEY });
const result = await client.textToVideo.run({
model: 'pixverse-v6',
prompt: 'A lantern festival above a calm river at night',
output_resolution: '720p',
duration_seconds: 5,
aspect_ratio: '16:9',
});
console.log(result.videos[0].url);Use create() to submit without waiting, get(id) to query status, and run() to poll until completion. extendVideo accepts an account-owned completed RunAPI source_task_id; it does not accept a caller-supplied video URL.
API reference: https://runapi.ai/docs/api/pixverse/text-to-video