Skip to main content

Veo 3.1 video client for RunAPI

Project description

Veo API Python SDK for RunAPI

The veo api Python SDK is the language-specific package for Veo 3 on RunAPI. Use this veo api package for text-to-video, video extension, and video upscaling flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in Python.

This veo api README is the Python package guide inside the public veo3-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.0.tar.gz (5.7 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.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: runapi_veo_3_1-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 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.0.tar.gz
Algorithm Hash digest
SHA256 644e4db6290606a380d0c1150286a46a1329aa6bf40876f6ed9a6a591e3ac5cf
MD5 b9b815920ccbdf22a6682d5950bd54c9
BLAKE2b-256 db8c7e28bd144262253e730bb08bf1c480352b49c9dc998863aef73d54c6ef3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: runapi_veo_3_1-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae101dbf80f434a39b201122d08df06db154042df15942582bb64dda378ea51
MD5 8f69480d825e52f9eebdb234c80984e7
BLAKE2b-256 050be816c68b0ad51e524adf37316fdc0f0462762933a31d711a2cab596b8fa2

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