---
title: "Check if user has enough credits for a job (Internal endpoint)"
method: POST
path: "/v1/billing/credits-commit"
tags: ["Billing"]
---

# Check if user has enough credits for a job (Internal endpoint)

`POST /v1/billing/credits-commit`

## Request body

- CreditCommitRequest
  - `job_id` string, uuid, required — The ID of the job
  - `user_id` string, uuid, required — The ID of the user
  - `usage_amount` integer, required — The amount of usage
  - `usage_unit` 'token', required — The unit of usage
  - `service_name` string, required — The name of the service

## Response `200`

Successful response

- CreditCommitResponse
  - `has_enough_credits` boolean — Whether the user has enough credits for the job

---

[API](https://skmtc.dev/luminolabs/apis/billing-api.md) · [All operations](https://skmtc.dev/luminolabs/apis/billing-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/luminolabs/billing-api/revisions/3a612ae50282/schema)
