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

# Estimate Cost

`POST /billing/estimate`

Estimate LLM generation cost for a repo.

## Request body

- CostEstimateRequest
  - `repo_url` string, required
  - `docs_file_percentage` number
  - `provider` string
  - `model` string
  - `team_id` string, nullable

## Response `200`

Successful Response

- CostEstimateResponse
  - `estimated_cost_cents` integer, required
  - `estimated_cost_dollars` number, required
  - `estimated_pages` integer, required
  - `has_sufficient_credits` boolean, required
  - `user_balance_cents` integer, required
  - `effective_balance_cents` integer
  - `pool` string
  - `team_id` string, nullable
  - `team_name` string, nullable
  - `provider` string
  - `model` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/repowise/repowise-hosted-api/revisions/1e57283a9737/schema)
