v1

latestOpenAPI 3.0.02026-07-228239173.7 KB
Client API

Calculate the price for generating sample prompts

get/api/v1/client/prompts/samples/price-calculation

Query parameters

type'text2image' | 'text2speech' required
Example:text2image

Type of sample prompt to generate

topicstring nullable
Example:cyberpunk cityscape at night

Optional topic to base the prompt on

lang_codestring nullable
Example:en

Optional language code for text-to-speech prompts

Response

Price calculation returned successfully

pricenumber float

Example response

{
  "price": 0.00012345
}