---
title: "GET /api/v1/client/prompts/samples/price-calculation"
method: GET
path: "/api/v1/client/prompts/samples/price-calculation"
tags: ["Client API"]
---

# GET /api/v1/client/prompts/samples/price-calculation

`GET /api/v1/client/prompts/samples/price-calculation`

Calculate the price for generating sample prompts

## Query parameters

- `type` 'text2image' | 'text2speech', required
- `topic` string, nullable
- `lang_code` string, nullable

## Response `200`

Price calculation returned successfully

- object
  - `price` number, float

## Other responses

- `422` — Validation failed

---

[API](https://skmtc.net/deapi/apis/deapi-rest-api.md) · [All operations](https://skmtc.net/deapi/apis/deapi-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deapi/deapi-rest-api/versions/c70b8b231ca8/schema)
