Skip to main content

Vidu Python SDK for RunAPI

Create image-to-video or reference-to-video tasks, retrieve their status, or use run to poll until completion. Validation runs on the RunAPI server.

Install

pip install runapi-vidu

Quick start

Set RUNAPI_API_KEY in your environment. Replace the example image URL with a publicly accessible reference image.

from runapi.vidu import ViduClient

client = ViduClient()  # reads RUNAPI_API_KEY
result = client.reference_to_video.run(
    model="vidu-q4-reference-to-video",
    prompt="Animate the referenced scene with a slow camera pan",
    reference_image_urls=["https://cdn.runapi.ai/public/samples/image.jpg"],
    audio=False,
)
print(result.videos[0].url)

Use create to submit without waiting and get to retrieve the task by ID. Reference generation requires a prompt and 1–15 image URLs; it also accepts up to 3 MP3 reference audio URLs. Images must be JPG/JPEG/PNG/WEBP, at most 50 MB each; MP3 references must be 3–12 seconds and at most 50 MB each. Remote file properties are checked during provider processing, so a task can fail asynchronously.

See the API reference and SDK guide. For current pricing, use the canonical model pages: image-to-video and reference-to-video.

Metadata

Release files for runapi-vidu 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runapi-vidu 0.2.0
File Size Uploaded Provenance Actions
runapi_vidu-0.2.0.tar.gz 3.6 kB Without provenance Details for runapi_vidu-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runapi-vidu 0.2.0
File Interpreter ABI Platform Actions
runapi_vidu-0.2.0-py3-none-any.whl Python 3 none any Details for runapi_vidu-0.2.0-py3-none-any.whl

Total release size: 8.9 kB

Release files / runapi_vidu-0.2.0.tar.gz

Download URL runapi_vidu-0.2.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
80ae16a4eb5aab331033270552028e11520d0fa284dd42e771f203b918bc58ad
BLAKE2b-256 checksum
How to use checksums
c1f646ee566c3617434ae5acfb00aff547d0ed7fc9757a2078f8364f2b6c044b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / runapi_vidu-0.2.0-py3-none-any.whl

Download URL runapi_vidu-0.2.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b50ed2b794b59427e9b1158a2b543f503e46aa51d3118dd31ab5466f1abcf054
BLAKE2b-256 checksum
How to use checksums
e26ff53f5bcd76a6240a2221a17876335c1d51d33e2b7b4325e0853186605f3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for runapi-vidu 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page