from magic_hour import Client
from os import getenv
client = Client(token=getenv("MAGIC_HOUR_API_KEY"))
image_file_path = client.v1.files.upload_file("/path/to/image-to-video-perfume-start.webp")
res = client.v1.image_to_video.create(
style={"prompt": "Slow orbit, moving studio light and mist. Keep the bottle unchanged."},
assets={"image_file_path": image_file_path},
end_seconds=3.0,
name="My first AI video",
model="ltx-2.5",
resolution="480p",
audio=True,
)