# fastapi.online — Email Draft Generator

> fastapi.online — Email Draft Generator is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0015/call, status unknown (last checked 2026-09-14).

Generates a draft email given a stated intent and optional tone, using a self-hosted AI model paid per call with crypto.

## Facts

- Endpoint: POST https://api.fastapi.online/email-draft
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-email-draft-generator-57180563
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DGlzpEG9geYoG04QJ-RUp

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-email-draft-generator-57180563 -d '<json body>'
```

Example prompt: Draft me an email in a professional tone — the intent is to follow up with a client about the proposal I sent last week and gently ask if they have any questions or are ready to move forward.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call AI email drafting service with no account signup, especially in automated agent workflows or crypto-native pipelines. It's ideal when you want a lightweight single-call solution rather than a full email platform SDK, and when paying per use with USDC is acceptable or preferred.

## Known failure modes

- Missing or empty 'intent' field returns a validation error (minLength:1 required)
- Tone string exceeding 40 characters is rejected
- Vague or contradictory intent may produce a generic or off-target draft
- Model unavailability or self-hosted inference downtime returns a 5xx error
- Insufficient payment or expired x402 token returns a 402 Payment Required 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

A fully composed email draft as text, ready to review, copy, and send — reflecting the stated intent and the requested tone (e.g. formal, friendly, apologetic).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tone": {
   "type": "string",
   "maxLength": 40
  },
  "intent": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1
  }
 }
}
```

## More

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