Runway
Generate videos and images using Runway's AI creative tools.
On this page
Connect
Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("runway", action, input) resolves with the provider's answer and rejects when Runway isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "runway"} says whether yours can call it.
// workflows/notify.ts: call Runway when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellRunway = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Runway isn't connected.
const output = await step.run("Runway", () =>
step.ctx.integrations.invoke("runway", "cancel_or_delete_task", {
"taskId": "<task id>"
}),
);
step.ctx.log("Runway answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "runway",
"piece_action": "cancel_or_delete_task",
"input": {
"taskId": "<task id>"
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/runway/cancel_or_delete_task" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"taskId":"<task id>"}}'Actions
cancel_or_delete_task
Cancel or Delete Task. Cancel or delete a task. Running/pending tasks are cancelled, completed tasks are deleted.
| Input | Type | Description |
|---|---|---|
taskIdrequired | text | The ID of the task to cancel or delete (UUID format) |
generate_image_from_text
Generate Image From Text. Generates an image using a text prompt via Runway's AI models
| Input | Type | Description |
|---|---|---|
modelrequired | one of "gen4_image" | "gen4_image_turbo" | AI model to use for image generation |
promptTextrequired | long text | Describe what you want to see in the image (max 1000 characters) |
ratiorequired | one of "1920:1080" | "1080:1920" | "1024:1024" | "1360:768" | "1080:1080" | "1168:880" | "1440:1080" | "1080:1440" | "1808:768" | "2112:912" | "1280:720" | "720:1280" | Resolution of the output image |
seedoptional | number | Random seed for reproducible results (0-4294967295) |
referenceImagesoptional | array | Up to 3 reference images (required for gen4_image_turbo) |
publicFigureThresholdoptional | one of "auto" | "low" | How strict content moderation should be for recognizable public figures |
generate_video_from_image
Generate Video From Image. Generates a video based on image(s) and text prompt using Runway's AI models
| Input | Type | Description |
|---|---|---|
modelrequired | one of "gen4_turbo" | "gen3a_turbo" | "veo3" | AI model to use for video generation |
promptImageFileoptional | file | Upload an image file to use as the video's starting frame |
promptImageUrloptional | text | HTTPS URL of an image to use as the video's starting frame |
imagePositionoptional | one of "first" | "last" | Position of the image in the video (last frame only supported by gen3a_turbo) |
promptTextoptional | long text | Describe what should happen in the video (max 1000 characters) |
ratiorequired | object (depends on other props) | Available resolutions depend on the selected model |
durationrequired | object (depends on other props) | Available durations depend on the selected model |
seedoptional | number | Random seed for reproducible results (0-4294967295) |
contentModerationoptional | object (depends on other props) | Content moderation settings (not available for veo3) |
get_task_details
Get Task Details. Retrieve details of an existing Runway task by its ID
| Input | Type | Description |
|---|---|---|
taskIdrequired | text | The unique ID of the task to retrieve (UUID format) |
downloadOutputoptional | boolean | Download and return the generated files as attachments (if task succeeded) |
Details
- Id
runway- Category
- AI and ML
- Tags
- video, image, generation, creative, ai
- Package
@activepieces/piece-runway@0.1.3- Runs
- Through the integration runner