---
title: "Public Estimate Cost"
method: POST
path: "/api/v1/public/credits/estimate"
tags: ["public-api"]
---

# Public Estimate Cost

`POST /api/v1/public/credits/estimate`

## Request

- Base URL: `https://api.slidemaster.tw` (the document declares no server; this is the origin it was published from)
- URL: `https://api.slidemaster.tw/api/v1/public/credits/estimate`
- Auth: none declared

預估操作的 credit 成本，不實際扣款。

operations 可包含: render, tts, video, full_pipeline（= render + tts + video）。
slides_count: 投影片數量。image_size: 1K / 2K / 4K。

回傳各項成本明細、總計、當前餘額、是否足夠。

## Headers

- `Authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- EstimateCostRequest
  - `operations` string[]
  - `slides_count` integer
  - `image_size` string
  - `tts_provider` string, nullable
  - `voice_name` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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