# PR Description Generator — fastapi.online

> PR Description Generator — fastapi.online 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-15).

Generates a pull request description from a code diff using self-hosted AI inference

## Facts

- Endpoint: POST https://api.fastapi.online/pr-description-generate
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pr-description-generator-fastapi-online-f39db06f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MkmZcUTF0HtVJT_y-SqOw

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 pr-description-generator-fastapi-online-f39db06f -d '<json body>'
```

Example prompt: Can you write a pull request description for me? Here's the diff: `- old_function()\n+ new_function()` — it refactors the auth handler to use async/await.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call PR description generator without signing up for a service. It's ideal for CI/CD pipelines, developer agents, or one-off automation where you want to pay in crypto (USDC) and avoid API key management. Good for teams wanting self-hosted inference rather than sending diffs to large cloud providers.

## Known failure modes

- Empty or whitespace-only diff returns an error
- Diff exceeding 20,000 characters is rejected
- Malformed input (non-string diff) causes validation failure
- Payment not provided or insufficient USDC results in 402 error
- Model inference timeout if diff is very large but within limits

## 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 generated pull request description as text, summarizing the intent, changes, and impact of the provided code diff, suitable for pasting directly into a GitHub/GitLab PR.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "diff": {
   "type": "string",
   "maxLength": 20000,
   "minLength": 1
  }
 }
}
```

## More

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