Skip to main content

RunAPI Veo 3 SDK for text-to-video, video extension, and video upscale workflows in JavaScript, Python, Ruby, Go, Java, and PHP

Project description

Veo 3 API Python SDK for RunAPI

The Veo 3 Python SDK is the language-specific package for Veo 3 on RunAPI. Use this package for video generation, animation, and video editing workflows when your application needs request bodies, task status lookup, and consistent RunAPI errors in Python.

This README is the Python package guide inside the public veo-3.1-sdk repository. For the repository overview, start at ../README.md; for model details, use https://runapi.ai/models/veo-3.1; for API reference, use https://runapi.ai/docs#veo-3.1; for SDK docs, use https://runapi.ai/docs#sdk-veo-3.1.

Install

pip install runapi-veo-3-1

Quick start

from runapi.veo_3_1 import Veo31Client

client = Veo31Client()  # reads RUNAPI_API_KEY, or pass api_key="sk-..."

task = client.text_to_video.create(
    model="veo-3.1-fast",
    prompt="A drone shot over mountains at sunset",
    duration_seconds=8,
)
status = client.text_to_video.get(task.id)

extension = client.extend_video.create(
    source_task_id=task.id,
    prompt="Continue the flight toward the coastline",
)

upscale = client.upscale_video.create(
    source_task_id=task.id,
    output_resolution="4k",
)

Use create to submit a task and return quickly, get to fetch the latest task state, and run when a script should create and poll until completion:

result = client.text_to_video.run(
    model="veo-3.1-fast",
    prompt="A serene mountain lake at dawn",
)
print(result.videos[0].url)

In web request handlers, prefer create plus webhook or later get polling so a worker is not held open.

RunAPI-generated file URLs are temporary. Download and store generated images, videos, audio, or other files in your own durable storage within 7 days; do not treat returned URLs as long-term assets.

Language notes

Pass parameters as keyword arguments and catch the runapi.veo_3_1 error classes when building video jobs or scripts. Text-to-video request bodies can include duration with 4, 6, or 8 seconds. The available resources are text_to_video, extend_video, and upscale_video. Keep RUNAPI_API_KEY in the environment or your secret manager; never commit API keys or callback secrets.

Links

License

Licensed under the Apache License, Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runapi_veo_3_1-0.1.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runapi_veo_3_1-0.1.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file runapi_veo_3_1-0.1.2.tar.gz.

File metadata

  • Download URL: runapi_veo_3_1-0.1.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for runapi_veo_3_1-0.1.2.tar.gz
Algorithm Hash digest
SHA256 02059a4e2faaaf2833b706dbeea5587c307fc237413350303189ce2f27402bc3
MD5 6f05b38f40b9b5921fe8d2d2fb012bde
BLAKE2b-256 7ce27df9a5089027d11e8c9f46c324f4a8b913c93136c4370ab0b1781ab7ad9e

See more details on using hashes here.

File details

Details for the file runapi_veo_3_1-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: runapi_veo_3_1-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for runapi_veo_3_1-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e8565b8524bb8a3dce3e5d1d27ddd0438c1ba3585fc6d32edcca18f88b6eb32
MD5 7789b42e1b8c46960434fab6c7236a28
BLAKE2b-256 c044419a639247b74222408b1a8c455f5ee82b4076e9501f27b52b03bef40bc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page