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.1.tar.gz (6.0 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.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: runapi_veo_3_1-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","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.1.tar.gz
Algorithm Hash digest
SHA256 d10970b1063cef03f4dcc40bcedf779fa2942daf124033bad503083d9183fe50
MD5 048ce71e31faae4c3a9eb9e25e5a9f58
BLAKE2b-256 2712092b952b96fe3d073308ae0176766655becf0479c2dde34621f94f736618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: runapi_veo_3_1-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0139a09e553699225c9c59e1762fc3c75b16d1b72afede8402bd871d5705a375
MD5 a34379442a65e64e2aa9f4b8fca436f5
BLAKE2b-256 da4fe72151f530845de0df6cb6ddaafc53deeb9be1950edc96aa1895d521c289

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