# fastapi.online Icon Generator

> fastapi.online Icon 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 custom icon image from a text subject description and optional seed for reproducibility

## Facts

- Endpoint: POST https://api.fastapi.online/generate-icon
- 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-icon-generator-f85be9c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Aepsext4K52XsRQADFmKd

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-icon-generator-f85be9c7 -d '<json body>'
```

Example prompt: Generate an icon depicting a coffee cup using seed 42 — I need it for my café app's menu button.

## When to prefer this

Choose this endpoint when you need a quick, AI-generated icon from a text description without requiring a full image generation pipeline or design tool. It is ideal for lightweight UI assets, app icons, or favicon generation where reproducibility via seed is useful. Prefer this over full image generation endpoints when you specifically need a small, icon-style graphic rather than a detailed illustration or photo.

## Known failure modes

- Empty or missing subject field returns validation error
- Subject exceeds 300 character limit causing rejection
- Invalid seed type (non-integer) causes schema validation failure
- Payment not provided or insufficient USDC results in HTTP 402
- Model inference timeout on complex subjects
- Returned image may not perfectly match abstract or ambiguous subjects

## 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 icon image (binary image data or URL) depicting the requested subject, optionally reproducible via the provided seed integer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "integer"
  },
  "subject": {
   "type": "string",
   "maxLength": 300,
   "minLength": 1,
   "description": "what the icon depicts"
  }
 }
}
```

## More

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