npx skills add ...
npx skills add runwayml/skills --skill rw-integrate-image
Help users integrate Runway image generation APIs (text-to-image with reference images)
npx skills add runwayml/skills --skill rw-integrate-image
PREREQUISITE: Run
+rw-check-compatibilityfirst. Run+rw-fetch-api-referenceto load the latest API reference before integrating. Requires+rw-setup-api-keyfor API credentials. Requires+rw-integrate-uploadswhen the user has local reference images.
Help users add Runway image generation to their server-side code.
| Model | Best For | Cost | Speed |
|---|---|---|---|
gen4_image | Highest quality | 5 credits (720p), 8 credits (1080p) | Standard |
gen4_image_turbo | Fast generation | 2 credits | Fast |
gemini_2.5_flash | Google Gemini model | 5 credits | Standard |
Model selection guidance:
gen4_image — best qualitygen4_image_turbo — cheapest and fastestreferenceImages[].uri is fetched server-side by the Runway API — treat it like any outbound fetch:
runway:// URIs from +rw-integrate-uploads — scoped to your account, no arbitrary web content.https://, allowlist trusted hosts, reject private addresses. See the Express.js example below.req.body.referenceImages straight into textToImage.create. The SDK snippets below use raw URLs for brevity — they aren't production templates.POST /v1/text_to_imageReference images let you guide the generation with visual references. Use @Tag syntax in the prompt to reference specific images.
Recommended: upload via +rw-integrate-uploads and pass the returned runway:// URI.
External URLs also work — only pass origins you control (see Security):
| Parameter | Type | Description |
|---|---|---|
model | string | Model ID (required) |
promptText | string | Text description of the image (required) |
ratio | string | Aspect ratio, e.g. '1280:720', '720:1280', '1080:1080' |
referenceImages | array | Optional. Array of { uri, tag } objects for visual guidance |
+rw-integrate-uploads so inputs are runway:// URIs. External URLs only from origins you control (see Security).For browser uploads: POST files to your server, upload via
+rw-integrate-uploads, and pass therunway://URI. Don't accept raw URLs from the browser.
@Tag syntax in the prompt — the tag must match the tag field in the referenceImages array.+rw-integrate-uploads first, then use the runway:// URI.gen4_image_turbo is the cheapest option at 2 credits per image — good for prototyping.