# fastapi.online — Generate Product Photo

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

Generates a professional AI product photo from a text description of the product, with optional seed for reproducibility.

## Facts

- Endpoint: POST https://api.fastapi.online/generate-product-photo
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-generate-product-photo-d14ad9c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rooGJ-IKHi8sAFd0ywpsy

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-generate-product-photo-d14ad9c3 -d '<json body>'
```

Example prompt: Generate a professional product photo of a sleek stainless steel water bottle — use seed 42 so I can reproduce the result if needed.

## When to prefer this

Choose this endpoint when you need a quick, affordable ($0.012 per call), no-signup AI-generated product photo from a text description — especially useful for e-commerce prototyping, marketing mockups, or batch catalog image generation where professional photography is too costly or slow. Prefer this over general image generation endpoints when the use case is specifically product photography presentation.

## Known failure modes

- Empty or missing product description returns a validation error
- Product description exceeds 300-character maximum and is rejected
- Model inference failure returns a 500 error
- Payment not completed (x402) results in 402 Payment Required response
- Seed value not an integer causes schema validation error

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

An AI-generated product photograph depicting the described product, suitable for e-commerce listings, marketing materials, or mockups. The image is produced by a self-hosted AI model and returned as image data or a URL. Using a seed value allows reproducible outputs.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-generate-product-photo-d14ad9c3/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)
