Skip to main content
GET
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
enum<string>
required

Type of sample prompt to generate

Available options:
text2image,
text2speech
Example:

"text2image"

topic
string | null

Optional topic to base the prompt on

Maximum string length: 500
Example:

"cyberpunk cityscape at night"

lang_code
string | null

Optional language code for text-to-speech prompts

Maximum string length: 4
Example:

"en"

Response

Price calculation returned successfully

price
number<float>
Example:

0.00012345