cURL
Image
Post imagegenerate
POST
cURL
Authorizations
Mynth API key sent as Authorization: Bearer <api-key>.
Body
application/json
Positive prompt.
Required string length:
1 - 8192Example:
"Cute Cat"
Example:
"black-forest-labs/flux.2-pro"
Required range:
1 <= x <= 20Controls 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.
Required string length:
1 - 64Example:
"bunny-prod"
Maximum array length:
20Required string length:
1 - 2048Required string length:
1 - 8192Content rating
Example:
{
"mode": "custom",
"levels": [
{
"value": "<13",
"description": "Safe for Children"
},
{
"value": "<18",
"description": "Safe for Teens"
},
{
"value": "18+",
"description": "Adults Only"
}
]
}
Response
201 - application/json
Create image generation task