Runwayml Gen4 Image
Playground
Try it on WavespeedAI!Runway’s Gen-4 Image model with references. Use up to 3 reference images to create the exact image you need. Capture every angle.
Features
Overview
Gen-4 Image with references enables generation of consistent characters and locations using 1-3 reference images. The model preserves visual identity while allowing transformation of lighting, poses, settings, and styling through text prompts.
Core Features
- Character preservation: Maintain facial features and identity across different scenes
- Location consistency: Generate multiple angles and shots of the same environment
- Multi-reference support: Use up to 3 reference images per generation
- Conversational prompting: Natural language descriptions with iterative refinement
Optimal reference images
- Natural, even lighting (avoid harsh shadows)
- Neutral expressions for maximum flexibility
- Moderate to high quality
- Clear subject visibility
Usage Patterns
Single Reference
Use text prompts to describe transformations while preserving character identity.
@character_name wearing a leather jacket in a cyberpunk city
Multi-Reference
Combine character and scene references for precise control.
@character sitting in @location with dramatic lighting
Scene Generation
Create consistent environments from different angles.
show the castle courtyard from above
wide shot of the same location at sunset
Advanced Workflows
- Iterative refinement: Use generated outputs as new references to build complex scenes step-by-step.
- Separate pathways: Develop character and environment references independently, then combine.
- Element isolation: Generate specific clothing, poses, or lighting setups as references for final compositions.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/runwayml/gen4-image" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"aspect_ratio": "4:3",
"resolution": "1080p",
"enable_base64_output": false
}'
# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"
Parameters
Task Submission Parameters
Request Parameters
Parameter | Type | Required | Default | Range | Description |
---|---|---|---|---|---|
prompt | string | Yes | - | The prompt to generate an image from. | |
aspect_ratio | string | No | 4:3 | 1:1, 16:9, 9:16, 4:3, 3:4 | The aspect ratio of the generated image. |
resolution | string | No | 1080p | 1080p, 720p | The resolution of the generated image. |
reference_images | array | No | - | - | A list of images to use as style references. |
seed | integer | No | - | -1 ~ 2147483647 | The seed to use for the image generation. |
enable_base64_output | boolean | No | false | - | If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API. |
Response Parameters
Parameter | Type | Description |
---|---|---|
code | integer | HTTP status code (e.g., 200 for success) |
message | string | Status message (e.g., “success”) |
data.id | string | Unique identifier for the prediction, Task Id |
data.model | string | Model ID used for the prediction |
data.outputs | array | Array of URLs to the generated content (empty when status is not completed ) |
data.urls | object | Object containing related API endpoints |
data.urls.get | string | URL to retrieve the prediction result |
data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
data.status | string | Status of the task: created , processing , completed , or failed |
data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
data.error | string | Error message (empty if no error occurred) |
data.timings | object | Object containing timing details |
data.timings.inference | integer | Inference time in milliseconds |