---
title: "Generate an AI commit message for a specific SDK"
method: POST
path: "/v0/projects/{project}/generate_commit_message"
---

# Generate an AI commit message for a specific SDK

`POST /v0/projects/{project}/generate_commit_message`

Generates an AI commit message by comparing two git refs in the SDK repository.

## Path parameters

- `project` string, required

## Query parameters

- `target` 'python' | 'node' | 'typescript' | 'java' | 'kotlin' | 'go' | 'ruby' | 'terraform' | 'cli' | 'csharp' | 'php' | 'openapi' | 'sql', required — Language target

## Request body

- object
  - `base_ref` string, required — Base ref for comparison
  - `head_ref` string, required — Head ref for comparison

## Response `200`

success

- object
  - `ai_commit_message` string, required

---

[API](https://skmtc.net/stainless-api/apis/my-api.md) · [All operations](https://skmtc.net/stainless-api/apis/my-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stainless-api/my-api/versions/1d73a351f557/schema)
