# fastapi.online — Food Photo Generator

> fastapi.online — Food Photo Generator is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.012/call, status down (last checked 2026-09-15).

Generates a realistic AI food photograph for a specified dish name, with optional seed for reproducibility.

## Facts

- Endpoint: POST https://api.fastapi.online/generate-food-photo
- Price: $0.012/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-food-photo-generator-8ba68d78
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QGKUdNssVwe-W4BlWqArX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastapi-online-food-photo-generator-8ba68d78 -d '<json body>'
```

Example prompt: Can you generate a realistic food photo of a classic margherita pizza for my restaurant menu? Use seed 42 so I can reproduce it later.

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.012 USDC), on-demand food photograph without hiring a photographer or licensing stock images — especially useful for menus, recipe sites, or food delivery listings. Prefer this over text-to-image general models when you specifically want food-focused generation and reproducibility via seed. No signup required.

## Known failure modes

- Empty or missing 'dish' field returns a validation error
- Dish name exceeding 300 characters is rejected
- Invalid seed type (non-integer) causes a 422 Unprocessable Entity
- Payment not included or insufficient funds returns a 402 Payment Required
- Model inference timeout if the server is under load

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns an AI-generated food photograph image (likely as binary image data or a URL) depicting the requested dish, optionally reproducible via a numeric seed value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dish": {
   "type": "string",
   "maxLength": 300,
   "minLength": 1,
   "description": "the dish"
  },
  "seed": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-food-photo-generator-8ba68d78/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
