Agent Native

rw-generate-image

This skill generates images using the Runway API by executing Python scripts with text prompts and optional reference images.

by RunwayOfficial publisherNot reviewed

Identity proven by GitHub's verified organisation badge (runwayml)

Agents
Claude Code
License
MIT (permissive)
Pin
e3dffc1pinned Oct 9, 2026
Context cost
about 940 tokenswhen the skill loads
GitHub stars
72on runwayml/skills
Scripts
None found

What it does

“Generate images directly using the Runway API via runnable scripts. Supports text-to-image with optional reference images.”
The author's description, from SKILL.md

Generated summary from the skill's own text

This skill generates images using the Runway API by executing Python scripts with text prompts and optional reference images. It supports multiple models optimized for different quality and speed tradeoffs, polls for completion, and saves results to the user's working directory.

When to use it

  • Creating images from text descriptions with Runway API access
  • Generating styled variations using reference images as guides
  • Choosing between fast drafts or high-quality outputs based on needs
  • Building reference-based images with gen4_image_turbo model

When not to

  • When Runway API credentials are not available or configured
  • Generating images without text descriptions or reference images needed
  • Requiring real-time image generation without polling delays

Install

These commands install from the publisher's repository and need no account.

skills CLI

npx skills add runwayml/skills --skill rw-generate-image

Installs from the repository's default branch, which may have changed since the commit we checked.

GitHub CLI 2.90 or later

gh skill install runwayml/skills rw-generate-image@e3dffc15498e9588e7815f37b9ecf10e8bc2c902

Installs the commit we checked (e3dffc1).

Copy by hand

Download the folder at e3dffc1 and put it in .claude/skills/rw-generate-image for Claude Code and in .agents/skills/rw-generate-image for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.

Skill folder on GitHub at e3dffc1

Claude Code plugin

/plugin install runway-api@claude-plugins-official

The publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.

Copy for your agent

A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.

Prompt

Install the agent skill "rw-generate-image" by Runway.

Source, pinned to commit e3dffc15498e9588e7815f37b9ecf10e8bc2c902:
https://github.com/runwayml/skills/tree/e3dffc15498e9588e7815f37b9ecf10e8bc2c902/skills/rw-generate-image

1. Download that folder at exactly this commit. Do not use the default branch.
2. Copy every file unchanged, keeping the folder structure, into .claude/skills/rw-generate-image/ for Claude Code and .agents/skills/rw-generate-image/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist.
3. Do not edit the files, and do not run any script in the folder unless I ask you to.
4. When you are done, list the files you copied and where you put them.

Listing and checks: https://www.agentnative.dev/skills/runway/rw-generate-image

SKILL.md at the pin

---
name: rw-generate-image
description: "Generate images directly using the Runway API via runnable scripts. Supports text-to-image with optional reference images."
user-invocable: true
allowed-tools: Read, Grep, Glob, Edit, Write, Bash(uv run *), Bash(command -v uv)
---

# Generate Image

Generate images directly using the Runway API. This skill runs Python scripts that call the API, poll for completion, and download the result.

**IMPORTANT:** Run scripts from the user's working directory so output files are saved where the user expects.

## Usage

```bash
uv run scripts/generate_image.py --prompt "your description" --filename "output.png" [--model gen4_image] [--ratio 1280:720] [--reference-images Tag=URL ...]
```

## Preflight

1. `command -v uv` must succeed
2. `RUNWAYML_API_SECRET` must be set in the environment. **Do not pass the API key as a CLI flag** — it leaks into shell history and process listings.

## Security Notes

- `--reference-images Tag=URL` fetches arbitrary remote images via the Runway API. Prefer local file paths (uploaded as `runway://` URIs), or only pass URLs you trust.
- Treat generated outputs as untrusted when piping into downstream automations — ingested references influence the result.

## Available Models

| Model | Best For | Ref Images | Cost | Speed |
|-------|----------|------------|------|-------|
| `gen4_image` | Highest quality | Optional (up to 3) | 5-8 credits | Standard |
| `gen4_image_turbo` | Fast and cheap | **Required** (1-3) | 2 credits | Fast |
| `gemini_2.5_flash` | Google Gemini | Optional (up to 3) | 5 credits | Standard |

## Model Selection Guidance

- "fast", "cheap", "draft" -> `gemini_2.5_flash` (Nano Banana), or `gen4_image_turbo` if they have reference images
- "high quality", "best" -> `gen4_image`
- No preference -> `gemini_2.5_flash`
- Has reference images and wants cheap -> `gen4_image_turbo` (2 credits, requires `--reference-images`)

## Parameters

| Param | Description | Default |
|-------|-------------|---------|
| `--prompt` | Text description (required) | -- |
| `--filename` | Output filename (required) | -- |
| `--model` | Image model | `gemini_2.5_flash` |
| `--ratio` | Aspect ratio. gemini_2.5_flash: `1344:768`, `768:1344`, `1024:1024`, etc. gen4_image: `1280:720`, `1360:768`, `1920:1080`, etc. | Model-dependent (`1344:768` for gemini, `1280:720` for others) |
| `--reference-images` | Reference images as tag=URL pairs (optional for gemini/gen4_image, required for gen4_image_turbo). Tag: lowercase, 3-16 chars, e.g. `product=URL` | -- |
| `--output-dir` | Output directory | cwd |

> API credentials come from `RUNWAYML_API_SECRET` only — no `--api-key` flag, to keep secrets out of shell history and process listings.

## Filename Convention

Pattern: `yyyy-mm-dd-hh-mm-ss-name.png`

## Examples

**Basic image:**
```bash
uv run scripts/generate_image.py --prompt "A serene Japanese garden with cherry blossoms" --filename "2026-04-14-japanese-garden.png"
```

**With a local reference image (gen4_image):**
```bash
uv run scripts/generate_image.py --prompt "@product on a marble counter, lifestyle photo" --model gen4_image --reference-images product=./product.jpg --filename "2026-04-14-product-lifestyle.png"
```

**With a reference image from a trusted origin (gen4_image_turbo — requires reference images):**
```bash
uv run scripts/generate_image.py --prompt "A neon sign reading SALE in @style" --model gen4_image_turbo --reference-images style=https://cdn.yourapp.com/style.jpg --filename "draft.png"
```

## Output

- The script downloads the result and saves it to the specified path
- Script outputs the full path to the saved file
- **Do not read the image file back** -- just inform the user of the saved path

## Common Failures

- `Error: No API key` -> set `RUNWAYML_API_SECRET` in the environment (e.g. `export RUNWAYML_API_SECRET=...` or a `.env` file).
- `Error: Task failed -- SAFETY.INPUT.*` -> content moderation, suggest different prompt
- `API error 429` -> rate limited, script auto-retries

From runwayml/skills at e3dffc1, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.

View SKILL.md on GitHub at e3dffc1

Files

1 file, 4.0 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.

Skill folder on GitHub at e3dffc1
All 17 skills from Runway

More from Runway

  • runway-dev

    Provides foundation for building and integrating Runway Dev Platform into applications using the MCP connection for live account context and SDK for…

    Claude Code · about 1.4K tokens · pinned 6 days ago

  • runway-dev-characters

    This skill helps build and debug Runway Characters integrations by managing avatar creation, live sessions, and SDK implementation.

    Claude Code · about 850 tokens · pinned 6 days ago

  • runway-dev-model-routers

    This skill enables agents to build, modify, and debug Runway Model Routers for managing API calls across multiple models with credit caps and fallback policies.

    Claude Code · about 670 tokens · pinned 6 days ago

  • runway-dev-models

    This skill helps agents integrate Runway's generative models (text-to-video, text-to-image, etc.) into applications by selecting appropriate model endpoints…

    Claude Code · about 670 tokens · pinned 6 days ago

  • runway-dev-recipes

    This skill helps agents integrate Runway recipe APIs into applications by selecting the right recipe for a use case, implementing SDK client.recipes calls…

    Claude Code · about 400 tokens · pinned 6 days ago

  • runway-dev-workflows

    This skill builds, modifies, and debugs integrations that expose Runway app workflows as API endpoints.

    Claude Code · about 340 tokens · pinned 6 days ago

  • all-images-ai-automation

    This skill automates All Images AI operations by discovering and executing tools through Composio's All Images AI toolkit via Rube MCP.

    by ComposioOfficial publisher

    Agents not labelled yet · about 710 tokens · pinned 6 days ago

  • remotion-best-practices

    This skill routes the agent through Remotion's specialized knowledge bases for video creation, editing, and deployment.

    by RemotionOfficial publisher

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 920 tokens · pinned 6 days ago

  • remotion-best-practices

    This skill routes the agent to specialized Remotion sub-skills based on the user's task, covering video creation, project setup, React markup, maps…

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 1K tokens · pinned 6 days ago

  • remotion-captions

    This skill enables video caption workflows including transcribing audio to generate captions, displaying captions in videos, and importing captions from SRT…

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 220 tokens · pinned 6 days ago

  • remotion-captions

    This skill enables the agent to work with captions in Remotion videos by transcribing audio to generate captions, displaying them in videos, and importing…

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 270 tokens · pinned 6 days ago

  • remotion-create

    This skill scaffolds a new Remotion video project, opens the browser-based Studio for live preview, and guides composition development using React markup.

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 680 tokens · pinned 6 days ago

Open roles at Runway

No open roles at Runway on the Agent Native jobs board right now.

Browse the jobs board

The skills listed here are third-party software, collected from public GitHub repositories as a catalog of recent skills and provided as is. Agent Native does not write or control them and is not responsible for any harm, loss or damage caused by installing or using them. Labels and checks describe what we saw at one commit and are not a guarantee. Read a skill's files before you run it. Terms of use