0.0
The project is in a healthy, maintained state
Install `runapi-pixverse` and use `RunApi::PixVerse::Client` for all five PixVerse V6 video resources.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 0.3.2
 Project Readme

RunAPI

PixVerse API SDKs for JavaScript, Python, Ruby, Go, Java, and PHP on RunAPI.

npm PyPI RubyGems Go Reference Maven Central License


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

Install

npm install @runapi.ai/pixverse
pip install runapi-pixverse
gem install runapi-pixverse
go get github.com/runapi-ai/pixverse-sdk/go@latest

Java artifact: ai.runapi:runapi-pixverse. PHP package: runapi-ai/pixverse.

JavaScript

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