# Strale Commit Message Generator

> Strale Commit Message 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 structured, conventional git commit message from a code diff

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/commit-message-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-commit-message-generator-a88b66e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FeicITz361v4huXaNDDuh

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-commit-message-generator-a88b66e6
```

Example prompt: Generate a conventional commit message for this diff: 'diff --git a/auth.js b/auth.js ... +const token = jwt.sign(payload, secret);' — use the conventional style.

## When to prefer this

Choose this endpoint when you need a fast, auditable, convention-aware commit message generated from a raw git diff, especially in automated pipelines or CI/CD workflows where a cryptographic audit trail per call is required. Prefer over local LLM prompting when you need guaranteed conventional/angular/simple format compliance and immutable audit records.

## Known failure modes

- Missing or empty 'diff' query parameter returns a validation error
- Diff too large or malformed may result in a parsing or timeout error
- Unsupported style value may be ignored or cause a bad request
- Network or payment failure (x402) results in 402 Payment Required before content is returned

## How this service works

Generate conventional commit messages from git diffs or change descriptions. Returns subject, body, type, scope.

## Output

A structured git commit message (e.g. 'feat(auth): add JWT token signing') derived from the provided diff, following the requested style convention (conventional, angular, or simple). The response includes an audit record with cryptographic chain hashing per Strale's trust layer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "diff"
 ],
 "properties": {
  "diff": {
   "type": "string"
  },
  "style": {
   "type": "string",
   "description": "conventional/angular/simple"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "body": {
  "type": "string"
 },
 "type": {
  "type": "string"
 },
 "subject": {
  "type": "string"
 },
 "conventional": {
  "type": "string"
 },
 "full_message": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-commit-message-generator-a88b66e6/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)
