Loading...
Loading...
Generate images directly using the Runway API via runnable scripts. Supports text-to-image with optional reference images.
npx skill4agent add runwayml/skills rw-generate-imageuv run scripts/generate_image.py --prompt "your description" --filename "output.png" [--model gen4_image] [--ratio 1280:720] [--reference-images Tag=URL ...]command -v uvRUNWAYML_API_SECRET--reference-images Tag=URLrunway://| Model | Best For | Ref Images | Cost | Speed |
|---|---|---|---|---|
| Highest quality | Optional (up to 3) | 5-8 credits | Standard |
| Fast and cheap | Required (1-3) | 2 credits | Fast |
| Google Gemini | Optional (up to 3) | 5 credits | Standard |
gemini_2.5_flashgen4_image_turbogen4_imagegemini_2.5_flashgen4_image_turbo--reference-images| Param | Description | Default |
|---|---|---|
| Text description (required) | -- |
| Output filename (required) | -- |
| Image model | |
| Aspect ratio. gemini_2.5_flash: | Model-dependent ( |
| Reference images as tag=URL pairs (optional for gemini/gen4_image, required for gen4_image_turbo). Tag: lowercase, 3-16 chars, e.g. | -- |
| Output directory | cwd |
API credentials come fromonly — noRUNWAYML_API_SECRETflag, to keep secrets out of shell history and process listings.--api-key
yyyy-mm-dd-hh-mm-ss-name.pnguv run scripts/generate_image.py --prompt "A serene Japanese garden with cherry blossoms" --filename "2026-04-14-japanese-garden.png"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"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"Error: No API keyRUNWAYML_API_SECRETexport RUNWAYML_API_SECRET=....envError: Task failed -- SAFETY.INPUT.*API error 429