Mutator Generations API
The generations API from Mutator — 2 operation(s) for generations.
Operations 3
POST
/api/v1/generations
Ask for a picture or a clip. Returns at once; the work happens on the queue
#
The generations API from Mutator — 2 operation(s) for generations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mutator-app:mutator-app-generations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Mutator Generations API
version: 1.0.0
summary: Start runs, read what they made, and be told when something happens.
description: 'Drive Mutator from your own systems. Keys come with any paid plan, and what a key reaches depends on the plan.
**Nothing here publishes.** No endpoint schedules a post, so no key of any scope can cause anything to reach a social account: a post exists only once a person has put a particular file in a particular account''s schedule, in Mutator.
Lists are paged by cursor (`after`, `nextCursor`), and `post.published` and the other webhook events are delivered signed. See the full documentation at /docs/api.'
contact:
name: Mutator
url: https://mutator.app/support
servers:
- url: https://mutator.app
security:
- bearerAuth: []
tags:
- name: Generations
paths:
/api/v1/generations:
get:
operationId: generations.list
summary: Pictures and clips asked for directly, with no automation
tags:
- Generations
parameters:
- name: after
in: query
required: false
schema:
type: string
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
responses:
'200':
description: Pictures and clips asked for directly, with no automation.
content:
application/json:
schema:
type: object
properties:
generations:
type: array
items:
type: object
properties:
id:
type: string
kind:
type: string
enum:
- image
- video
prompt:
type: string
status:
type: string
enum:
- queued
- generating
- done
- failed
withheldCount:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
error:
anyOf:
- type: string
- type: 'null'
errorCode:
anyOf:
- type: string
- type: 'null'
createdAt: {}
media:
type: array
items:
type: object
properties:
id:
type: string
kind:
type: string
mime:
anyOf:
- type: string
- type: 'null'
sizeBytes:
anyOf:
- type: number
- type: 'null'
downloadUrl:
type: string
required:
- id
- kind
- mime
- sizeBytes
- downloadUrl
additionalProperties: false
required:
- id
- kind
- prompt
- status
- withheldCount
- error
- errorCode
- createdAt
- media
additionalProperties: false
nextCursor:
anyOf:
- type: string
- type: 'null'
required:
- generations
- nextCursor
additionalProperties: false
'400':
description: The request is malformed. An `issues` array names the fields.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'401':
description: Missing, unknown, revoked or expired key.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'403':
description: A read-only key attempted a write.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'429':
description: 'Rate limited: 120 reads and 30 writes a minute, per key.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'500':
description: Our side. Safe to retry anything idempotent.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
security:
- bearerAuth: []
x-mutator-scope: read
post:
operationId: generations.create
summary: Ask for a picture or a clip. Returns at once; the work happens on the queue
tags:
- Generations
parameters: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
kind:
type: string
enum:
- image
- video
prompt:
type: string
minLength: 1
maxLength: 2000
aspectRatio:
type: string
maxLength: 12
variations:
type: integer
minimum: 1
maximum: 4
quality:
type: string
maxLength: 40
look:
type: string
maxLength: 60
imageArtifactId:
type: string
minLength: 1
maxLength: 64
imageUse:
type: string
enum:
- frame
- reference
productId:
type: string
minLength: 1
maxLength: 64
characterId:
type: string
minLength: 1
maxLength: 64
environmentArtifactId:
type: string
minLength: 1
maxLength: 64
duration:
type: integer
minimum: 3
maximum: 15
sound:
type: boolean
caption:
type: object
properties:
text:
type: string
maxLength: 300
style:
type: string
enum:
- outline
- box
- words
- inverse
position:
type: string
enum:
- bottom
- middle
- top
size:
type: string
enum:
- small
- medium
- large
color:
type: string
pattern: ^#[0-9a-fA-F]{6}$
required:
- text
comment:
type: object
properties:
username:
type: string
maxLength: 30
text:
type: string
minLength: 1
maxLength: 150
position:
type: string
enum:
- bottom
- middle
- top
required:
- username
- text
idempotencyKey:
type: string
minLength: 8
maxLength: 80
required:
- kind
- prompt
- idempotencyKey
responses:
'200':
description: Ask for a picture or a clip. Returns at once; the work happens on the queue.
content:
application/json:
schema:
type: object
properties:
id:
type: string
deduplicated:
type: boolean
required:
- id
- deduplicated
additionalProperties: false
'400':
description: The request is malformed. An `issues` array names the fields.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'401':
description: Missing, unknown, revoked or expired key.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'402':
description: The plan, the credits or a spending cap refused it. See `code`.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'403':
description: A read-only key attempted a write.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'422':
description: The content check refused the words.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'429':
description: 'Rate limited: 120 reads and 30 writes a minute, per key.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'500':
description: Our side. Safe to retry anything idempotent.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
security:
- bearerAuth: []
x-mutator-scope: write
/api/v1/generations/{generationId}:
get:
operationId: generations.get
summary: 'One generation: whether it finished, and what it made'
tags:
- Generations
parameters:
- name: generationId
in: path
required: true
schema:
type: string
responses:
'200':
description: 'One generation: whether it finished, and what it made.'
content:
application/json:
schema:
type: object
properties:
id:
type: string
kind:
type: string
enum:
- image
- video
prompt:
type: string
status:
type: string
enum:
- queued
- generating
- done
- failed
withheldCount:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
error:
anyOf:
- type: string
- type: 'null'
errorCode:
anyOf:
- type: string
- type: 'null'
createdAt: {}
media:
type: array
items:
type: object
properties:
id:
type: string
kind:
type: string
mime:
anyOf:
- type: string
- type: 'null'
sizeBytes:
anyOf:
- type: number
- type: 'null'
downloadUrl:
type: string
required:
- id
- kind
- mime
- sizeBytes
- downloadUrl
additionalProperties: false
required:
- id
- kind
- prompt
- status
- withheldCount
- error
- errorCode
- createdAt
- media
additionalProperties: false
'400':
description: The request is malformed. An `issues` array names the fields.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'401':
description: Missing, unknown, revoked or expired key.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'403':
description: A read-only key attempted a write.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'404':
description: No generation with that id in this key's workspace.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'429':
description: 'Rate limited: 120 reads and 30 writes a minute, per key.'
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
'500':
description: Our side. Safe to retry anything idempotent.
content:
application/json:
schema:
type: object
properties:
error:
type: string
code:
type: string
correlationId:
type: string
required:
- error
- correlationId
security:
- bearerAuth: []
x-mutator-scope: read
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A Mutator API key: Settings, API keys, New key.'