Skip to main content
Endpoint: POST https://fal.run/fal-ai/gpt-image-1.5 Endpoint ID: fal-ai/gpt-image-1.5

Try it in the Playground

Run this model interactively with your own prompts.

Quick Start

import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/gpt-image-1.5",
    arguments={
        "prompt": "create a realistic image taken with iphone at these coordinates 41°43′32″N 49°56′49″W 15 April 1912"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Input Schema

prompt
string
required
The prompt for image generation
image_size
ImageSizeEnum
default:"1024x1024"
Aspect ratio for the generated image Default value: "1024x1024"Possible values: 1024x1024, 1536x1024, 1024x1536
background
BackgroundEnum
default:"auto"
Background for the generated image Default value: "auto"Possible values: auto, transparent, opaque
quality
QualityEnum
default:"high"
Quality for the generated image Default value: "high"Possible values: low, medium, high
num_images
integer
default:"1"
Number of images to generate Default value: 1Range: 1 to 4
output_format
OutputFormatEnum
default:"png"
Output format for the images Default value: "png"Possible values: jpeg, png, webp
sync_mode
boolean
default:"false"
If True, the media will be returned as a data URI and the output data won’t be available in the request history.

Output Schema

images
list<ImageFile>
required
The generated images.

Input Example

{
  "prompt": "create a realistic image taken with iphone at these coordinates 41°43′32″N 49°56′49″W 15 April 1912",
  "image_size": "1024x1024",
  "background": "auto",
  "quality": "high",
  "num_images": 1,
  "output_format": "png",
  "sync_mode": false
}

Output Example

{
  "images": [
    {
      "content_type": "image/png",
      "file_name": "EnWrO3XWjPE0nxBDpaQrj.png",
      "height": 1024,
      "url": "https://v3b.fal.media/files/b/0a869129/EnWrO3XWjPE0nxBDpaQrj.png",
      "width": 1024
    }
  ]
}

Limitations

  • image_size restricted to: 1024x1024, 1536x1024, 1024x1536
  • background restricted to: auto, transparent, opaque
  • quality restricted to: low, medium, high
  • num_images range: 1 to 4
  • output_format restricted to: jpeg, png, webp
  • image_size restricted to: auto, 1024x1024, 1536x1024, 1024x1536
  • input_fidelity restricted to: low, high