Runway
Use the Runway SDK with the Platform: image to video, text to video, video to video and text to image. Change the base URL.
Base URL:
https://platform-api.invideo.io/runwayimport os, time
from runwayml import RunwayML
client = RunwayML(api_key=os.environ["INVIDEO_API_KEY"], base_url="https://platform-api.invideo.io/runway")
task = client.text_to_video.create(model="veo-3-fast", prompt_text="A red fox running through snow", ratio="1280:720", duration=4)
while (task := client.tasks.retrieve(task.id)).status in ("PENDING", "RUNNING"):
time.sleep(5)
if task.status != "SUCCEEDED":
raise RuntimeError(getattr(task, "failure", None) or f"Task ended in {task.status}")
print(task.output)Routes: POST /v1/image_to_video, text_to_video, video_to_video, text_to_image, character_performance, video_upscale, and GET /v1/tasks/{id} (PENDING, RUNNING, SUCCEEDED, FAILED). Use any Platform model that matches the route’s modality. Cancelling a task is not supported.