# fastapi.online — AI Headshot Generator

> fastapi.online — AI Headshot 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 professional AI headshot image from a text description of a person, with optional seed for reproducibility.

## Facts

- Endpoint: POST https://api.fastapi.online/generate-headshot
- 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-ai-headshot-generator-838b6e0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DOFZk5EOC-7sh7ZdN5xQs

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-ai-headshot-generator-838b6e0d -d '<json body>'
```

Example prompt: Generate a professional AI headshot of a mid-30s woman with short brown hair, confident smile, wearing a navy blazer — use seed 42 so I can reproduce it later.

## When to prefer this

Choose this endpoint when you need a quick, cheap AI-generated professional headshot from a text description without uploading a real photo. Ideal for placeholder portraits, demo profiles, or when a real photo is unavailable. At $0.012 per call with no signup required (pay with crypto), it's suitable for low-volume agentic workflows needing on-demand portrait generation.

## Known failure modes

- Description too short or vague may produce poor or unexpected results
- Description exceeding 300 characters will be rejected with a validation error
- Invalid seed type (non-integer) may cause a 422 Unprocessable Entity error
- Payment failure or insufficient USDC balance returns a 402 Payment Required error
- Model overload or server error may return a 500 Internal Server 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

Returns a generated headshot image (likely as binary image data or a URL) depicting the person described in the input. Output is a realistic AI-rendered portrait photo suitable for professional use.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-ai-headshot-generator-838b6e0d/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)
