Runwayml Gen4 Image Turbo API Documentation

Runwayml Gen4 Image Turbo API Documentation

Playground

Try it on WaveSpeedAI!

RunwayML Gen-4 Image Turbo is cheaper and 2.5x faster than Gen-4 Image and supports up to 3 reference images to capture every angle. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Features

Generate stunning images from text prompts with optional reference image guidance. Runway’s Gen4 Image Turbo delivers fast, high-quality results with support for multiple aspect ratios and resolutions — perfect for rapid creative iteration.

Why It Looks Great

  • Reference-guided generation: Upload up to 3 reference images to guide style, composition, or subject appearance.
  • Flexible aspect ratios: Supports multiple formats including 9:16, 16:9, 1:1, and more for any use case.
  • High resolution output: Generate images up to 1080p for crisp, detailed results.
  • Fast turbo processing: Optimized for speed without sacrificing quality.
  • Reproducible results: Use the seed parameter to recreate exact outputs or explore variations.

Parameters

ParameterRequiredDescription
promptYesText description of the image you want to generate.
aspect_ratioNoOutput aspect ratio (e.g., 9:16, 16:9, 1:1). Default varies.
resolutionNoOutput resolution (e.g., 1080p).
reference_imagesNoUp to 3 reference images to guide generation (upload or URL).
seedNoRandom seed for reproducibility. Leave empty for random.
enable_base64_outputNoAPI only: Returns base64 string instead of URL.

How to Use

  1. Write your prompt — describe the image you want to create in detail.
  2. Choose aspect ratio — select the format that fits your needs (9:16 for portraits/stories, 16:9 for landscapes, etc.).
  3. Select resolution — pick your desired output quality.
  4. Add reference images (optional) — upload up to 3 images to guide style, subject, or composition.
  5. Set seed (optional) — use a specific number for reproducible results, or leave empty for random.
  6. Run — click the button to generate.
  7. Download — preview and save your generated image.

Pricing

Flat rate of $0.035 per generated image.

ImagesPrice
1$0.035
10$0.35
100$3.50

Best Use Cases

  • Social Media Content — Create scroll-stopping visuals for Instagram, TikTok, and stories with 9:16 aspect ratio.
  • Concept Art & Ideation — Rapidly explore visual ideas and creative directions.
  • Marketing & Advertising — Generate on-brand imagery for campaigns and promotions.
  • Character Design — Use reference images to maintain consistent character appearance across generations.
  • Style Transfer — Apply the aesthetic of reference images to new scenes and subjects.

Pro Tips for Best Results

  • Be specific in your prompts — include details about lighting, mood, style, and composition.
  • Use reference images strategically: one for style, one for subject, one for composition.
  • Keep the seed fixed when iterating on prompts to isolate the effect of text changes.
  • For consistent characters or styles across multiple images, always include the same reference image.
  • Match aspect ratio to your intended use case: 9:16 for mobile/stories, 16:9 for desktop/video thumbnails, 1:1 for profile pictures.

Notes

  • If using URLs for reference images, ensure they are publicly accessible. A preview thumbnail confirms successful loading.
  • The enable_base64_output option is only available through the API, not the web interface.
  • Reference images influence but do not guarantee exact replication — they guide style and composition.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result

set -euo pipefail

export WAVESPEED_API_KEY="your-api-key"

REQUEST_BODY=$(cat <<'JSON'
{
  "prompt": "A cinematic ocean wave at sunrise, highly detailed",
  "aspect_ratio": "4:3",
  "resolution": "1080p"
}
JSON
)

# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
  -X POST "https://api.wavespeed.ai/api/v3/runwayml/gen4-image-turbo" \
  -H "Authorization: Bearer ${WAVESPEED_API_KEY}" \
  -H "Content-Type: application/json" \
  -d "${REQUEST_BODY}")

TASK=$(printf '%s' "${SUBMIT_RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "${TASK}" | jq -r '.id // empty')
if [ -z "${PREDICTION_ID}" ]; then
  printf 'Submission response did not contain a prediction id
' >&2
  exit 1
fi
RESULT_URL=$(printf '%s' "${TASK}" | jq -r '.urls.get // empty')
if [ -z "${RESULT_URL}" ]; then RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/${PREDICTION_ID}/result"; fi

# 2. Poll until the prediction finishes.
while true; do
  RESPONSE=$(curl --silent --show-error --fail-with-body \
    "${RESULT_URL}" \
    -H "Authorization: Bearer ${WAVESPEED_API_KEY}")
  RESULT=$(printf '%s' "${RESPONSE}" | jq 'if type == "object" and has("data") then .data else . end')
  STATUS=$(printf '%s' "${RESULT}" | jq -r '.status // empty')

  case "${STATUS}" in
    completed) printf '%s\n' "${RESULT}" | jq '.outputs'; break ;;
    failed|cancelled|timeout) printf '%s\n' "${RESULT}" | jq . >&2; exit 1 ;;
    created|processing) sleep 2 ;;
    *) printf 'Unexpected status: %s
' "${STATUS}" >&2; exit 1 ;;
  esac
done

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The positive prompt for the generation.
aspect_ratiostringNo4:31:1, 16:9, 9:16, 4:3, 3:4The aspect ratio of the generated media.
resolutionstringNo1080p1080p, 720pThe resolution of the generated media.
reference_imagesarray<string>No-1 ~ 3 itemsA list of images to use as style references.
seedintegerNo--The seed to use for the image generation.
enable_base64_outputbooleanNofalse-If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayOutput values, usually URL strings; some models return text strings or structured result objects (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction
data.modelstringModel ID used for the prediction
data.outputsarray<string | object>Array of generated outputs (empty when status is not completed). Items are usually URL strings, but may be text strings or structured result objects, depending on the model.
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to poll for the prediction result
data.statusstringStatus: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2026 WaveSpeedAI. All rights reserved.