# fastapi.online Generate Pattern

> fastapi.online Generate Pattern is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.012/call, status unknown (last checked 2026-10-19).

Generates a patterned design or visual motif based on a theme string and optional random seed

## Facts

- Endpoint: POST https://api.fastapi.online/generate-pattern?utm_source=zero.xyz
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-generate-pattern-a4fa7f13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8P_4c9R8b_KNjroAfcL9d

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-pattern-a4fa7f13 -d '<json body>'
```

Example prompt: Generate a pattern with the theme 'tropical jungle' and use seed 42 so I can reproduce it later.

## When to prefer this

Choose this endpoint when you need a quick, novelty or decorative pattern generated from a plain-text theme description, especially when reproducibility via a seed is important, and you want to pay per call without a subscription or signup. Prefer it for lightweight creative or developer tooling tasks rather than full image generation.

## Known failure modes

- Theme string too short or too long (violates minLength 1 / maxLength 300 constraint)
- Seed value out of integer range
- Payment not included or insufficient (HTTP 402 returned)
- Model unavailable or server error (HTTP 500)
- Empty or nonsensical theme producing low-quality or undefined output

## 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 pattern or design artifact (likely image data, SVG, or structured pattern output) based on the provided theme text and optional integer seed for reproducibility.

## Request schema (JSON Schema)

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

## More

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