All tools

Commit Message Generator (AI)

Code

Paste a git diff and get a Conventional Commits-style commit message back: type, scope, subject, and body, powered by GPT-4o mini

Paste a git diff and GPT-4o mini writes the commit message for you: a Conventional Commits type like feat or fix, an optional scope, an imperative subject line under 72 characters, and a short body when the change needs more explaining than the subject alone can carry. This is a server-backed AI tool, not a browser-only utility, so the diff text is sent to OpenAI's API to generate the response. It works from the diff alone, so it can guess the wrong type or scope for changes with unclear intent, like a diff that touches many unrelated files at once; the optional context field is there for exactly that case, to nudge the type or explain the why in a sentence. Treat the output as a strong first draft, not a guarantee: skim it before committing, especially the type and scope, since those affect changelogs and semantic-release tooling downstream.

gitcommitaigenerateconventional-commits

How to use Commit Message Generator (AI)

  • 1.Paste the output of `git diff` or `git diff --staged` to get a ready-to-use commit message in Conventional Commits format.
  • 2.Add optional context, like a ticket number or a one-line note about why you made the change, when the diff alone doesn't make the intent obvious.
  • 3.Review the generated type and scope before committing, since diffs touching unrelated files can lead to a guessed type that doesn't match your team's conventions.

Frequently asked questions

Does this run in my browser or on a server?
Generation calls GPT-4o mini on the server since it requires an LLM, your diff text is sent to OpenAI's API to generate the response.
Does it always pick the right Conventional Commits type?
Not always, a diff touching several unrelated things at once can lead to a guessed type that doesn't fit your convention, so it's worth a quick check before committing, especially if you rely on semantic-release or changelog tooling.
How long can the diff be?
Up to 12,000 characters. For a much larger diff, paste just the most relevant hunks rather than the entire changeset.
Can I guide the tone or add a ticket reference?
Yes, use the optional context field to add a ticket number or a short note, which gets factored into the generated subject and body.

Use via API, SDK, or MCP

cURL# Free: a few generations/month · Pro: more per month
curl -X POST api.utilix.tech/v1/ai/commit-message \
  -H "Authorization: Bearer utx_live_..." \
  -H "Content-Type: application/json" \
  -d '{"prompt": "..."}'

Free plan includes a monthly quota; Pro raises the limit. Get an API key from your dashboard · Full API docs →