image.generateimage.rateimage.alt
Status values
pendingcompletedfailed
Endpoints
GET /tasks/:id
Returns the full task object.
Authentication:
- requires your Mynth API key
- owner-only
- Public Access Tokens do not work here
GET /tasks/:id/status
Returns only:
- API key, or
- task-scoped Public Access Token
GET /tasks/:id/result
Returns:
- API key, or
- task-scoped Public Access Token
Full task shape
GET /tasks/:id returns the complete task object:
requestcontains the original task parameters as submitted.resultcontains task-specific output. It isnullforpendingtasks and for failed tasks that did not produce a result.- For
image.generate,resultcontains the resolvedmodel,images, and optionalmagic_prompt. - For
image.rate,result.resultscontains per-URL rating items. - For
image.alt,result.resultscontains per-URL alt text items. result.magic_promptis present whenmagic_prompt: truewas applied, containing the enhancedpositiveand optionalnegativeprompt.costat the task level is the total cost as a decimal string. Per-image cost is returned on each image inresult.images[].cost.- When
size: "auto"is used, the selected dimensions are reflected in each image’ssizefield ({width}x{height}). errorsis present onfailedtasks as an array of{ code }.
Result image states
Each image result is either:successfailed
id, url (nullable when delivered only to a destination), mynth_url, size ({width}x{height}), and cost (per-image decimal string). A failed image includes error.code.
If you want only successful image URLs in the SDK, use task.urls or task.getImages().