Skip to main content

Luma modify-video client for RunAPI

Project description

Luma Python SDK for RunAPI

The Luma Python SDK is the language-specific package for Luma on RunAPI. Use it for video modification flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in Python.

For model details, use https://runapi.ai/models/luma; for API reference, use https://runapi.ai/docs#luma; for SDK docs, use https://runapi.ai/docs#sdk-luma.

Install

pip install runapi-luma

Quick start

from runapi.luma import LumaClient

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

task = client.modify_video.create(
    model="ray-2-modify-video",
    prompt="Make it cinematic with warm golden tones",
    source_video_url="https://example.com/source.mp4",
)
status = client.modify_video.get(task.id)

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

result = client.modify_video.run(
    model="ray-2-modify-video",
    prompt="Restyle as a hand-painted animation",
    source_video_url="https://example.com/source.mp4",
)
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 videos 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.luma error classes when building video jobs or scripts. The available resource is modify_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_luma-0.1.0.tar.gz (4.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_luma-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: runapi_luma-0.1.0.tar.gz
  • Upload date:
  • Size: 4.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_luma-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10d170cdf5d064d893c58d24afbac2c6e2d5fbc1ed8d09bbc2249aa4a5442c5e
MD5 e98fc91ab1803743c3278b0ef2eaf687
BLAKE2b-256 b52e71f5022e522d6530548c910ae2bf5d8973176d8f5782ceaa0b6e9c37ec45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: runapi_luma-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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_luma-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58652f6e44fb7e3c99339c369cbe061315a7979562e1dd481d71de02b79cf8e1
MD5 de24039ca5c25a7ab467b02691ac58e2
BLAKE2b-256 12dc101ef0fa4fffb54d723b2adb4573aa3dfbe3081c285bd44c084936cc3663

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