Runway

Generate videos and images using Runway's AI creative tools.

AI and MLAPI key4 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (4)
  4. cancel_or_delete_task
  5. generate_image_from_text
  6. generate_video_from_image
  7. get_task_details
  8. Details

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.

Workflow
// 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);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "runway",
    "piece_action": "cancel_or_delete_task",
    "input": {
      "taskId": "<task id>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
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.

InputTypeDescription
taskIdrequiredtextThe 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

InputTypeDescription
modelrequiredone of "gen4_image" | "gen4_image_turbo"AI model to use for image generation
promptTextrequiredlong textDescribe what you want to see in the image (max 1000 characters)
ratiorequiredone 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
seedoptionalnumberRandom seed for reproducible results (0-4294967295)
referenceImagesoptionalarrayUp to 3 reference images (required for gen4_image_turbo)
publicFigureThresholdoptionalone 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

InputTypeDescription
modelrequiredone of "gen4_turbo" | "gen3a_turbo" | "veo3"AI model to use for video generation
promptImageFileoptionalfileUpload an image file to use as the video's starting frame
promptImageUrloptionaltextHTTPS URL of an image to use as the video's starting frame
imagePositionoptionalone of "first" | "last"Position of the image in the video (last frame only supported by gen3a_turbo)
promptTextoptionallong textDescribe what should happen in the video (max 1000 characters)
ratiorequiredobject (depends on other props)Available resolutions depend on the selected model
durationrequiredobject (depends on other props)Available durations depend on the selected model
seedoptionalnumberRandom seed for reproducible results (0-4294967295)
contentModerationoptionalobject (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

InputTypeDescription
taskIdrequiredtextThe unique ID of the task to retrieve (UUID format)
downloadOutputoptionalbooleanDownload 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