---
title: "Generate Image V2"
method: POST
path: "/api/generate-v2"
---

# Generate Image V2

`POST /api/generate-v2`

## 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/generate-v2`
- Auth: HTTP bearer

Generate AI food photo using GPT Image 2.

Request body:
{
    "prompt": "description of food photo",
    "style": "professional" | "uber_eats" | "dark_moody" | ...,
    "num_outputs": 1-4,
    "aspect_ratio": "4:3" | "16:9" | "1:1" | "3:4" | "9:16",
    "resolution": "1K" | "2K" | "4K",
    "reference_images": ["url1", "url2", ...] (optional, up to 14),
    "enable_web_search": false
}

## 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)
