# GPT Image 1.5 image edit

Needs prompt and image urls. Served by fal.ai.

GPT Image 1.5 (OpenAI), image edit, served by fal.ai. The OpenAPI schema for the fal-ai/gpt-image-1.5/edit queue. Price: Same per-image table as text-to-image; image_size auto priced as the larger size. Input image tokens $0.008 per 1k: $0.012 allowance per call. Waits up to 40 s for the result; if the generation takes longer, the run stays RUNNING and returns a request_id; poll fal/status and fetch fal/result with model "fal-ai/gpt-image-1.5" and that request_id. Billed once, when the result is ready; a generation that fails is refunded.

- Tool ID: `fal/gpt-image-1-5-edit`
- Name in the catalog: GPT Image 1.5 (OpenAI), image edit
- Provider: [fal.ai](/providers/fal.md)
- Capability: [GPT Image](/tools/image-generation/gpt-image.md)
- Price: usage based, the maximum is shown before a run
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_unit",
  "amountUsd": 0.2,
  "unitsField": "num_images",
  "unitsDefault": 1,
  "maxUnits": 4,
  "multipliers": [
    {
      "when": {
        "field": "quality",
        "equals": "low"
      },
      "setUsd": 0.013
    },
    {
      "all": [
        {
          "field": "quality",
          "equals": "low"
        },
        {
          "field": "image_size",
          "equals": "1024x1024"
        }
      ],
      "setUsd": 0.009
    },
    {
      "when": {
        "field": "quality",
        "equals": "medium"
      },
      "setUsd": 0.051
    },
    {
      "all": [
        {
          "field": "quality",
          "equals": "medium"
        },
        {
          "field": "image_size",
          "equals": "1024x1024"
        }
      ],
      "setUsd": 0.034
    },
    {
      "all": [
        {
          "field": "quality",
          "equals": "high"
        },
        {
          "field": "image_size",
          "equals": "1024x1024"
        }
      ],
      "setUsd": 0.133
    },
    {
      "when": {
        "field": "prompt",
        "minLength": 0
      },
      "addUsd": 0.012
    }
  ]
}
```

Pricing source: [https://fal.ai/models/fal-ai/gpt-image-1.5/edit](https://fal.ai/models/fal-ai/gpt-image-1.5/edit). Same per-image table as text-to-image; image_size auto priced as the larger size. Input image tokens $0.008 per 1k: $0.012 allowance per call..

Price verification date: 2026-10-08.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "image_size": {
      "title": "Image Size",
      "enum": [
        "auto",
        "1024x1024",
        "1536x1024",
        "1024x1536"
      ],
      "type": "string",
      "description": "Aspect ratio for the generated image",
      "default": "auto"
    },
    "image_urls": {
      "title": "Image URLs",
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The URLs of the images to use as a reference for the generation."
    },
    "output_format": {
      "title": "Output Format",
      "enum": [
        "jpeg",
        "png",
        "webp"
      ],
      "type": "string",
      "description": "Output format for the images",
      "default": "png"
    },
    "background": {
      "title": "Background",
      "enum": [
        "auto",
        "transparent",
        "opaque"
      ],
      "type": "string",
      "description": "Background for the generated image",
      "default": "auto"
    },
    "mask_image_url": {
      "type": "string",
      "title": "Mask Image URL",
      "description": "The URL of the mask image to use for the generation. This indicates what part of the image to edit."
    },
    "quality": {
      "title": "Quality",
      "enum": [
        "low",
        "medium",
        "high"
      ],
      "type": "string",
      "description": "Quality for the generated image",
      "default": "high"
    },
    "input_fidelity": {
      "title": "Input Fidelity",
      "enum": [
        "low",
        "high"
      ],
      "type": "string",
      "description": "Input fidelity for the generated image",
      "default": "high"
    },
    "prompt": {
      "title": "Prompt",
      "type": "string",
      "minLength": 2,
      "description": "The prompt for image generation",
      "maxLength": 32000
    },
    "num_images": {
      "maximum": 4,
      "title": "Number of Images",
      "type": "integer",
      "minimum": 1,
      "description": "Number of images to generate",
      "default": 1
    }
  },
  "required": [
    "prompt",
    "image_urls"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "fal/gpt-image-1-5-edit",
  "input": {
    "prompt": "make the cube blue, keep everything else",
    "image_urls": [
      "https://storage.googleapis.com/falserverless/example_outputs/nano-banana-2-t2i-output.png"
    ],
    "quality": "low",
    "image_size": "1024x1024",
    "input_fidelity": "low",
    "num_images": 1
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

This tool uses deferred settlement. Follow its returned task/run instructions; preserve the existing reservation until the result is reconciled.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://fal.ai/models/fal-ai/gpt-image-1.5/edit)

[REST inspection](https://api.agentik.cc/v1/tools/fal/gpt-image-1-5-edit) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/fal/gpt-image-1-5-edit) · [Agent index](/llms.txt)
