Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

RunAPI PixVerse SDK for text-to-video, image-to-video, reference editing, transitions, and video extension in JavaScript, Python, Ruby, Go, Java, and PHP

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages