POST /image/generate. You can call it through the official SDK or directly over HTTP.
Use the JavaScript SDK
Use the REST API
What happens next
Creating a task does not return final images immediately. Mynth creates a task first, then you retrieve the result in one of two ways:- wait for completion in the SDK
- poll task endpoints or receive webhooks
Common request fields
| Field | Purpose |
|---|---|
prompt | The prompt text, or a structured prompt object. |
model | A specific model ID, or "auto" to let Mynth choose. |
size | Preset, aspect ratio, or "auto". |
count | Number of images to generate. Maximum: 100. |
inputs | Optional input images by URL or structured input objects. |
output | Output format and quality. |
webhook | Task-level webhook controls and extra custom endpoints. |
content_rating | Optional content classification settings. |
metadata | Application-specific data returned with the task and webhook payloads. |
Choose a model
Setmodel explicitly in production. model: "auto" is an early preview feature. Browse models at mynth.io/models.