Docs menuinvideo Platform docsQuickstartFor AI agentsAPI referenceAuthenticationRequestsFilesErrorsLimitsBilling and balanceCatalogueProvider keys (BYOK)Formats and model IDsChat completionsOpenAI ResponsesAnthropic MessagesGeminiStreaming chat answersTools (function calling)Structured output (JSON)VideoAudioUse your own SDKOpenAI mediaElevenLabsReplicatefalGemini mediaxAIRunwayLumaDeepgram and CartesiaMakers' own APIsVideo provider formatsImage provider formatsAudio provider formatsLLM provider formatsGenerate and edit imagesTest your integrationWorkspaces and membersSecurityService accountsModels
View as markdown

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:

text
https://platform-api.invideo.io/runway
python
import 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.

Runway - Docs | invideo Platform