# fastapi.online — Generate Email Template

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

Generates a ready-to-use email template based on a specified purpose such as welcome, receipt, or password reset

## Facts

- Endpoint: POST https://api.fastapi.online/generate-email-template
- Price: $0.004/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-email-template-42e66840
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W0Yeubwk8iDbo2z9IndfO

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-email-template-42e66840 -d '<json body>'
```

Example prompt: Can you generate a professional email template for a welcome message — the kind you'd send right after a new user signs up for our SaaS platform?

## When to prefer this

Choose this endpoint when you need a quick, AI-generated email template scaffold without signing up for a full email marketing platform. It is particularly useful for developers or agents building transactional email flows who want a ready-made starting point for a specific email type (welcome, receipt, reset, etc.) and prefer pay-per-call crypto billing with no account setup.

## Known failure modes

- Empty or too-short purpose string (below 2 characters) returns a validation error
- Purpose string exceeding 2000 characters is rejected
- Vague or ambiguous purpose may result in a generic or unhelpful template
- Payment failure or insufficient USDC balance blocks the request (x402 protocol)
- Service downtime on self-hosted infrastructure may cause timeouts or 5xx errors

## 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 email template tailored to the specified purpose, typically including a subject line and body text with placeholder variables, ready to be adapted for use in a transactional or marketing email system.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "purpose": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 2,
   "description": "the email purpose (welcome, receipt, reset...)"
  }
 }
}
```

## More

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