# 24K Labs Commit Message Generator

> 24K Labs Commit Message Generator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-13).

Generates a conventional Git commit message from code diff or description input

## Facts

- Endpoint: POST https://api.24klabs.ai/api/commit-message
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-commit-message-generator-8a27b5e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XOa52lJ6ch95B4-0JqhcF

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 24k-labs-commit-message-generator-8a27b5e0 -d '<json body>'
```

Example prompt: Generate a conventional commit message for these staged changes: I refactored the user authentication middleware to use JWT tokens instead of session cookies and updated the related unit tests.

## When to prefer this

Choose this endpoint when you need a concise, convention-compliant Git commit message generated from a code diff or natural language description of changes. It is ideal for developer tooling agents, CI/CD automation, or IDE integrations where consistent commit hygiene is required without manual effort.

## Known failure modes

- Empty or missing input diff/description returns a generic or malformed commit message
- Overly long diffs may result in truncated or vague summaries
- Non-code input may produce unexpected commit message formats
- Rate limiting or payment failure via x402 protocol returns an error response

## How this service works

A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.

## Output

A JSON object containing a single 'message' field with a conventional commit message string (e.g. 'feat: add dark mode toggle to settings page'), following standard commit conventions such as feat, fix, chore, refactor, docs, test, etc.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "diff": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "message": "feat: add..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-commit-message-generator-8a27b5e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
