Skip to main content
POST
Estimate Image Generation Cost

Authorizations

Authorization
string
header
required

Mynth API key sent as Authorization: Bearer <api-key>.

Body

application/json
prompt
string
required

Positive prompt.

Maximum string length: 8192
Example:

"Cute Cat"

output
object
model
default:auto
Example:

"black-forest-labs/flux.2-pro"

count
number
default:1
Required range: 1 <= x <= 20
access
object

Controls whether the create-task response should include a short-lived Public Access Token.

That token can be passed to browser or client-side code for polling task status and task images without exposing your API key.

destination
string
Required string length: 1 - 64
Example:

"bunny-prod"

inputs
(string | object)[]
Maximum array length: 20
Required string length: 1 - 2048
magic_prompt
any
metadata
object
negative_prompt
string
Maximum string length: 8192
rating

Content rating

Example:
size
webhook
object

Response

200 - application/json

Image generation request validated and cost estimated

data
object
required