{"uid":"cap_9lBtB9yIUgb_USloTLtcM","slug":"git-diff-to-conventional-commit-message-generator-c15eef66","name":"Git Diff to Conventional Commit Message Generator","description":"Turn a git diff into a Conventional Commits message (type, scope, subject, body).","url":"https://api.24klabs.ai/api/v1/commit-message","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"diff":{"type":"string"}}},"responseSchema":{"type":"json","example":{"message":"feat: add..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uHmhtbZoZe0203PfivpWx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a git diff into a structured Conventional Commits message with type, scope, subject, and body.","exampleAgentPrompt":"Generate a Conventional Commits message for this git diff — figure out the right type, scope, subject, and body: `diff --git a/src/auth/login.ts b/src/auth/login.ts\\n- if (user.active) {\\n+ if (user.active && !user.banned) {`","exampleUseCases":[{"title":"Auto-commit message in CI pipeline","prompt":"I have this git diff from my latest feature branch changes — can you generate a proper Conventional Commits message with type, scope, subject, and body so I can use it in my automated release pipeline?"},{"title":"Commit message for a bug fix","prompt":"Here's the diff for a bug fix I just made to the payment module — write me a conventional commit message for it with the right type like 'fix', the correct scope, a short subject line, and a body explaining what changed."},{"title":"Enforce commit standards in code review","prompt":"My team uses Conventional Commits and I need to turn this diff into a properly formatted commit message with type, scope, subject, and body before I push — can you generate one from this patch?"}],"resultDescription":"A structured Conventional Commits message containing: a type (e.g. feat, fix, chore, refactor), an optional scope indicating the affected module, a short imperative subject line, and a longer body explaining what changed and why.","failureModes":["Empty or malformed diff input returns an error","Diff too large may exceed processing limits","Ambiguous changes may produce low-confidence type/scope classification","Non-code diffs (e.g. binary files) may not parse correctly"],"whenToPreferThis":"Choose this endpoint when you need to automatically generate Conventional Commits-compliant messages from raw git diffs — ideal for CI/CD pipelines, pre-commit hooks, code review automation, or developer tools that need structured, standardized commit messages without manual writing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:54:48.067Z","isFirstParty":false}