# Strale PR Description Generator

> Strale PR Description Generator is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054/call, status unknown (last checked 2026-09-15).

Generates a pull request description from a code diff, optionally using a provided title

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/pr-description-generate
- Price: $0.054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-pr-description-generator-76e2a002
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Uak48y2_ooX7mmO5dXk-Z

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 strale-pr-description-generator-76e2a002
```

Example prompt: Can you generate a pull request description from this diff: `diff --git a/src/app.js...` — the title is 'Fix user authentication timeout'?

## When to prefer this

Choose this endpoint when you need an auditable, pay-per-use PR description generator accessible via x402 micropayment protocol, with built-in cryptographic audit trails — ideal for AI agents that need verifiable outputs and don't want to maintain a persistent API subscription.

## Known failure modes

- Missing required 'diff' query parameter returns a validation error
- Diff too large or malformed causes a parsing failure
- Invalid HTTP method (only GET/HEAD/DELETE accepted) returns 405
- Payment failure or insufficient USDC balance blocks the call
- Empty diff string may produce a generic or unhelpful description

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

A generated pull request description text derived from the provided code diff, along with a cryptographically hashed audit record confirming the call and result integrity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "diff"
     ],
     "properties": {
      "diff": {
       "type": "string"
      },
      "title": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-pr-description-generator-76e2a002/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
