---
title: "Estimate Operation Cost"
method: POST
path: "/api/v1/billing/estimate-cost"
tags: ["billing"]
---

# Estimate Operation Cost

`POST /api/v1/billing/estimate-cost`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/billing/estimate-cost`
- Auth: none declared

Estimate cost for an AI operation before execution.

This endpoint helps users understand the cost implications before
running expensive AI operations. The estimate includes:
- Total cost to be charged
- Platform margin based on subscription tier
- Current wallet balance
- Whether sufficient funds are available

## Headers

- `Authorization` string

## Request body

- CostEstimateRequest: Schema for requesting cost estimate.
  - `operation_type` string, required
  - `model` string, required
  - `estimated_tokens` integer, nullable
  - `asset_id` string, uuid, nullable

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
