---
title: "Edit Image"
method: POST
path: "/api/edit"
---

# Edit Image

`POST /api/edit`

## Request

- Base URL: `https://api.foodphoto.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.foodphoto.ai/api/edit`
- Auth: HTTP bearer

Edit food photos using GPT Image 2 Edit — natural language editing.

Request body:
{
    "image_urls": ["url1"] (required, up to 14 reference images),
    "prompt": "change the background to dark marble",
    "num_outputs": 1-4,
    "resolution": "1K" | "2K" | "4K",
    "aspect_ratio": "4:3" | "1:1" | ...
}

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/foodphoto/apis/foodphoto-ai-api.md) · [All operations](https://skmtc.dev/foodphoto/apis/foodphoto-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/foodphoto/apis/foodphoto-ai-api/revisions/e4fbf114dfcf?raw)
