Hailuo text-to-video and image-to-video client for RunAPI
Project description
Hailuo Python SDK for RunAPI
The Hailuo Python SDK is the language-specific package for Hailuo on RunAPI. Use it for text-to-video and image-to-video 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/hailuo; for API reference, use https://runapi.ai/docs#hailuo; for SDK docs, use https://runapi.ai/docs#sdk-hailuo.
Install
pip install runapi-hailuo
Quick start
from runapi.hailuo import HailuoClient
client = HailuoClient() # reads RUNAPI_API_KEY, or pass api_key="sk-..."
task = client.text_to_video.create(
model="hailuo-02-text-to-video-standard",
prompt="A cinematic drone shot over a coastal city at dusk",
)
status = client.text_to_video.get(task.id)
video = client.image_to_video.create(
model="hailuo-2.3-image-to-video-standard",
prompt="Slowly zoom in as the waves roll",
first_frame_image_url="https://example.com/source.jpg",
)
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.text_to_video.run(
model="hailuo-02-text-to-video-standard",
prompt="A futuristic cityscape at dusk",
)
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.hailuo error classes
when building video jobs or scripts. The available resources are text_to_video
and image_to_video. Keep RUNAPI_API_KEY in the environment or your secret
manager; never commit API keys or callback secrets.
Links
- Model page: https://runapi.ai/models/hailuo
- SDK docs: https://runapi.ai/docs#sdk-hailuo
- Product docs: https://runapi.ai/docs#hailuo
- Pricing and rate limits: https://runapi.ai/models/hailuo/02-text-to-video-pro
- Full catalog: https://runapi.ai/models
License
Licensed under the Apache License, Version 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runapi_hailuo-0.1.0.tar.gz.
File metadata
- Download URL: runapi_hailuo-0.1.0.tar.gz
- Upload date:
- Size: 5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac72cd4837fd4ce28c49bf7c034743878f20f1a4560b66bf3b096cf564be1857
|
|
| MD5 |
d7076145ea4a204d857d129b9df5536e
|
|
| BLAKE2b-256 |
907f9610350dc026cec9b34b4a8b444c3f4185f27e4a2b4c2c6c2c263f8d7b4e
|
File details
Details for the file runapi_hailuo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: runapi_hailuo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9544a27f50bd9ec9bd711d2e3672a6847d853a2244af808d92ac15fe31dd0ed9
|
|
| MD5 |
f566b01669c075037d2810c772d8cece
|
|
| BLAKE2b-256 |
e1ec3007868d6c2242fb673f45e193f01db25410dbee86d436fe7f8e0a42efea
|