{
  "openapi": "3.1.0",
  "info": {
    "title": "MakeCorn API",
    "version": "1.0.0",
    "summary": "Create adult AI photos and videos from code.",
    "description": "The MakeCorn API is a REST API that lets developers create adult AI photos, videos and full movies from their own apps, scripts and AI agents, using the same models and credits as the MakeCorn website.\n\nCreate a key at https://www.makecorn.com/dashboard/settings/api-keys. Creation is asynchronous: start a photo or video, then poll its statusUrl.",
    "termsOfService": "https://www.makecorn.com/terms"
  },
  "externalDocs": {
    "description": "MakeCorn API docs",
    "url": "https://www.makecorn.com/developers"
  },
  "servers": [
    {
      "url": "https://www.makecorn.com/api/v1"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Account"
    },
    {
      "name": "Models"
    },
    {
      "name": "Generations"
    },
    {
      "name": "Modes"
    },
    {
      "name": "Movies"
    },
    {
      "name": "Movie production"
    },
    {
      "name": "Movie shots"
    },
    {
      "name": "Characters"
    },
    {
      "name": "Assets"
    }
  ],
  "paths": {
    "/account": {
      "get": {
        "operationId": "get-account",
        "summary": "Get your plan and credits",
        "description": "Returns your plan, your credit balance and whether this key can create photos and videos right now. Call it before a batch of work, or to show a balance in your own app.\n\nplan is \"free\" when the account has no paid plan. canGenerate is false in that case, and creation endpoints return 402 plan_required.",
        "tags": [
          "Account"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#get-account"
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                },
                "example": {
                  "plan": "pro",
                  "canGenerate": true,
                  "credits": 1240,
                  "links": {
                    "pricing": "https://www.makecorn.com/pricing",
                    "topUp": "https://www.makecorn.com/dashboard/credits/buy"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/usage": {
      "get": {
        "operationId": "get-usage",
        "summary": "Get your usage and spend",
        "description": "Returns credits spent and refunded, requests, errors, rate limit hits and jobs by type for your whole account, split per key and per day. The same numbers appear on your API usage page in the dashboard.\n\nDays are UTC calendar days, ending today. Only activity from 2026-11-28 on is counted.\n\nCredits come from your credit history and update within a minute. Requests and errors are counted for calls made with a valid key.\n\nerrorRate is errors divided by requests, from 0 to 1. errors lists how often each error code was returned.\n\npartner.qualifies turns true once your account pays 500 US dollars or more in 30 days. See partner.url for partner pricing.\n\nReturns 404 not_found when key is not one of your keys.",
        "tags": [
          "Account"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#get-usage"
        },
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "description": "How many days to cover, 1 to 90. Defaults to 30.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "key",
            "in": "query",
            "required": false,
            "description": "Only count calls made with this key. Use an id from the keys list.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                },
                "example": {
                  "range": {
                    "days": 7,
                    "from": "2026-11-22",
                    "to": "2026-11-28"
                  },
                  "trackedSince": "2026-11-28",
                  "key": null,
                  "totals": {
                    "creditsSpent": 420,
                    "creditsRefunded": 20,
                    "netCredits": 400,
                    "requests": 312,
                    "errors": 6,
                    "rateLimited": 2,
                    "errorRate": 0.0192
                  },
                  "jobs": {
                    "photos": 18,
                    "edits": 4,
                    "videoModes": 3,
                    "videos": 6,
                    "movies": 1
                  },
                  "errors": [
                    {
                      "code": "rate_limited",
                      "count": 2
                    },
                    {
                      "code": "insufficient_credits",
                      "count": 2
                    },
                    {
                      "code": "not_found",
                      "count": 2
                    }
                  ],
                  "keys": [
                    {
                      "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                      "name": "My website",
                      "prefix": "mc_live_9f3a",
                      "lastUsedAt": "2026-09-25T10:00:00.000Z",
                      "revoked": false,
                      "creditsSpent": 420,
                      "creditsRefunded": 20,
                      "netCredits": 400,
                      "requests": 312,
                      "errors": 6,
                      "rateLimited": 2,
                      "errorRate": 0.0192
                    }
                  ],
                  "days": [
                    {
                      "date": "2026-11-28",
                      "creditsSpent": 420,
                      "creditsRefunded": 20,
                      "netCredits": 400,
                      "requests": 312,
                      "errors": 6,
                      "rateLimited": 2,
                      "errorRate": 0.0192
                    }
                  ],
                  "moviesInProgress": {
                    "current": 1,
                    "limit": 3
                  },
                  "limits": {
                    "requestsPerMinute": 120,
                    "generationsPerMinute": 20
                  },
                  "credits": 1240,
                  "partner": {
                    "qualifies": false,
                    "paidLast30DaysUsd": 149.97,
                    "qualifyAtUsd": 500,
                    "url": "https://www.makecorn.com/biz"
                  },
                  "links": {
                    "dashboard": "https://www.makecorn.com/dashboard/settings/api-usage",
                    "topUp": "https://www.makecorn.com/dashboard/credits/buy"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/account/webhook-secret": {
      "get": {
        "operationId": "get-webhook-secret",
        "summary": "Check your signing secret",
        "description": "Tells you whether your account has a secret for signing movie callbacks, and when it was last changed. The secret itself is never shown here.\n\navailable is false while account secrets are being switched on. Send callbackSecret with each movie until then.",
        "tags": [
          "Account"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#get-webhook-secret"
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecret"
                },
                "example": {
                  "kind": "webhook_secret",
                  "available": true,
                  "set": true,
                  "createdAt": "2026-09-25T10:00:00.000Z",
                  "rotatedAt": "2026-09-25T10:00:00.000Z"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "rotate-webhook-secret",
        "summary": "Create or change your signing secret",
        "description": "Creates your account's secret for signing movie callbacks, or replaces it with a new one. The secret is shown only in this response, so store it right away.\n\nEvery movie callback is signed with this secret unless that movie was given its own callbackSecret.\n\nChanging it takes effect at once, including for movies already being made. Update your receiver first, or briefly accept both secrets.\n\nReturns 503 not_available while account secrets are being switched on.",
        "tags": [
          "Account"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#rotate-webhook-secret"
        },
        "parameters": [],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSecret"
                },
                "example": {
                  "kind": "webhook_secret",
                  "available": true,
                  "set": true,
                  "createdAt": "2026-09-25T10:00:00.000Z",
                  "rotatedAt": "2026-09-25T10:00:00.000Z",
                  "secret": "whsec_6f1c…"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Not switched on for this account yet. The message says what to use meanwhile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/models": {
      "get": {
        "operationId": "list-models",
        "summary": "List models and prices",
        "description": "Lists every photo and video model you can use, the settings each one accepts and what it costs in credits. Use the options array to decide which fields to send.\n\ncredits.default is the price with default settings. credits.table lists the price for each combination of the settings that change the price, such as duration and resolution.\n\nVideo models also report textToVideo and imageToVideo. A model that only supports imageToVideo needs startFrameUrl.",
        "tags": [
          "Models"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#list-models"
        },
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "Only return photo models or only video models.",
            "schema": {
              "type": "string",
              "enum": [
                "image",
                "video"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelList"
                },
                "example": {
                  "models": [
                    {
                      "id": "wan-26-nsfw",
                      "kind": "image",
                      "name": "Wan 2.6 NSFW (Anime)",
                      "lab": "Alibaba",
                      "description": "…",
                      "typicalWait": "~15s",
                      "maxCount": 4,
                      "options": [
                        {
                          "name": "prompt",
                          "type": "text",
                          "label": "Prompt",
                          "required": true
                        }
                      ],
                      "credits": {
                        "default": 9,
                        "table": [
                          {
                            "settings": {
                              "withReferenceImages": false
                            },
                            "credits": 9
                          },
                          {
                            "settings": {
                              "withReferenceImages": true
                            },
                            "credits": 12
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/generations/image": {
      "post": {
        "operationId": "create-image",
        "summary": "Create photos",
        "description": "Starts creating 1 to 4 photos and answers right away with 202 Accepted. Each photo gets its own id and statusUrl to check.\n\nCredits are taken when the work starts. creditsCharged is the total for every photo that started. If a photo fails, its credits go back to your balance automatically.\n\nSome models create fewer photos per request. GET /models returns maxCount for each photo model.",
        "tags": [
          "Generations"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#create-image"
        },
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "minLength": 1
                  },
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  },
                  "aspectRatio": {
                    "type": "string",
                    "enum": [
                      "1:1",
                      "16:9",
                      "21:9",
                      "3:2",
                      "2:3",
                      "4:5",
                      "5:4",
                      "3:4",
                      "4:3",
                      "9:16",
                      "9:21"
                    ]
                  },
                  "resolution": {
                    "type": "string",
                    "minLength": 1
                  },
                  "imageUrls": {
                    "minItems": 1,
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "count": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4
                  }
                },
                "required": [
                  "model",
                  "prompt"
                ],
                "additionalProperties": false
              },
              "example": {
                "model": "wan-26-nsfw",
                "prompt": "A fictional adult woman in a red dress on a rooftop at sunset",
                "count": 1
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateImageResponse"
                },
                "example": {
                  "model": "wan-26-nsfw",
                  "requested": 1,
                  "started": 1,
                  "creditsCharged": 9,
                  "generations": [
                    {
                      "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                      "kind": "image",
                      "statusUrl": "https://www.makecorn.com/api/v1/generations/image/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/generations/image/{id}": {
      "get": {
        "operationId": "get-image",
        "summary": "Get a photo",
        "description": "Returns the status of one photo. Photos are usually ready in 10 to 30 seconds. Check every 2 to 5 seconds until status is \"succeeded\" or \"failed\". When it succeeds, urls holds the finished photo.\n\nIf a finished photo breaks our content rules, it is not delivered: withheld is true and urls is empty.\n\nA failed photo has creditsCharged 0 and an error message you can show to your users.",
        "tags": [
          "Generations"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#get-image"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The id returned by POST /generations/image.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageGeneration"
                },
                "example": {
                  "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "kind": "image",
                  "model": "wan-26-nsfw",
                  "status": "succeeded",
                  "prompt": "A fictional adult woman in a red dress on a rooftop at sunset",
                  "urls": [
                    "https://assets.makecorn.com/…/photo.png"
                  ],
                  "withheld": false,
                  "error": null,
                  "creditsCharged": 9,
                  "createdAt": "2026-09-25T10:00:00.000Z",
                  "statusUrl": "https://www.makecorn.com/api/v1/generations/image/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/generations/video": {
      "post": {
        "operationId": "create-video",
        "summary": "Create a video",
        "description": "Starts creating one video from a description, or from a starting photo plus a description. Answers right away with 202 Accepted and a statusUrl to check.\n\nOnly send the fields your model lists in GET /models. Settings a model doesn't support return 400 invalid_settings.\n\nCredits are taken when the work starts and returned automatically if the video fails.",
        "tags": [
          "Generations"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#create-video"
        },
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "minLength": 1
                  },
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  },
                  "negativePrompt": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "startFrameUrl": {
                    "type": "string",
                    "format": "uri"
                  },
                  "endFrameUrl": {
                    "type": "string",
                    "format": "uri"
                  },
                  "duration": {
                    "type": "integer",
                    "minimum": 3,
                    "maximum": 15
                  },
                  "resolution": {
                    "type": "string",
                    "minLength": 1
                  },
                  "aspectRatio": {
                    "type": "string",
                    "minLength": 1
                  },
                  "generateAudio": {
                    "type": "boolean"
                  },
                  "audioUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": [
                  "model",
                  "prompt"
                ],
                "additionalProperties": false
              },
              "example": {
                "model": "wan3-spicy",
                "prompt": "She turns toward the camera and smiles as the wind moves her hair",
                "startFrameUrl": "https://assets.makecorn.com/your-photo.jpg",
                "duration": 5,
                "resolution": "720p"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateVideoResponse"
                },
                "example": {
                  "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "kind": "video",
                  "model": "wan3-spicy",
                  "status": "processing",
                  "creditsCharged": 126,
                  "statusUrl": "https://www.makecorn.com/api/v1/generations/video/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/generations/video/{id}": {
      "get": {
        "operationId": "get-video",
        "summary": "Get a video",
        "description": "Returns the status of one video. A short video is often ready in under a minute, and longer or higher-resolution videos can take up to five minutes. Check every 10 to 15 seconds until status is \"succeeded\" or \"failed\".\n\nstatus moves from queued to processing, then ends as succeeded or failed. When it succeeds, url holds the finished video.\n\nIf a finished video breaks our content rules, withheld is true and url is null.\n\nA failed video has creditsCharged 0 and an error message you can show to your users. The credits are already back in your balance.",
        "tags": [
          "Generations"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#get-video"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The id returned by POST /generations/video.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoGeneration"
                },
                "example": {
                  "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "kind": "video",
                  "model": "wan3-spicy",
                  "status": "succeeded",
                  "prompt": "She turns toward the camera and smiles as the wind moves her hair",
                  "url": "https://assets.makecorn.com/…/video.mp4",
                  "withheld": false,
                  "error": null,
                  "creditsCharged": 126,
                  "createdAt": "2026-09-25T10:00:00.000Z",
                  "statusUrl": "https://www.makecorn.com/api/v1/generations/video/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/generations": {
      "get": {
        "operationId": "list-generations",
        "summary": "List your photos or videos",
        "description": "Lists your photos or your videos, newest first, in the same shape as Get a photo and Get a video. Pass nextCursor back as cursor to get the next page.\n\nPhotos and videos are separate lists that page separately. To show both, call once with kind=image and once with kind=video.\n\nnextCursor is null on the last page.",
        "tags": [
          "Generations"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#list-generations"
        },
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "Which list to return: \"image\" for photos or \"video\" for videos. Defaults to \"image\".",
            "schema": {
              "type": "string",
              "enum": [
                "image",
                "video"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size, 1 to 100. Defaults to 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The nextCursor value from the previous page.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerationList"
                },
                "example": {
                  "kind": "image",
                  "generations": [
                    {
                      "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                      "kind": "image",
                      "model": "wan-26-nsfw",
                      "status": "succeeded",
                      "prompt": "A fictional adult woman in a red dress on a rooftop at sunset",
                      "urls": [
                        "https://assets.makecorn.com/…/photo.png"
                      ],
                      "withheld": false,
                      "error": null,
                      "creditsCharged": 9,
                      "createdAt": "2026-09-25T10:00:00.000Z",
                      "statusUrl": "https://www.makecorn.com/api/v1/generations/image/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                    }
                  ],
                  "nextCursor": "2026-09-24T18:30:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/modes": {
      "get": {
        "operationId": "list-modes",
        "summary": "List modes and prices",
        "description": "Lists every ready-made mode, such as Undress, Cowgirl or Sexy Santa, with its categories, preview links and price in credits. A mode turns one of your characters or photos into a new photo, or a photo plus a short video.\n\ncredits.photo is the price of a photo only. credits.video lists the price of a photo plus a video for each quality and duration.\n\npositions is only set for seasonal modes. Send one of them as position to choose the pose, or leave it out for defaultPosition. Their video prices list a position for each price.\n\nPrices in this example are only an illustration. Always read the current prices from this endpoint.",
        "tags": [
          "Modes"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#list-modes"
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModeList"
                },
                "example": {
                  "categories": [
                    {
                      "id": "riding",
                      "name": "Riding"
                    }
                  ],
                  "options": {
                    "output": [
                      "video",
                      "photo",
                      "loop"
                    ],
                    "quality": [
                      "standard",
                      "hd",
                      "full-hd"
                    ],
                    "duration": [
                      5,
                      10,
                      15
                    ],
                    "aspectRatio": [
                      "9:16",
                      "16:9",
                      "1:1"
                    ]
                  },
                  "modes": [
                    {
                      "id": "cowgirl",
                      "name": "Cowgirl",
                      "categories": [
                        "riding",
                        "pov",
                        "couple"
                      ],
                      "badge": "hot",
                      "thumbnailUrl": "https://assets.makecorn.com/video-modes/20261009/cowgirl.webp",
                      "previewVideoUrl": "https://assets.makecorn.com/video-modes/previews/20261014/cowgirl.mp4",
                      "positions": null,
                      "defaultPosition": null,
                      "credits": {
                        "photo": 20,
                        "video": [
                          {
                            "quality": "hd",
                            "duration": 5,
                            "credits": 120
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/modes/{id}/runs": {
      "post": {
        "operationId": "start-mode-run",
        "summary": "Run a mode",
        "description": "Starts a mode on one of your characters or uploaded photos and answers right away with 202 Accepted and a statusUrl to check. With output video you get the photo first, then the video made from it.\n\nNeeds a paid plan. Credits are taken when the run starts and returned automatically if it fails. creditsCharged tells you exactly what was taken.\n\nSend exactly one of characterId (GET /characters) or assetId (GET /assets or POST /assets/presign). Using an uploaded photo needs consent set to true.\n\nSend an Idempotency-Key header to retry safely: the same key with the same request returns the first run instead of starting and charging a new one, for 24 hours. The same key with a different request returns 409 idempotency_conflict.\n\ntext adds your own words to the scene. Describe adults only and never name real people, or you get 400 content_not_allowed.",
        "tags": [
          "Modes"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#start-mode-run"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "A mode id from GET /modes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Your own unique id for this request, 8 to 128 letters, digits or _ . : -",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "characterId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "assetId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "consent": {
                    "type": "boolean",
                    "const": true
                  },
                  "output": {
                    "type": "string",
                    "enum": [
                      "video",
                      "photo",
                      "loop"
                    ]
                  },
                  "quality": {
                    "default": "hd",
                    "type": "string",
                    "enum": [
                      "standard",
                      "hd",
                      "full-hd"
                    ]
                  },
                  "duration": {
                    "default": 5,
                    "anyOf": [
                      {
                        "type": "number",
                        "const": 5
                      },
                      {
                        "type": "number",
                        "const": 10
                      },
                      {
                        "type": "number",
                        "const": 15
                      }
                    ]
                  },
                  "aspectRatio": {
                    "default": "9:16",
                    "type": "string",
                    "enum": [
                      "9:16",
                      "16:9",
                      "1:1"
                    ]
                  },
                  "position": {
                    "type": "string",
                    "enum": [
                      "cowgirl",
                      "pov-from-behind",
                      "blowjob",
                      "missionary",
                      "reverse-cowgirl"
                    ]
                  },
                  "text": {
                    "default": "",
                    "type": "string",
                    "maxLength": 300
                  }
                },
                "required": [
                  "output"
                ],
                "additionalProperties": false
              },
              "example": {
                "characterId": "5d2e8a1c-7b3f-4e9a-8c6d-1f2a3b4c5d6e",
                "output": "video",
                "quality": "hd",
                "duration": 5,
                "aspectRatio": "9:16",
                "text": "she smiles at the camera"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModeRunStarted"
                },
                "example": {
                  "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "kind": "mode_run",
                  "mode": {
                    "id": "cowgirl",
                    "name": "Cowgirl"
                  },
                  "output": "video",
                  "status": "processing",
                  "creditsCharged": 120,
                  "statusUrl": "https://www.makecorn.com/api/v1/modes/runs/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The Idempotency-Key was used with a different request, or the same request is still starting.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/modes/runs/{id}": {
      "get": {
        "operationId": "get-mode-run",
        "summary": "Get a mode run",
        "description": "Returns the status of one mode run. Check every 5 to 10 seconds until status is \"succeeded\" or \"failed\". The photo is usually ready in under a minute, and a video can take a few more minutes.\n\nstage tells you which part is being made: photo first, then video when output is video. photoUrl is filled as soon as the photo is ready.\n\nIf a finished video breaks our content rules, withheld is true and videoUrl is null.\n\nWhen output is loop, the finished run also has loopVideoUrl (a seamless back-and-forth MP4 with no sound) and gifUrl (a small GIF). They can arrive a few seconds after videoUrl, so keep checking until both are filled.\n\nA failed run has an error message you can show to your users. Credits for the failed part are already back in your balance.",
        "tags": [
          "Modes"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#get-mode-run"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The id returned by POST /modes/{id}/runs.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModeRun"
                },
                "example": {
                  "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "kind": "mode_run",
                  "mode": {
                    "id": "cowgirl",
                    "name": "Cowgirl"
                  },
                  "output": "video",
                  "status": "succeeded",
                  "stage": "video",
                  "photoUrl": "https://assets.makecorn.com/…/photo.png",
                  "videoUrl": "https://assets.makecorn.com/…/video.mp4",
                  "withheld": false,
                  "error": null,
                  "creditsCharged": 120,
                  "createdAt": "2026-09-25T10:00:00.000Z",
                  "statusUrl": "https://www.makecorn.com/api/v1/modes/runs/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/options": {
      "get": {
        "operationId": "list-movie-options",
        "summary": "List movie options and stories",
        "description": "Lists the ready-made stories, male actors, lengths, styles, shot choices and other options you can send to the movie endpoints, with the credits for writing each story and for a portrait of him.\n\nstoryCredits is the price of writing the story for each length. It is the only charge when the movie is created.\n\nPictures and filming are priced per scene and per shot once the story is written, because they depend on the scenes. GET /movies/{id} shows them.\n\nshotOptions lists what you can send when you add, direct or redo a shot.\n\nlimits.moviesInProgress is how many movies one account can make at the same time (3).",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#list-movie-options"
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieOptions"
                },
                "example": {
                  "options": {
                    "durationSeconds": [
                      30,
                      60,
                      90,
                      120,
                      180,
                      240,
                      300
                    ],
                    "aspectRatio": [
                      "16:9",
                      "9:16"
                    ],
                    "quality": [
                      "standard",
                      "high",
                      "ultra"
                    ],
                    "style": [
                      "cinematic",
                      "noir",
                      "romance",
                      "neon",
                      "homemade"
                    ],
                    "dialogueLanguage": [
                      "en",
                      "es",
                      "pt",
                      "fr",
                      "de",
                      "ja",
                      "ko",
                      "ar"
                    ],
                    "finale": [
                      "facial",
                      "body",
                      "mouth",
                      "creampie",
                      "none"
                    ],
                    "storyShare": {
                      "min": 20,
                      "max": 70,
                      "default": 50
                    },
                    "premiseLength": {
                      "min": 20,
                      "max": 10000
                    },
                    "partnerLook": {
                      "age": [
                        "20s",
                        "30s",
                        "40s"
                      ],
                      "ethnicity": [
                        "white",
                        "…"
                      ],
                      "build": [
                        "…"
                      ],
                      "hair": [
                        "…"
                      ],
                      "beard": [
                        "…"
                      ]
                    }
                  },
                  "storyCredits": [
                    {
                      "durationSeconds": 60,
                      "credits": 35
                    }
                  ],
                  "partnerPortraitCredits": 12,
                  "shotOptions": {
                    "kinds": [
                      "story",
                      "sex"
                    ],
                    "positions": [
                      {
                        "id": "missionary",
                        "name": "Missionary"
                      }
                    ],
                    "camera": [
                      "first-person",
                      "side",
                      "face",
                      "wide"
                    ],
                    "seconds": [
                      5,
                      10,
                      15
                    ],
                    "redoFixes": {
                      "picture": [
                        "face",
                        "position",
                        "extraPerson",
                        "angle"
                      ],
                      "video": [
                        "movement",
                        "faceChanges",
                        "looksWrong"
                      ]
                    }
                  },
                  "limits": {
                    "moviesInProgress": 3
                  },
                  "actors": [
                    {
                      "id": "marco",
                      "name": "Marco",
                      "photoUrl": "https://assets.makecorn.com/male-actors/marco.webp?v=20261008a"
                    }
                  ],
                  "categories": [
                    {
                      "id": "service",
                      "name": "House calls"
                    }
                  ],
                  "templates": [
                    {
                      "id": "plumber",
                      "category": "service",
                      "title": "The plumber",
                      "teaser": "He fixed the leak. She asked him to stay.",
                      "premise": "A woman working from home calls a plumber when her kitchen sink floods…",
                      "durationSeconds": 60,
                      "storyCredits": 35
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/quote": {
      "post": {
        "operationId": "quote-movie",
        "summary": "Check a movie before making it",
        "description": "Checks a POST /movies body exactly as creating it would, including content rules and your characters and photos, and returns the price of writing the story. Nothing is made or charged.\n\nReturns the same 400, 402 and 404 errors POST /movies would.\n\ncanStartNow is false when your balance is too low or your account is already making as many movies as it can.",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#quote-movie"
        },
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "premise": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 10000
                  },
                  "templateId": {
                    "type": "string",
                    "enum": [
                      "pov-morning-wakeup",
                      "pov-girlfriend-shower",
                      "pov-date-night",
                      "pov-lazy-sunday",
                      "pov-quickie-kitchen",
                      "plumber",
                      "pizza-delivery",
                      "pool-cleaner",
                      "mechanic",
                      "cab-ride",
                      "hitchhiker",
                      "bar-pickup",
                      "hotel-upgrade",
                      "rainy-cabin",
                      "boss-secretary",
                      "job-interview",
                      "personal-trainer",
                      "real-estate",
                      "massage",
                      "home-early",
                      "neighbor",
                      "landlord",
                      "roommate",
                      "ex-returns",
                      "photoshoot",
                      "private-yoga",
                      "spa-day",
                      "honeymoon",
                      "dancer",
                      "locksmith",
                      "cable-guy",
                      "private-chef",
                      "train-sleeper",
                      "wedding-guest",
                      "airport-lounge",
                      "art-model",
                      "bartender-close",
                      "dance-instructor",
                      "anniversary",
                      "game-night",
                      "vineyard-weekend",
                      "first-snow",
                      "nurse-checkup",
                      "maid-costume",
                      "cowgirl-ranch",
                      "lingerie-fashion-show",
                      "beach-cove",
                      "forest-hike",
                      "rooftop-sunset",
                      "camping-tent",
                      "yacht-deck",
                      "paris-balcony",
                      "onsen-retreat",
                      "safari-tent",
                      "vip-night",
                      "getaway-driver",
                      "bank-job",
                      "motel-hideout",
                      "yacht-party",
                      "bikini-day"
                    ]
                  },
                  "durationSeconds": {
                    "type": "number",
                    "enum": [
                      30,
                      60,
                      90,
                      120,
                      180,
                      240,
                      300
                    ]
                  },
                  "storyShare": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 20,
                    "maximum": 70
                  },
                  "aspectRatio": {
                    "default": "16:9",
                    "type": "string",
                    "enum": [
                      "16:9",
                      "9:16"
                    ]
                  },
                  "quality": {
                    "default": "high",
                    "type": "string",
                    "enum": [
                      "standard",
                      "high",
                      "ultra"
                    ]
                  },
                  "style": {
                    "default": "cinematic",
                    "type": "string",
                    "enum": [
                      "cinematic",
                      "noir",
                      "romance",
                      "neon",
                      "homemade"
                    ]
                  },
                  "dialogueLanguage": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "es",
                      "pt",
                      "fr",
                      "de",
                      "ja",
                      "ko",
                      "ar"
                    ]
                  },
                  "finale": {
                    "default": "facial",
                    "type": "string",
                    "enum": [
                      "facial",
                      "body",
                      "mouth",
                      "creampie",
                      "none"
                    ]
                  },
                  "characterId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "assetId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "partnerId": {
                    "type": "string",
                    "enum": [
                      "marco",
                      "jake",
                      "andre",
                      "kenji",
                      "rafael",
                      "liam"
                    ]
                  },
                  "partnerAssetId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "partnerPortraitId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "partnerLook": {
                    "type": "object",
                    "properties": {
                      "age": {
                        "type": "string",
                        "enum": [
                          "20s",
                          "30s",
                          "40s"
                        ]
                      },
                      "ethnicity": {
                        "type": "string",
                        "enum": [
                          "white",
                          "latino",
                          "black",
                          "asian",
                          "middleEastern",
                          "indian"
                        ]
                      },
                      "build": {
                        "type": "string",
                        "enum": [
                          "slim",
                          "athletic",
                          "muscular",
                          "broad"
                        ]
                      },
                      "hair": {
                        "type": "string",
                        "enum": [
                          "shortDark",
                          "shortBlond",
                          "curly",
                          "buzzed",
                          "bald"
                        ]
                      },
                      "beard": {
                        "type": "string",
                        "enum": [
                          "cleanShaven",
                          "stubble",
                          "beard"
                        ]
                      },
                      "notes": {
                        "type": "string",
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "age",
                      "ethnicity",
                      "build",
                      "hair",
                      "beard"
                    ]
                  },
                  "consent": {
                    "type": "boolean",
                    "const": true
                  },
                  "autoProduce": {
                    "default": true,
                    "type": "boolean"
                  },
                  "longTakes": {
                    "default": false,
                    "type": "boolean"
                  },
                  "faceRefine": {
                    "default": false,
                    "type": "boolean"
                  },
                  "reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "maxCredits": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 10000000
                  },
                  "callbackUrl": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "callbackSecret": {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 200
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "templateId": "plumber",
                "characterId": "5d2e8a1c-7b3f-4e9a-8c6d-1f2a3b4c5d6e",
                "partnerId": "marco",
                "quality": "high",
                "aspectRatio": "16:9",
                "autoProduce": false,
                "maxCredits": 2500,
                "reference": "batch-7-plumber-01"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieQuote"
                },
                "example": {
                  "valid": true,
                  "durationSeconds": 60,
                  "credits": {
                    "story": 35,
                    "balance": 5400,
                    "canAffordStory": true
                  },
                  "maxCredits": 2500,
                  "moviesInProgress": {
                    "current": 1,
                    "limit": 3
                  },
                  "canStartNow": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies": {
      "post": {
        "operationId": "create-movie",
        "summary": "Make a movie",
        "description": "Starts a full movie from your own story or a ready-made one and answers right away with 202 Accepted and a statusUrl to check. With autoProduce on, the finished movie usually takes 20 to 60 minutes.\n\nNeeds a paid plan. Credits are the same as on the website: writing the story is charged now (creditsCharged), then pictures and filming are charged scene by scene as they start. Anything that fails is refunded automatically.\n\nIf your balance runs out, or the next step would go over maxCredits, the movie stops with status waiting and an error. Fix it, then call POST /movies/{id}/produce to carry on where it stopped.\n\nSafe to call in a loop: send a reference and the same value as Idempotency-Key. A retry returns the first movie (created false, creditsCharged 0) instead of making and charging a new one.\n\nOne account can make 3 movies at the same time. More returns 429 movies_in_progress with a Retry-After header.\n\nDescribe adults only, or you get 400 content_not_allowed. Using uploaded photos needs consent set to true.",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#create-movie"
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Your own unique id for this request, 8 to 128 letters, digits or _ . : -",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "premise": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 10000
                  },
                  "templateId": {
                    "type": "string",
                    "enum": [
                      "pov-morning-wakeup",
                      "pov-girlfriend-shower",
                      "pov-date-night",
                      "pov-lazy-sunday",
                      "pov-quickie-kitchen",
                      "plumber",
                      "pizza-delivery",
                      "pool-cleaner",
                      "mechanic",
                      "cab-ride",
                      "hitchhiker",
                      "bar-pickup",
                      "hotel-upgrade",
                      "rainy-cabin",
                      "boss-secretary",
                      "job-interview",
                      "personal-trainer",
                      "real-estate",
                      "massage",
                      "home-early",
                      "neighbor",
                      "landlord",
                      "roommate",
                      "ex-returns",
                      "photoshoot",
                      "private-yoga",
                      "spa-day",
                      "honeymoon",
                      "dancer",
                      "locksmith",
                      "cable-guy",
                      "private-chef",
                      "train-sleeper",
                      "wedding-guest",
                      "airport-lounge",
                      "art-model",
                      "bartender-close",
                      "dance-instructor",
                      "anniversary",
                      "game-night",
                      "vineyard-weekend",
                      "first-snow",
                      "nurse-checkup",
                      "maid-costume",
                      "cowgirl-ranch",
                      "lingerie-fashion-show",
                      "beach-cove",
                      "forest-hike",
                      "rooftop-sunset",
                      "camping-tent",
                      "yacht-deck",
                      "paris-balcony",
                      "onsen-retreat",
                      "safari-tent",
                      "vip-night",
                      "getaway-driver",
                      "bank-job",
                      "motel-hideout",
                      "yacht-party",
                      "bikini-day"
                    ]
                  },
                  "durationSeconds": {
                    "type": "number",
                    "enum": [
                      30,
                      60,
                      90,
                      120,
                      180,
                      240,
                      300
                    ]
                  },
                  "storyShare": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 20,
                    "maximum": 70
                  },
                  "aspectRatio": {
                    "default": "16:9",
                    "type": "string",
                    "enum": [
                      "16:9",
                      "9:16"
                    ]
                  },
                  "quality": {
                    "default": "high",
                    "type": "string",
                    "enum": [
                      "standard",
                      "high",
                      "ultra"
                    ]
                  },
                  "style": {
                    "default": "cinematic",
                    "type": "string",
                    "enum": [
                      "cinematic",
                      "noir",
                      "romance",
                      "neon",
                      "homemade"
                    ]
                  },
                  "dialogueLanguage": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "es",
                      "pt",
                      "fr",
                      "de",
                      "ja",
                      "ko",
                      "ar"
                    ]
                  },
                  "finale": {
                    "default": "facial",
                    "type": "string",
                    "enum": [
                      "facial",
                      "body",
                      "mouth",
                      "creampie",
                      "none"
                    ]
                  },
                  "characterId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "assetId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "partnerId": {
                    "type": "string",
                    "enum": [
                      "marco",
                      "jake",
                      "andre",
                      "kenji",
                      "rafael",
                      "liam"
                    ]
                  },
                  "partnerAssetId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "partnerPortraitId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "partnerLook": {
                    "type": "object",
                    "properties": {
                      "age": {
                        "type": "string",
                        "enum": [
                          "20s",
                          "30s",
                          "40s"
                        ]
                      },
                      "ethnicity": {
                        "type": "string",
                        "enum": [
                          "white",
                          "latino",
                          "black",
                          "asian",
                          "middleEastern",
                          "indian"
                        ]
                      },
                      "build": {
                        "type": "string",
                        "enum": [
                          "slim",
                          "athletic",
                          "muscular",
                          "broad"
                        ]
                      },
                      "hair": {
                        "type": "string",
                        "enum": [
                          "shortDark",
                          "shortBlond",
                          "curly",
                          "buzzed",
                          "bald"
                        ]
                      },
                      "beard": {
                        "type": "string",
                        "enum": [
                          "cleanShaven",
                          "stubble",
                          "beard"
                        ]
                      },
                      "notes": {
                        "type": "string",
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "age",
                      "ethnicity",
                      "build",
                      "hair",
                      "beard"
                    ]
                  },
                  "consent": {
                    "type": "boolean",
                    "const": true
                  },
                  "autoProduce": {
                    "default": true,
                    "type": "boolean"
                  },
                  "longTakes": {
                    "default": false,
                    "type": "boolean"
                  },
                  "faceRefine": {
                    "default": false,
                    "type": "boolean"
                  },
                  "reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "maxCredits": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 10000000
                  },
                  "callbackUrl": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "callbackSecret": {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 200
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "templateId": "plumber",
                "characterId": "5d2e8a1c-7b3f-4e9a-8c6d-1f2a3b4c5d6e",
                "partnerId": "marco",
                "quality": "high",
                "aspectRatio": "16:9",
                "autoProduce": false,
                "maxCredits": 2500,
                "reference": "batch-7-plumber-01"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieStarted"
                },
                "example": {
                  "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "kind": "movie",
                  "reference": "batch-7-plumber-01",
                  "created": true,
                  "status": "processing",
                  "step": "writing_story",
                  "autoProduce": false,
                  "creditsCharged": 35,
                  "maxCredits": 2500,
                  "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The Idempotency-Key was used with a different request, or the same request is still starting.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "list-movies",
        "summary": "List your movies",
        "description": "Lists your movies, newest first. Filter by status or by your own reference to follow a batch and collect the finished videoUrl of each movie.\n\nnextCursor is null on the last page.",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#list-movies"
        },
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only movies with this status.",
            "schema": {
              "type": "string",
              "enum": [
                "processing",
                "waiting",
                "succeeded",
                "failed"
              ]
            }
          },
          {
            "name": "reference",
            "in": "query",
            "required": false,
            "description": "Only the movie with this reference.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size, 1 to 100. Defaults to 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The nextCursor value from the previous page.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieList"
                },
                "example": {
                  "movies": [
                    {
                      "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                      "kind": "movie",
                      "reference": "batch-7-plumber-01",
                      "title": "The Plumber",
                      "status": "succeeded",
                      "step": "done",
                      "autoProduce": false,
                      "videoUrl": "https://assets.makecorn.com/…/movie.mp4",
                      "thumbnailUrl": "https://assets.makecorn.com/…/thumb.jpg",
                      "error": null,
                      "options": {
                        "durationSeconds": 60,
                        "aspectRatio": "16:9",
                        "quality": "high",
                        "style": "cinematic",
                        "dialogueLanguage": "en",
                        "finale": "facial"
                      },
                      "credits": {
                        "story": 35
                      },
                      "createdAt": "2026-09-25T10:00:00.000Z",
                      "updatedAt": "2026-09-25T10:00:00.000Z",
                      "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}": {
      "get": {
        "operationId": "get-movie",
        "summary": "Get a movie and its storyboard",
        "description": "Returns one movie with its full storyboard: every scene and every shot with its text, order, picture, clip, status and price. Check every 30 to 60 seconds until status is \"succeeded\", \"waiting\" or \"failed\".\n\nstatus is \"processing\" while we work on it, \"waiting\" when it needs you (autoProduce is off, or it stopped with an error), \"succeeded\" when videoUrl holds the finished movie and \"failed\" when it couldn't be made.\n\nstep names the part being made: writing_story, story_ready, making_pictures, filming, final_cut, done or failed.\n\nscenes[].shots[] is the storyboard. pictureUrl is the still for a shot and clipUrl its video. Shots with editable true can be changed with the shot endpoints. credits shows what a new picture or clip of that shot costs.\n\nStory shots are priced per scene, not per second of finished video. A scene's story shots share one price: a storyboard and a scene clip of 15 to 30 seconds (3 seconds per story shot, at least 15, counting up to 10 shots). Each story shot shows its even share with credits.pricedBy \"scene\", and the shares add up to the scene's credits. So a scene with 1 to 5 story shots costs the same. Sex shots and transitions have credits.pricedBy \"shot\" and are priced on their own, by length.\n\nnextActions lists what you can do next, with the method, path and credits. canProduce is true when POST /movies/{id}/produce can carry on.\n\ncredits.used is what this movie has cost so far after refunds. It is filled when the movie isn't being worked on. credits.estimatedToFinish is an estimate for everything still to make.",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#get-movie"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Movie"
                },
                "example": {
                  "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "kind": "movie",
                  "reference": "batch-7-plumber-01",
                  "title": "The Plumber",
                  "status": "waiting",
                  "step": "story_ready",
                  "autoProduce": false,
                  "videoUrl": null,
                  "thumbnailUrl": null,
                  "error": null,
                  "options": {
                    "durationSeconds": 60,
                    "aspectRatio": "16:9",
                    "quality": "high",
                    "style": "cinematic",
                    "dialogueLanguage": "en",
                    "finale": "facial"
                  },
                  "credits": {
                    "story": 35,
                    "used": 35,
                    "estimatedToFinish": 1240
                  },
                  "createdAt": "2026-09-25T10:00:00.000Z",
                  "updatedAt": "2026-09-25T10:00:00.000Z",
                  "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "premise": "A woman working from home calls a plumber when her kitchen sink floods…",
                  "logline": "A flooded kitchen, a soaked plumber and a cold drink that turns into more.",
                  "maxCredits": 2500,
                  "callbackUrl": null,
                  "scenes": [
                    {
                      "index": 1,
                      "title": "On the counter",
                      "status": "waiting",
                      "shotCount": 3,
                      "seconds": 30,
                      "picturesReady": 0,
                      "clipsReady": 0,
                      "credits": {
                        "pictures": 36,
                        "film": 0
                      },
                      "direction": {
                        "summary": "They give in on the kitchen counter.",
                        "location": "Bright kitchen",
                        "wardrobe": "Her sundress, his wet work shirt",
                        "cameraNote": "Close and warm",
                        "audioNote": "Afternoon street sounds"
                      },
                      "shots": [
                        {
                          "id": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                          "position": 4,
                          "sceneIndex": 1,
                          "kind": "sex",
                          "editable": true,
                          "isExplicit": true,
                          "action": "She pulls him onto the counter and kisses him.",
                          "keyframePrompt": "Kitchen counter, afternoon sun, she pulls him close.",
                          "explicitPrompt": "She rides him on the kitchen counter.",
                          "motionPrompt": "Slow, steady rhythm, camera holds still.",
                          "dialogue": "Don't stop.",
                          "camera": "side",
                          "seconds": 10,
                          "status": "pending",
                          "pictureUrl": null,
                          "clipUrl": null,
                          "hasPreviousVersion": false,
                          "error": null,
                          "credits": {
                            "picture": 12,
                            "clip": 96,
                            "pricedBy": "shot"
                          }
                        }
                      ]
                    }
                  ],
                  "canProduce": true,
                  "nextActions": [
                    {
                      "action": "produce",
                      "method": "POST",
                      "path": "/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f/produce",
                      "credits": 1240
                    },
                    {
                      "action": "make_pictures",
                      "method": "POST",
                      "path": "/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f/pictures",
                      "credits": 180
                    },
                    {
                      "action": "replan",
                      "method": "POST",
                      "path": "/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f/replan"
                    },
                    {
                      "action": "delete",
                      "method": "DELETE",
                      "path": "/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-movie",
        "summary": "Delete a movie",
        "description": "Deletes a movie with its storyboard, pictures and clips. Wait until it isn't being worked on.\n\nReturns 409 while a step is running.",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#delete-movie"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieDeleted"
                },
                "example": {
                  "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "kind": "movie",
                  "deleted": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/produce": {
      "post": {
        "operationId": "produce-movie",
        "summary": "Finish a movie",
        "description": "Makes everything a movie still needs without stopping: the missing pictures, the scenes not filmed yet and the final cut. Use it after autoProduce false and your edits, or to carry on after the movie stopped.\n\nNeeds a paid plan. Each step is charged as it starts, the same as on the website.\n\nmaxCredits and callbackUrl replace the movie's earlier ones.\n\nReturns 409 when the movie is busy, already finished or has nothing left to make.",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#produce-movie"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "maxCredits": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 10000000
                  },
                  "callbackUrl": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "callbackSecret": {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 200
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "maxCredits": 3000
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieProduceStarted"
                },
                "example": {
                  "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                  "kind": "movie",
                  "status": "processing",
                  "step": "making_pictures",
                  "autoProduce": true,
                  "maxCredits": 3000,
                  "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, is already finished, or has nothing left to make.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/replan": {
      "post": {
        "operationId": "replan-movie",
        "summary": "Rewrite the story",
        "description": "Writes the story again from the start, with your notes added to it. Only works before any picture or clip is made. Costs the same as writing the story.\n\nnotes are added to the end of your story, so say what to change, for example a different place or more talking.\n\nCheck again with GET /movies/{id} until step is story_ready.",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#replan-movie"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dialogueLanguage": {
                    "type": "string",
                    "enum": [
                      "en",
                      "es",
                      "pt",
                      "fr",
                      "de",
                      "ja",
                      "ko",
                      "ar"
                    ]
                  },
                  "notes": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 2000
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "notes": "Set it at night with rain on the windows, and give him more lines."
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "processing",
                    "step": "writing_story",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/quality": {
      "post": {
        "operationId": "set-movie-quality",
        "summary": "Change the film quality",
        "description": "Changes the video quality for everything filmed from now on. Higher quality costs more per scene.\n\nNeeds a paid plan. Scene and shot prices in GET /movies/{id} change with it.",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#set-movie-quality"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "quality": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "high",
                      "ultra"
                    ]
                  }
                },
                "required": [
                  "quality"
                ],
                "additionalProperties": false
              },
              "example": {
                "quality": "ultra"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "ultra",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/finale": {
      "post": {
        "operationId": "set-movie-finale",
        "summary": "Change the ending",
        "description": "Changes how the movie ends. Adds, changes or removes the final shot. Once the final shot is made it can't change.",
        "tags": [
          "Movies"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#set-movie-finale"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "finale": {
                    "type": "string",
                    "enum": [
                      "facial",
                      "body",
                      "mouth",
                      "creampie",
                      "none"
                    ]
                  }
                },
                "required": [
                  "finale"
                ],
                "additionalProperties": false
              },
              "example": {
                "finale": "mouth"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/pictures": {
      "post": {
        "operationId": "make-movie-pictures",
        "summary": "Make every scene's pictures",
        "description": "Makes the still picture for every shot that doesn't have one yet. Check the pictures in GET /movies/{id} before filming.\n\nNeeds a paid plan. Credits are taken shot by shot as they start, the same as on the website, and returned for anything that fails.",
        "tags": [
          "Movie production"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#make-movie-pictures"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "processing",
                    "step": "making_pictures",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/film": {
      "post": {
        "operationId": "film-movie",
        "summary": "Film every ready scene",
        "description": "Films every shot that has its picture and no clip yet. Failed clips are tried again.\n\nNeeds a paid plan. Credits are taken shot by shot as they start, the same as on the website, and returned for anything that fails.",
        "tags": [
          "Movie production"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#film-movie"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "processing",
                    "step": "filming",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/cut": {
      "post": {
        "operationId": "cut-movie",
        "summary": "Make the final cut",
        "description": "Joins every filmed shot into the finished movie. Free. When it is done, videoUrl in GET /movies/{id} holds the movie.\n\nNeeds a paid plan. Credits are taken shot by shot as they start, the same as on the website, and returned for anything that fails.\n\nShots without a clip are left out. Run it again after refilming to get a new cut.",
        "tags": [
          "Movie production"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#cut-movie"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "processing",
                    "step": "final_cut",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/scenes/{sceneIndex}/pictures": {
      "post": {
        "operationId": "make-scene-pictures",
        "summary": "Make one scene's pictures",
        "description": "Makes the missing pictures of one scene only.\n\nNeeds a paid plan. The scene's price is credits.pictures or credits.film in GET /movies/{id}.",
        "tags": [
          "Movie production"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#make-scene-pictures"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sceneIndex",
            "in": "path",
            "required": true,
            "description": "A scene index from scenes[] in GET /movies/{id}.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "sceneIndex": 1,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "processing",
                    "step": "making_pictures",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/scenes/{sceneIndex}/film": {
      "post": {
        "operationId": "film-scene",
        "summary": "Film one scene",
        "description": "Films the ready shots of one scene only.\n\nNeeds a paid plan. The scene's price is credits.pictures or credits.film in GET /movies/{id}.",
        "tags": [
          "Movie production"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#film-scene"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sceneIndex",
            "in": "path",
            "required": true,
            "description": "A scene index from scenes[] in GET /movies/{id}.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "sceneIndex": 1,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "processing",
                    "step": "filming",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/clips": {
      "get": {
        "operationId": "list-movie-clips",
        "summary": "List videos you can add",
        "description": "Lists your finished videos of this movie's star that you can add to the movie as a shot.\n\nOnly movies that star one of your characters can use your own videos.",
        "tags": [
          "Movie production"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#list-movie-clips"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieClipList"
                },
                "example": {
                  "clips": [
                    {
                      "generationId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                      "videoUrl": "https://assets.makecorn.com/…/video.mp4",
                      "posterUrl": "https://assets.makecorn.com/…/poster.png",
                      "shareable": true
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "import-movie-clip",
        "summary": "Add one of your videos",
        "description": "Copies one of your finished videos into the movie as a ready shot. Free.\n\nNeeds a paid plan. afterShotId places it after that shot. Leave it out or send null to put it first.",
        "tags": [
          "Movie production"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#import-movie-clip"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "generationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "afterShotId": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "generationId"
                ],
                "additionalProperties": false
              },
              "example": {
                "generationId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                "afterShotId": null
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "id": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/partner-portraits": {
      "post": {
        "operationId": "create-partner-portrait",
        "summary": "Make a portrait of him",
        "description": "Makes a portrait of the man in your movie from a description. When it is ready, pass its id as partnerPortraitId with the same partnerLook to POST /movies.\n\nNeeds a paid plan. The price is partnerPortraitCredits in GET /movies/options.",
        "tags": [
          "Movie production"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#create-partner-portrait"
        },
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "age": {
                    "type": "string",
                    "enum": [
                      "20s",
                      "30s",
                      "40s"
                    ]
                  },
                  "ethnicity": {
                    "type": "string",
                    "enum": [
                      "white",
                      "latino",
                      "black",
                      "asian",
                      "middleEastern",
                      "indian"
                    ]
                  },
                  "build": {
                    "type": "string",
                    "enum": [
                      "slim",
                      "athletic",
                      "muscular",
                      "broad"
                    ]
                  },
                  "hair": {
                    "type": "string",
                    "enum": [
                      "shortDark",
                      "shortBlond",
                      "curly",
                      "buzzed",
                      "bald"
                    ]
                  },
                  "beard": {
                    "type": "string",
                    "enum": [
                      "cleanShaven",
                      "stubble",
                      "beard"
                    ]
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "age",
                  "ethnicity",
                  "build",
                  "hair",
                  "beard"
                ],
                "additionalProperties": false
              },
              "example": {
                "age": "30s",
                "ethnicity": "white",
                "build": "athletic",
                "hair": "shortDark",
                "beard": "stubble"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerPortrait"
                },
                "example": {
                  "id": "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b",
                  "kind": "partner_portrait",
                  "status": "working",
                  "creditsCharged": 12,
                  "statusUrl": "https://www.makecorn.com/api/v1/movies/partner-portraits/9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/partner-portraits/{id}": {
      "get": {
        "operationId": "get-partner-portrait",
        "summary": "Get a portrait of him",
        "description": "Returns a portrait's status. Check every 5 seconds until status is \"ready\" or \"failed\". Failed portraits are refunded.",
        "tags": [
          "Movie production"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#get-partner-portrait"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The id from POST /movies/partner-portraits.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerPortrait"
                },
                "example": {
                  "id": "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b",
                  "kind": "partner_portrait",
                  "status": "ready",
                  "imageUrl": "https://assets.makecorn.com/…/him.png",
                  "statusUrl": "https://www.makecorn.com/api/v1/movies/partner-portraits/9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/shots": {
      "post": {
        "operationId": "add-movie-shot",
        "summary": "Add a shot",
        "description": "Adds a new shot to the storyboard, written in your own words. Free. Its picture and clip are made with the next pictures and filming step.\n\nafterShotId places it after that shot. Null puts it first. Shots can't go after the final shot.\n\nA story shot joins its scene's price. Up to 5 story shots in a scene cost the same as 1, so a story shot on its own in a scene pays the full 15-second scene price. Each story shot after the 5th adds 3 seconds to the scene clip.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#add-movie-shot"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "story",
                      "sex"
                    ]
                  },
                  "text": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 1500
                  },
                  "positionId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "oral",
                          "deepthroat",
                          "handjob",
                          "titjob",
                          "missionary",
                          "legs-up",
                          "cowgirl",
                          "reverse-cowgirl",
                          "doggy",
                          "standing-from-behind",
                          "kissing",
                          "cunnilingus",
                          "spooning",
                          "prone"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "afterShotId": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "kind",
                  "text"
                ],
                "additionalProperties": false
              },
              "example": {
                "kind": "sex",
                "text": "On the sofa, slow and close",
                "positionId": "missionary",
                "afterShotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "id": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/shots/{shotId}": {
      "post": {
        "operationId": "edit-movie-shot",
        "summary": "Edit a shot",
        "description": "Changes the words of a shot before it is made: what happens, the picture and video directions and the spoken line. Send only the fields you want to change. Free.\n\nOnly shots with editable true can change, and not while they are being made.\n\ndialogue must stay short enough to be spoken in the shot, or you get 400.\n\nAfter editing a made shot, redo its picture or clip to see the change.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#edit-movie-shot"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shotId",
            "in": "path",
            "required": true,
            "description": "A shot id from scenes[].shots[] in GET /movies/{id}.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1500
                  },
                  "keyframePrompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1500
                  },
                  "explicitPrompt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 1500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "motionPrompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 800
                  },
                  "dialogue": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 240
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "isExplicit": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "dialogue": "Stay a little longer.",
                "motionPrompt": "He leans in slowly, camera pushes in."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "shotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-movie-shot",
        "summary": "Remove a shot",
        "description": "Removes a shot that isn't made yet from the storyboard. Free.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#delete-movie-shot"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shotId",
            "in": "path",
            "required": true,
            "description": "A shot id from scenes[].shots[] in GET /movies/{id}.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "shotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "deleted": true,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/shots/{shotId}/move": {
      "post": {
        "operationId": "move-movie-shot",
        "summary": "Move a shot",
        "description": "Moves a shot one place up or down in the storyboard. Free.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#move-movie-shot"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shotId",
            "in": "path",
            "required": true,
            "description": "A shot id from scenes[].shots[] in GET /movies/{id}.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down"
                    ]
                  }
                },
                "required": [
                  "direction"
                ],
                "additionalProperties": false
              },
              "example": {
                "direction": "up"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "shotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/shots/{shotId}/direct": {
      "post": {
        "operationId": "direct-movie-shot",
        "summary": "Set a sex scene's camera and length",
        "description": "Chooses the camera angle and length of a sex scene. Free. Longer shots cost more to film.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#direct-movie-shot"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shotId",
            "in": "path",
            "required": true,
            "description": "A shot id from scenes[].shots[] in GET /movies/{id}.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "camera": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "first-person",
                          "side",
                          "face",
                          "wide"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "seconds": {
                    "type": "number",
                    "enum": [
                      5,
                      10,
                      15
                    ]
                  }
                },
                "required": [
                  "camera",
                  "seconds"
                ],
                "additionalProperties": false
              },
              "example": {
                "camera": "first-person",
                "seconds": 15
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "shotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/shots/{shotId}/quote": {
      "post": {
        "operationId": "quote-movie-shot-redo",
        "summary": "Price a new picture or clip",
        "description": "Returns what a new picture or a new clip of this shot would cost with your changes. Nothing is charged.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#quote-movie-shot-redo"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shotId",
            "in": "path",
            "required": true,
            "description": "A shot id from scenes[].shots[] in GET /movies/{id}.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1500
                  },
                  "beats": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "shotId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "action": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1500
                        },
                        "dialogue": {
                          "type": "string",
                          "maxLength": 240
                        }
                      },
                      "required": [
                        "shotId",
                        "action",
                        "dialogue"
                      ]
                    }
                  },
                  "fixes": {
                    "default": [],
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "face",
                        "position",
                        "extraPerson",
                        "angle",
                        "movement",
                        "faceChanges",
                        "looksWrong"
                      ]
                    }
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "picture",
                      "video"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              "example": {
                "kind": "video",
                "fixes": [
                  "movement"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "shotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "credits": 96,
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/shots/{shotId}/picture": {
      "post": {
        "operationId": "redo-movie-shot-picture",
        "summary": "Make a new picture",
        "description": "Makes a new still picture for this shot, with your changes. The old one is kept until you choose.\n\nNeeds a paid plan. Get the price first from the quote endpoint and send it as expectedCredits.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#redo-movie-shot-picture"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shotId",
            "in": "path",
            "required": true,
            "description": "A shot id from scenes[].shots[] in GET /movies/{id}.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1500
                  },
                  "beats": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "shotId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "action": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1500
                        },
                        "dialogue": {
                          "type": "string",
                          "maxLength": 240
                        }
                      },
                      "required": [
                        "shotId",
                        "action",
                        "dialogue"
                      ]
                    }
                  },
                  "fixes": {
                    "default": [],
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "face",
                        "position",
                        "extraPerson",
                        "angle",
                        "movement",
                        "faceChanges",
                        "looksWrong"
                      ]
                    }
                  },
                  "expectedCredits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "text": "Her face toward the camera",
                "fixes": [
                  "face"
                ],
                "expectedCredits": 12
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "shotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "processing",
                    "step": "making_pictures",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/shots/{shotId}/refilm": {
      "post": {
        "operationId": "refilm-movie-shot",
        "summary": "Film a shot again",
        "description": "Films a new clip of a filmed shot, with your changes. The old clip is kept until you choose.\n\nNeeds a paid plan. Get the price first from the quote endpoint and send it as expectedCredits.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#refilm-movie-shot"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shotId",
            "in": "path",
            "required": true,
            "description": "A shot id from scenes[].shots[] in GET /movies/{id}.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1500
                  },
                  "beats": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "shotId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "action": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1500
                        },
                        "dialogue": {
                          "type": "string",
                          "maxLength": 240
                        }
                      },
                      "required": [
                        "shotId",
                        "action",
                        "dialogue"
                      ]
                    }
                  },
                  "fixes": {
                    "default": [],
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "face",
                        "position",
                        "extraPerson",
                        "angle",
                        "movement",
                        "faceChanges",
                        "looksWrong"
                      ]
                    }
                  },
                  "expectedCredits": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "fixes": [
                  "movement"
                ],
                "expectedCredits": 96
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "shotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "processing",
                    "step": "filming",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/shots/{shotId}/retry": {
      "post": {
        "operationId": "retry-movie-shot",
        "summary": "Try a failed shot again",
        "description": "Makes a failed shot's picture or clip again. Its credits were already returned when it failed.\n\nNeeds a paid plan.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#retry-movie-shot"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shotId",
            "in": "path",
            "required": true,
            "description": "A shot id from scenes[].shots[] in GET /movies/{id}.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted. Poll statusUrl.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "shotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "processing",
                    "step": "filming",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The work could not start. Credits were returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/movies/{id}/shots/{shotId}/keep-previous": {
      "post": {
        "operationId": "keep-previous-movie-shot",
        "summary": "Keep the earlier version",
        "description": "Goes back to the picture and clip this shot had before its last redo, when hasPreviousVersion is true. Free.\n\nNeeds a paid plan.",
        "tags": [
          "Movie shots"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#keep-previous-movie-shot"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The movie id from POST /movies.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "shotId",
            "in": "path",
            "required": true,
            "description": "A shot id from scenes[].shots[] in GET /movies/{id}.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MovieAction"
                },
                "example": {
                  "ok": true,
                  "shotId": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
                  "movie": {
                    "id": "3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f",
                    "kind": "movie",
                    "reference": "batch-7-plumber-01",
                    "title": "The Plumber",
                    "status": "waiting",
                    "step": "story_ready",
                    "autoProduce": false,
                    "videoUrl": null,
                    "thumbnailUrl": null,
                    "error": null,
                    "options": {
                      "durationSeconds": 60,
                      "aspectRatio": "16:9",
                      "quality": "high",
                      "style": "cinematic",
                      "dialogueLanguage": "en",
                      "finale": "facial"
                    },
                    "credits": {
                      "story": 35
                    },
                    "createdAt": "2026-09-25T10:00:00.000Z",
                    "updatedAt": "2026-09-25T10:00:00.000Z",
                    "statusUrl": "https://www.makecorn.com/api/v1/movies/3f0c8f7e-2b1a-4c55-9d7e-6a1b2c3d4e5f"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The movie is busy with a step, or this change isn't possible at its current stage. The message says which.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/characters": {
      "get": {
        "operationId": "list-characters",
        "summary": "List your characters",
        "description": "Lists the characters you created on MakeCorn that have a photo, newest first. Pass a character's id as characterId to run a mode on her.\n\nnextCursor is null on the last page.",
        "tags": [
          "Characters"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#list-characters"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size, 1 to 100. Defaults to 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The nextCursor value from the previous page.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CharacterList"
                },
                "example": {
                  "characters": [
                    {
                      "id": "5d2e8a1c-7b3f-4e9a-8c6d-1f2a3b4c5d6e",
                      "name": "Asia",
                      "photoUrl": "https://assets.makecorn.com/…/asia.png",
                      "createdAt": "2026-09-25T10:00:00.000Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/assets/presign": {
      "post": {
        "operationId": "create-upload",
        "summary": "Upload a photo",
        "description": "Returns a private upload link for a starting or reference photo. Send the file with a PUT request to uploadUrl within 2 minutes, using the headers returned, then pass url to imageUrls or startFrameUrl, or pass id as assetId to a mode run.\n\nNeeds a paid plan. Each key can create 30 upload links per minute.\n\nThe photo is saved to your library. Keep id so you can delete it later with DELETE /assets/{id}.\n\nOnly upload photos of yourself or of a fictional AI character, never anyone else, even with their permission. Nobody in them may be under 18.",
        "tags": [
          "Assets"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#create-upload"
        },
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "contentType": {
                    "type": "string",
                    "enum": [
                      "image/jpeg",
                      "image/png",
                      "image/webp"
                    ]
                  }
                },
                "required": [
                  "contentType"
                ],
                "additionalProperties": false
              },
              "example": {
                "contentType": "image/jpeg"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                },
                "example": {
                  "id": "8b1f2c3d-4e5f-4a6b-9c7d-0e1f2a3b4c5d",
                  "uploadUrl": "https://…signed-upload-link…",
                  "method": "PUT",
                  "headers": {
                    "Content-Type": "image/jpeg"
                  },
                  "expiresInSeconds": 120,
                  "url": "https://assets.makecorn.com/…/photo.jpg"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Paid plan required, or not enough credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "You don't have enough credits for this request. Add credits at https://www.makecorn.com/dashboard/credits/buy and try again.",
                    "details": {
                      "topUpUrl": "https://www.makecorn.com/dashboard/credits/buy"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/assets": {
      "get": {
        "operationId": "list-assets",
        "summary": "List your uploaded photos",
        "description": "Lists the photos in your library, newest first, with the id you need to delete one or to start a mode run from it. Pass nextCursor back as cursor to get the next page.\n\nThis lists photos you uploaded, from the API or the website. Photos and videos you created are listed by GET /generations.\n\nnextCursor is null on the last page.",
        "tags": [
          "Assets"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#list-assets"
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size, 1 to 100. Defaults to 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The nextCursor value from the previous page.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetList"
                },
                "example": {
                  "assets": [
                    {
                      "id": "8b1f2c3d-4e5f-4a6b-9c7d-0e1f2a3b4c5d",
                      "type": "image",
                      "url": "https://assets.makecorn.com/…/photo.jpg",
                      "createdAt": "2026-09-25T10:00:00.000Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/assets/{id}": {
      "delete": {
        "operationId": "delete-asset",
        "summary": "Delete an uploaded photo",
        "description": "Deletes one photo from your library for good: the library entry and the stored file. Photos and videos you already created from it are not affected, because each one keeps its own copy.\n\nDeleting is permanent and can't be undone.\n\nCalling it again for the same id returns 404 not_found, so a retry after a timeout is safe. Treat 404 as already deleted.\n\nYou can only delete your own photos. Any other id returns 404.\n\nEach key can delete 60 photos per minute.",
        "tags": [
          "Assets"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#delete-asset"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The id returned by POST /assets/presign or listed by GET /assets.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetDeleted"
                },
                "example": {
                  "id": "8b1f2c3d-4e5f-4a6b-9c7d-0e1f2a3b4c5d",
                  "deleted": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/assets/delete": {
      "post": {
        "operationId": "delete-assets",
        "summary": "Delete several photos",
        "description": "Deletes up to 25 photos from your library in one request, by id or by the url you got from POST /assets/presign. Use url for photos you uploaded before upload links returned an id.\n\nEach item ends up in exactly one list: deleted, notFound (not yours, or already deleted) or failed (try that one again).\n\nDeleting is permanent. Photos and videos you already created keep their own copies.\n\nEvery item counts toward the 60 deletes per minute limit.",
        "tags": [
          "Assets"
        ],
        "externalDocs": {
          "url": "https://www.makecorn.com/developers/reference#delete-assets"
        },
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ids": {
                    "default": [],
                    "maxItems": 25,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "urls": {
                    "default": [],
                    "maxItems": 25,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 2048,
                      "format": "uri"
                    }
                  }
                },
                "additionalProperties": false
              },
              "example": {
                "ids": [
                  "8b1f2c3d-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
                ],
                "urls": [
                  "https://assets.makecorn.com/…/photo.jpg"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkDeleteResult"
                },
                "example": {
                  "deleted": [
                    "8b1f2c3d-4e5f-4a6b-9c7d-0e1f2a3b4c5d"
                  ],
                  "notFound": [
                    "https://assets.makecorn.com/…/photo.jpg"
                  ],
                  "failed": []
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or revoked API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit reached.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API key starting with mc_live_."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "details": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "Account": {
        "type": "object",
        "required": [
          "plan",
          "canGenerate",
          "credits",
          "links"
        ],
        "properties": {
          "plan": {
            "type": "string"
          },
          "canGenerate": {
            "type": "boolean"
          },
          "credits": {
            "type": "number"
          },
          "links": {
            "type": "object",
            "required": [
              "pricing",
              "topUp"
            ],
            "properties": {
              "pricing": {
                "type": "string",
                "format": "uri"
              },
              "topUp": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "ModelOption": {
        "type": "object",
        "required": [
          "name",
          "type",
          "required"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "default": {},
          "choices": {
            "type": "array",
            "items": {}
          },
          "min": {
            "type": "number"
          },
          "max": {
            "type": "number"
          }
        }
      },
      "Model": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "name",
          "lab",
          "options",
          "credits"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "image",
              "video"
            ]
          },
          "name": {
            "type": "string"
          },
          "lab": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "typicalWait": {
            "type": "string"
          },
          "textToVideo": {
            "type": "boolean"
          },
          "imageToVideo": {
            "type": "boolean"
          },
          "maxCount": {
            "type": "integer"
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelOption"
            }
          },
          "credits": {
            "type": "object",
            "required": [
              "default",
              "table"
            ],
            "properties": {
              "default": {
                "type": "integer"
              },
              "table": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "settings",
                    "credits"
                  ],
                  "properties": {
                    "settings": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "credits": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "ModelList": {
        "type": "object",
        "required": [
          "models"
        ],
        "properties": {
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Model"
            }
          }
        }
      },
      "ImageGeneration": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "model",
          "status",
          "prompt",
          "withheld",
          "error",
          "creditsCharged",
          "createdAt",
          "statusUrl",
          "urls"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "model": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "succeeded",
              "failed"
            ]
          },
          "prompt": {
            "type": "string"
          },
          "withheld": {
            "type": "boolean",
            "description": "True when the result broke the content rules and is not delivered."
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "creditsCharged": {
            "type": [
              "integer",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          },
          "kind": {
            "type": "string",
            "const": "image"
          },
          "urls": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      },
      "VideoGeneration": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "model",
          "status",
          "prompt",
          "withheld",
          "error",
          "creditsCharged",
          "createdAt",
          "statusUrl",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "model": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "succeeded",
              "failed"
            ]
          },
          "prompt": {
            "type": "string"
          },
          "withheld": {
            "type": "boolean",
            "description": "True when the result broke the content rules and is not delivered."
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "creditsCharged": {
            "type": [
              "integer",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          },
          "kind": {
            "type": "string",
            "const": "video"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          }
        }
      },
      "GenerationList": {
        "type": "object",
        "required": [
          "kind",
          "generations",
          "nextCursor"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "image",
              "video"
            ]
          },
          "generations": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ImageGeneration"
                },
                {
                  "$ref": "#/components/schemas/VideoGeneration"
                }
              ]
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "CreateImageResponse": {
        "type": "object",
        "required": [
          "model",
          "requested",
          "started",
          "creditsCharged",
          "generations"
        ],
        "properties": {
          "model": {
            "type": "string"
          },
          "requested": {
            "type": "integer"
          },
          "started": {
            "type": "integer"
          },
          "creditsCharged": {
            "type": "integer"
          },
          "generations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "kind",
                "statusUrl"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "kind": {
                  "type": "string",
                  "const": "image"
                },
                "statusUrl": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "CreateVideoResponse": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "model",
          "status",
          "creditsCharged",
          "statusUrl"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "const": "video"
          },
          "model": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "const": "processing"
          },
          "creditsCharged": {
            "type": "integer"
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Upload": {
        "type": "object",
        "required": [
          "id",
          "uploadUrl",
          "method",
          "headers",
          "expiresInSeconds",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "uploadUrl": {
            "type": "string",
            "format": "uri"
          },
          "method": {
            "type": "string",
            "const": "PUT"
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "expiresInSeconds": {
            "type": "integer"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Asset": {
        "type": "object",
        "required": [
          "id",
          "type",
          "url",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "enum": [
              "image",
              "video"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AssetList": {
        "type": "object",
        "required": [
          "assets",
          "nextCursor"
        ],
        "properties": {
          "assets": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "type",
                "url",
                "createdAt"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "image",
                    "video"
                  ]
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "AssetDeleted": {
        "type": "object",
        "required": [
          "id",
          "deleted"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deleted": {
            "type": "boolean",
            "const": true
          }
        }
      },
      "BulkDeleteResult": {
        "type": "object",
        "required": [
          "deleted",
          "notFound",
          "failed"
        ],
        "properties": {
          "deleted": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notFound": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "failed": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CharacterList": {
        "type": "object",
        "required": [
          "characters",
          "nextCursor"
        ],
        "properties": {
          "characters": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "photoUrl",
                "createdAt"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "photoUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                },
                "createdAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              }
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "ModeList": {
        "type": "object",
        "required": [
          "categories",
          "options",
          "modes"
        ],
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              }
            }
          },
          "options": {
            "type": "object",
            "additionalProperties": {
              "type": "array"
            }
          },
          "modes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "categories",
                "badge",
                "thumbnailUrl",
                "previewVideoUrl",
                "positions",
                "defaultPosition",
                "credits"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "categories": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "badge": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "thumbnailUrl": {
                  "type": "string",
                  "format": "uri"
                },
                "previewVideoUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                },
                "positions": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "string"
                  }
                },
                "defaultPosition": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "credits": {
                  "type": "object",
                  "required": [
                    "photo",
                    "video"
                  ],
                  "properties": {
                    "photo": {
                      "type": "integer"
                    },
                    "video": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "quality",
                          "duration",
                          "credits"
                        ],
                        "properties": {
                          "position": {
                            "type": "string"
                          },
                          "quality": {
                            "type": "string"
                          },
                          "duration": {
                            "type": "integer"
                          },
                          "credits": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "ModeRunStarted": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "mode",
          "output",
          "status",
          "creditsCharged",
          "statusUrl"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "const": "mode_run"
          },
          "mode": {
            "type": "object",
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              }
            }
          },
          "output": {
            "type": "string",
            "enum": [
              "photo",
              "video"
            ]
          },
          "status": {
            "type": "string",
            "const": "processing"
          },
          "creditsCharged": {
            "type": "integer"
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "ModeRun": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "mode",
          "output",
          "status",
          "stage",
          "photoUrl",
          "videoUrl",
          "withheld",
          "error",
          "creditsCharged",
          "createdAt",
          "statusUrl"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "const": "mode_run"
          },
          "mode": {
            "type": "object",
            "required": [
              "id",
              "name"
            ],
            "properties": {
              "id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": "string"
              }
            }
          },
          "output": {
            "type": "string",
            "enum": [
              "photo",
              "video",
              "loop"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "succeeded",
              "failed"
            ]
          },
          "stage": {
            "type": "string",
            "enum": [
              "photo",
              "video"
            ]
          },
          "photoUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "videoUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "loopVideoUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "gifUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "withheld": {
            "type": "boolean"
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "creditsCharged": {
            "type": [
              "integer",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "WebhookSecret": {
        "type": "object",
        "required": [
          "kind",
          "available",
          "set",
          "createdAt",
          "rotatedAt"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "const": "webhook_secret"
          },
          "available": {
            "type": "boolean"
          },
          "set": {
            "type": "boolean"
          },
          "secret": {
            "type": "string",
            "description": "Only in the response to POST, once."
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "rotatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "MovieOptions": {
        "type": "object",
        "required": [
          "options",
          "storyCredits",
          "partnerPortraitCredits",
          "shotOptions",
          "limits",
          "actors",
          "categories",
          "templates"
        ],
        "properties": {
          "options": {
            "type": "object",
            "additionalProperties": true
          },
          "partnerPortraitCredits": {
            "type": "integer"
          },
          "shotOptions": {
            "type": "object",
            "additionalProperties": true
          },
          "storyCredits": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "durationSeconds",
                "credits"
              ],
              "properties": {
                "durationSeconds": {
                  "type": "integer"
                },
                "credits": {
                  "type": "integer"
                }
              }
            }
          },
          "limits": {
            "type": "object",
            "required": [
              "moviesInProgress"
            ],
            "properties": {
              "moviesInProgress": {
                "type": "integer"
              }
            }
          },
          "actors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "photoUrl"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "photoUrl": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "categories": {
            "type": "array",
            "items": {}
          },
          "templates": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "category",
                "title",
                "teaser",
                "premise",
                "durationSeconds",
                "storyCredits"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "category": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "teaser": {
                  "type": "string"
                },
                "premise": {
                  "type": "string"
                },
                "durationSeconds": {
                  "type": "integer"
                },
                "storyCredits": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "MovieStarted": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "reference",
          "created",
          "status",
          "step",
          "autoProduce",
          "creditsCharged",
          "statusUrl"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "const": "movie"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "created": {
            "type": "boolean",
            "description": "False when a movie with this reference already existed. Nothing new was made or charged."
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "waiting",
              "succeeded",
              "failed"
            ]
          },
          "step": {
            "type": "string",
            "enum": [
              "writing_story",
              "story_ready",
              "making_pictures",
              "filming",
              "final_cut",
              "done",
              "failed"
            ]
          },
          "autoProduce": {
            "type": "boolean"
          },
          "creditsCharged": {
            "type": "integer"
          },
          "maxCredits": {
            "type": [
              "integer",
              "null"
            ]
          },
          "callback": {
            "type": "object",
            "required": [
              "url",
              "secret",
              "signedWith"
            ],
            "description": "Returned only when you send callbackUrl. signedWith account means callbacks use your account secret and secret is null. signedWith movie means this movie has its own secret, shown here once.",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "secret": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "signedWith": {
                "type": "string",
                "enum": [
                  "account",
                  "movie"
                ]
              }
            }
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "MovieProduceStarted": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "status",
          "step",
          "autoProduce",
          "statusUrl"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "const": "movie"
          },
          "status": {
            "type": "string",
            "const": "processing"
          },
          "step": {
            "type": "string",
            "enum": [
              "writing_story",
              "story_ready",
              "making_pictures",
              "filming",
              "final_cut",
              "done",
              "failed"
            ]
          },
          "autoProduce": {
            "type": "boolean",
            "const": true
          },
          "maxCredits": {
            "type": [
              "integer",
              "null"
            ]
          },
          "callback": {
            "type": "object",
            "required": [
              "url",
              "secret",
              "signedWith"
            ],
            "description": "Returned only when you send callbackUrl. signedWith account means callbacks use your account secret and secret is null. signedWith movie means this movie has its own secret, shown here once.",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "secret": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "signedWith": {
                "type": "string",
                "enum": [
                  "account",
                  "movie"
                ]
              }
            }
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Movie": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "reference",
          "title",
          "status",
          "step",
          "autoProduce",
          "videoUrl",
          "thumbnailUrl",
          "error",
          "options",
          "credits",
          "createdAt",
          "updatedAt",
          "statusUrl",
          "premise",
          "logline",
          "maxCredits",
          "callbackUrl",
          "scenes",
          "canProduce",
          "nextActions"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "const": "movie"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "waiting",
              "succeeded",
              "failed"
            ]
          },
          "step": {
            "type": "string",
            "enum": [
              "writing_story",
              "story_ready",
              "making_pictures",
              "filming",
              "final_cut",
              "done",
              "failed"
            ]
          },
          "autoProduce": {
            "type": "boolean"
          },
          "videoUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "thumbnailUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "options": {
            "type": "object",
            "additionalProperties": true
          },
          "credits": {
            "type": "object",
            "required": [
              "story",
              "used",
              "estimatedToFinish"
            ],
            "properties": {
              "story": {
                "type": "integer"
              },
              "used": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "estimatedToFinish": {
                "type": "integer"
              }
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          },
          "premise": {
            "type": "string"
          },
          "logline": {
            "type": [
              "string",
              "null"
            ]
          },
          "maxCredits": {
            "type": [
              "integer",
              "null"
            ]
          },
          "callbackUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "scenes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "index",
                "title",
                "status",
                "shotCount",
                "seconds",
                "picturesReady",
                "clipsReady",
                "credits",
                "direction",
                "shots"
              ],
              "properties": {
                "index": {
                  "type": "integer"
                },
                "title": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "waiting",
                    "working",
                    "done",
                    "failed"
                  ]
                },
                "shotCount": {
                  "type": "integer"
                },
                "seconds": {
                  "type": "number"
                },
                "picturesReady": {
                  "type": "integer"
                },
                "clipsReady": {
                  "type": "integer"
                },
                "credits": {
                  "type": "object",
                  "required": [
                    "pictures",
                    "film"
                  ],
                  "properties": {
                    "pictures": {
                      "type": "integer"
                    },
                    "film": {
                      "type": "integer"
                    }
                  }
                },
                "direction": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "shots": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "position",
                      "sceneIndex",
                      "kind",
                      "editable",
                      "isExplicit",
                      "action",
                      "keyframePrompt",
                      "explicitPrompt",
                      "motionPrompt",
                      "dialogue",
                      "camera",
                      "seconds",
                      "status",
                      "pictureUrl",
                      "clipUrl",
                      "hasPreviousVersion",
                      "error",
                      "credits"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "position": {
                        "type": "integer"
                      },
                      "sceneIndex": {
                        "type": "integer"
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "story",
                          "sex",
                          "transition",
                          "finale",
                          "imported"
                        ]
                      },
                      "editable": {
                        "type": "boolean"
                      },
                      "isExplicit": {
                        "type": "boolean"
                      },
                      "action": {
                        "type": "string"
                      },
                      "keyframePrompt": {
                        "type": "string"
                      },
                      "explicitPrompt": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "motionPrompt": {
                        "type": "string"
                      },
                      "dialogue": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "camera": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "seconds": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "keyframe_processing",
                          "keyframe_ready",
                          "clip_processing",
                          "clip_ready",
                          "failed"
                        ]
                      },
                      "pictureUrl": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uri"
                      },
                      "clipUrl": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uri"
                      },
                      "hasPreviousVersion": {
                        "type": "boolean"
                      },
                      "error": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "credits": {
                        "type": "object",
                        "required": [
                          "picture",
                          "clip",
                          "pricedBy"
                        ],
                        "description": "pricedBy scene means this story shot shows its even share of the scene's story price: one storyboard and one scene clip of 15 to 30 seconds (3 seconds per story shot, at least 15). pricedBy shot means the shot is priced on its own, by its length.",
                        "properties": {
                          "picture": {
                            "type": "integer"
                          },
                          "clip": {
                            "type": "integer"
                          },
                          "pricedBy": {
                            "type": "string",
                            "enum": [
                              "scene",
                              "shot"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "canProduce": {
            "type": "boolean"
          },
          "nextActions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "action",
                "method",
                "path"
              ],
              "properties": {
                "action": {
                  "type": "string",
                  "enum": [
                    "wait",
                    "produce",
                    "make_pictures",
                    "film",
                    "final_cut",
                    "retry_shot",
                    "replan",
                    "delete"
                  ]
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET",
                    "POST",
                    "DELETE"
                  ]
                },
                "path": {
                  "type": "string"
                },
                "credits": {
                  "type": "integer"
                },
                "shotId": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        }
      },
      "MovieAction": {
        "type": "object",
        "required": [
          "ok",
          "movie"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The new shot, when one was added."
          },
          "shotId": {
            "type": "string",
            "format": "uuid"
          },
          "sceneIndex": {
            "type": "integer"
          },
          "credits": {
            "type": "integer",
            "description": "The price, for a redo quote."
          },
          "deleted": {
            "type": "boolean"
          },
          "movie": {
            "type": "object",
            "required": [
              "id",
              "kind",
              "reference",
              "title",
              "status",
              "step",
              "autoProduce",
              "videoUrl",
              "thumbnailUrl",
              "error",
              "options",
              "credits",
              "createdAt",
              "updatedAt",
              "statusUrl"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "kind": {
                "type": "string",
                "const": "movie"
              },
              "reference": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "processing",
                  "waiting",
                  "succeeded",
                  "failed"
                ]
              },
              "step": {
                "type": "string",
                "enum": [
                  "writing_story",
                  "story_ready",
                  "making_pictures",
                  "filming",
                  "final_cut",
                  "done",
                  "failed"
                ]
              },
              "autoProduce": {
                "type": "boolean"
              },
              "videoUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "thumbnailUrl": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uri"
              },
              "error": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "options": {
                "type": "object",
                "additionalProperties": true
              },
              "credits": {
                "type": "object",
                "required": [
                  "story"
                ],
                "properties": {
                  "story": {
                    "type": "integer"
                  }
                }
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "statusUrl": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "MovieDeleted": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "deleted"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "const": "movie"
          },
          "deleted": {
            "type": "boolean",
            "const": true
          }
        }
      },
      "MovieQuote": {
        "type": "object",
        "required": [
          "valid",
          "durationSeconds",
          "credits",
          "maxCredits",
          "moviesInProgress",
          "canStartNow"
        ],
        "properties": {
          "valid": {
            "type": "boolean",
            "const": true
          },
          "durationSeconds": {
            "type": "integer"
          },
          "credits": {
            "type": "object",
            "required": [
              "story",
              "balance",
              "canAffordStory"
            ],
            "properties": {
              "story": {
                "type": "integer"
              },
              "balance": {
                "type": "number"
              },
              "canAffordStory": {
                "type": "boolean"
              }
            }
          },
          "maxCredits": {
            "type": [
              "integer",
              "null"
            ]
          },
          "moviesInProgress": {
            "type": "object",
            "required": [
              "current",
              "limit"
            ],
            "properties": {
              "current": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              }
            }
          },
          "canStartNow": {
            "type": "boolean"
          }
        }
      },
      "MovieClipList": {
        "type": "object",
        "required": [
          "clips"
        ],
        "properties": {
          "clips": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "generationId",
                "videoUrl",
                "posterUrl",
                "shareable"
              ],
              "properties": {
                "generationId": {
                  "type": "string",
                  "format": "uuid"
                },
                "videoUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                },
                "posterUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                },
                "shareable": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      },
      "PartnerPortrait": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "status",
          "statusUrl"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "const": "partner_portrait"
          },
          "status": {
            "type": "string",
            "enum": [
              "working",
              "ready",
              "failed"
            ]
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "creditsCharged": {
            "type": "integer"
          },
          "statusUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "MovieList": {
        "type": "object",
        "required": [
          "movies",
          "nextCursor"
        ],
        "properties": {
          "movies": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "kind",
                "reference",
                "title",
                "status",
                "step",
                "autoProduce",
                "videoUrl",
                "thumbnailUrl",
                "error",
                "options",
                "credits",
                "createdAt",
                "updatedAt",
                "statusUrl"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "kind": {
                  "type": "string",
                  "const": "movie"
                },
                "reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "processing",
                    "waiting",
                    "succeeded",
                    "failed"
                  ]
                },
                "step": {
                  "type": "string",
                  "enum": [
                    "writing_story",
                    "story_ready",
                    "making_pictures",
                    "filming",
                    "final_cut",
                    "done",
                    "failed"
                  ]
                },
                "autoProduce": {
                  "type": "boolean"
                },
                "videoUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                },
                "thumbnailUrl": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                },
                "error": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "options": {
                  "type": "object",
                  "additionalProperties": true
                },
                "credits": {
                  "type": "object",
                  "required": [
                    "story"
                  ],
                  "properties": {
                    "story": {
                      "type": "integer"
                    }
                  }
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "statusUrl": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "Usage": {
        "type": "object",
        "required": [
          "range",
          "trackedSince",
          "key",
          "totals",
          "jobs",
          "errors",
          "keys",
          "days",
          "moviesInProgress",
          "limits",
          "credits",
          "partner",
          "links"
        ],
        "properties": {
          "range": {
            "type": "object",
            "required": [
              "days",
              "from",
              "to"
            ],
            "properties": {
              "days": {
                "type": "integer"
              },
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            }
          },
          "trackedSince": {
            "type": "string",
            "format": "date"
          },
          "key": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "totals": {
            "type": "object",
            "required": [
              "creditsSpent",
              "creditsRefunded",
              "netCredits",
              "requests",
              "errors",
              "rateLimited",
              "errorRate"
            ],
            "properties": {
              "creditsSpent": {
                "type": "integer"
              },
              "creditsRefunded": {
                "type": "integer"
              },
              "netCredits": {
                "type": "integer"
              },
              "requests": {
                "type": "integer"
              },
              "errors": {
                "type": "integer"
              },
              "rateLimited": {
                "type": "integer"
              },
              "errorRate": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            }
          },
          "jobs": {
            "type": "object",
            "required": [
              "photos",
              "edits",
              "videoModes",
              "videos",
              "movies"
            ],
            "properties": {
              "photos": {
                "type": "integer"
              },
              "edits": {
                "type": "integer"
              },
              "videoModes": {
                "type": "integer"
              },
              "videos": {
                "type": "integer"
              },
              "movies": {
                "type": "integer"
              }
            }
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code",
                "count"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                }
              }
            }
          },
          "keys": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "prefix",
                "lastUsedAt",
                "revoked",
                "creditsSpent",
                "creditsRefunded",
                "netCredits",
                "requests",
                "errors",
                "rateLimited",
                "errorRate"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "prefix": {
                  "type": "string"
                },
                "lastUsedAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "revoked": {
                  "type": "boolean"
                },
                "creditsSpent": {
                  "type": "integer"
                },
                "creditsRefunded": {
                  "type": "integer"
                },
                "netCredits": {
                  "type": "integer"
                },
                "requests": {
                  "type": "integer"
                },
                "errors": {
                  "type": "integer"
                },
                "rateLimited": {
                  "type": "integer"
                },
                "errorRate": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                }
              }
            }
          },
          "days": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "date",
                "creditsSpent",
                "creditsRefunded",
                "netCredits",
                "requests",
                "errors",
                "rateLimited",
                "errorRate"
              ],
              "properties": {
                "date": {
                  "type": "string",
                  "format": "date"
                },
                "creditsSpent": {
                  "type": "integer"
                },
                "creditsRefunded": {
                  "type": "integer"
                },
                "netCredits": {
                  "type": "integer"
                },
                "requests": {
                  "type": "integer"
                },
                "errors": {
                  "type": "integer"
                },
                "rateLimited": {
                  "type": "integer"
                },
                "errorRate": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                }
              }
            }
          },
          "moviesInProgress": {
            "type": "object",
            "required": [
              "current",
              "limit"
            ],
            "properties": {
              "current": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              }
            }
          },
          "limits": {
            "type": "object",
            "required": [
              "requestsPerMinute",
              "generationsPerMinute"
            ],
            "properties": {
              "requestsPerMinute": {
                "type": "integer"
              },
              "generationsPerMinute": {
                "type": "integer"
              }
            }
          },
          "credits": {
            "type": "number"
          },
          "partner": {
            "type": "object",
            "required": [
              "qualifies",
              "paidLast30DaysUsd",
              "qualifyAtUsd",
              "url"
            ],
            "properties": {
              "qualifies": {
                "type": "boolean"
              },
              "paidLast30DaysUsd": {
                "type": "number"
              },
              "qualifyAtUsd": {
                "type": "number"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "links": {
            "type": "object",
            "required": [
              "dashboard",
              "topUp"
            ],
            "properties": {
              "dashboard": {
                "type": "string",
                "format": "uri"
              },
              "topUp": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}