---
title: "Estimate the cost of a service call"
method: POST
path: "/estimate"
tags: ["Estimate"]
---

# Estimate the cost of a service call

`POST /estimate`

## Request

- Base URL: `https://studio.fintechstudios.com/api/v1`
- URL: `https://studio.fintechstudios.com/api/v1/estimate`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Estimate the credit cost of a single service call before making it. Costs 0 credits.

## Request body

- object
  - `service` string, required
  - `operation` string
  - `inputTokens` integer
  - `outputTokens` integer
  - `model` string

## Response `200`

Cost estimate

- object
  - `data` object
    - `estimated_credits` integer
    - `estimated_cost_usd` number
    - `confidence` 'exact' | 'estimated'
  - `meta` Meta
    - `request_id` string
    - `credits_used` integer
    - `credits_remaining` integer
    - `rate_limit` object
      - `limit` integer
      - `remaining` integer
      - `reset` integer

---

[API](https://skmtc.dev/fintechstudios/apis/fts-studio-api.md) · [All operations](https://skmtc.dev/fintechstudios/apis/fts-studio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fintechstudios/apis/fts-studio-api/revisions/4886597d1d96?raw)
