---
title: "POST /billing/estimate"
method: POST
path: "/billing/estimate"
tags: ["Billing"]
---

# POST /billing/estimate

`POST /billing/estimate`

## Request body

- object
  - `inputTokens` integer
  - `outputTokens` integer
  - `totalTokens` integer

## Response `200`

Estimated credit charge

- object
  - `data` object, required
    - `credits` integer, required
    - `pricingVersion` string, required
    - `totalTokens` integer, required

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/greentally/apis/esgai-api.md) · [All operations](https://skmtc.dev/greentally/apis/esgai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/greentally/esgai-api/revisions/09945036a28b/schema)
