---
title: "Runway Gen-4 Image Text-to-Image API & Playground - Comfy"
description: "Runway Gen-4 Image Text-to-Image: Generates an image from text at high resolution with optional reference image. Typical cost: 24.14 credits per run."
canonical: https://comfy.org/hub/models/runway-gen-4-image-text-to-image/
lang: en
index: https://comfy.org/llms.txt
---

[Models](https://comfy.org/hub/models/)

Runway

[Generate images](https://comfy.org/hub/models/?useCase=generate-images)

# Runway Gen-4 Image Text-to-Image

Generates an image from text at high resolution with optional reference image.

- Use via API
- [Open in Cloud](https://stagingcloud.comfy.org/)

24.14 credits /Run

- [text-to-image](https://comfy.org/hub/models/?q=text-to-image)
- [high-resolution](https://comfy.org/hub/models/?q=high-resolution)

## Playground

Input

Prompt

Reference images

-

Select or drop up to 3 images PNG, JPEG, WEBP ·  up to 25 MiB

Output dimensions

Choose the image width and height in pixels.

Output

![Runway Gen-4 Image Text-to-Image: Rowboat on a tropical lagoon](https://media.comfy.org/website/workshop/runway/gen4-image/rowboat-on-a-tropical-lagoon.png)

Example

## Try an example

-

## Call this model from your code

Sends your Playground inputs to Comfy Router.

[API docs (opens in a new tab)](https://docs.comfy.org/development/comfy-router/models#runway)

1. ### Get an API key

  Needs a paid Cloud plan with credits.

  [Get an API key (opens in a new tab)](https://platform.comfy.org/profile/api-keys?onboarding=models&model=runway--gen4-image--generate-images)
2. ### Install the SDK

  Python 3.10+. Also on npm as @comfyorg/sdk.

  pip install comfy-sdk==0.2.0
3. ### Run it

  Calls Comfy Router at this endpoint with your COMFY_API_KEY.

  POST /v2/models/runway/gen4_image

Fill in the Playground inputs to generate a request.

## More from Runway

Compare Runway's other models. Price is the default setting; resolution and duration show the full range each model offers.

| Model | Price | Resolution | Duration |
| --- | --- | --- | --- |
| [Runway Aleph 2 Video-to-Video](https://comfy.org/hub/models/runway-aleph-2-video-to-video/) | — | — | — |
| [Runway Gen-4 Turbo Image-to-Video](https://comfy.org/hub/models/runway-gen-4-turbo-image-to-video/) | — | — | 2 – 10s |
