Loading...
Loading...
Compare original and translation side by side
uv run scripts/generate_image.py --prompt "your description" --filename "output.png" [--model gen4_image] [--ratio 1280:720] [--reference-images Tag=URL ...]uv run scripts/generate_image.py --prompt "你的描述内容" --filename "output.png" [--model gen4_image] [--ratio 1280:720] [--reference-images Tag=URL ...]command -v uvRUNWAYML_API_SECRETcommand -v uvRUNWAYML_API_SECRET--reference-images Tag=URLrunway://--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 |
| 模型 | 适用场景 | 参考图片 | 成本 | 速度 |
|---|---|---|---|---|
| 最高画质 | 可选(最多3张) | 5-8积分 | 标准 |
| 快速且低成本 | 必填(1-3张) | 2积分 | 快速 |
| Google Gemini模型 | 可选(最多3张) | 5积分 | 标准 |
gemini_2.5_flashgen4_image_turbogen4_imagegemini_2.5_flashgen4_image_turbo--reference-imagesgemini_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
| 参数 | 描述 | 默认值 |
|---|---|---|
| 文本描述(必填) | -- |
| 输出文件名(必填) | -- |
| 图片生成模型 | |
| 宽高比。gemini_2.5_flash支持: | 依赖模型(gemini模型默认 |
| 参考图片,格式为tag=URL(gemini/gen4_image可选,gen4_image_turbo必填)。Tag要求:小写、3-16个字符,例如 | -- |
| 输出目录 | 当前工作目录 |
API凭证仅来自环境变量——不提供RUNWAYML_API_SECRET标志,以避免密钥泄露到shell历史记录和进程列表中。--api-key
yyyy-mm-dd-hh-mm-ss-name.pngyyyy-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"uv run scripts/generate_image.py --prompt "宁静的日式庭院,开满樱花" --filename "2026-04-14-japanese-garden.png"uv run scripts/generate_image.py --prompt "@product放在大理石台面上,生活风格照片" --model gen4_image --reference-images product=./product.jpg --filename "2026-04-14-product-lifestyle.png"uv run scripts/generate_image.py --prompt "带有@style风格的霓虹灯招牌,显示SALE" --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 429Error: No API keyRUNWAYML_API_SECRETexport RUNWAYML_API_SECRET=....envError: Task failed -- SAFETY.INPUT.*API error 429