> ## Documentation Index
> Fetch the complete documentation index at: https://rendermate.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create generation

> Call a model: a prompt and assets in, new assets out, such as a video from a prompt and a first frame, speech from text, a transcript of a recording, or a cutout of the people or of a picked object in an image or a video. Every model, with its inputs, params, limits and meters, is at https://rendermate.com/docs/models, and list_models answers with the same list. Its files are saved as assets at `output`; a name that's already taken is refused unless `overwrite` is set. It runs in the background: call get_generation with its ID until it's done. It costs credits.

MCP tool: [`create_generation`](/mcp/tools/generations#create_generation).



## OpenAPI

````yaml /api/openapi.json post /v1/generations
openapi: 3.1.0
info:
  title: Rendermate API
  version: v1
servers:
  - url: https://api.rendermate.com
security:
  - api_key: []
tags:
  - name: Account
  - name: Workspaces
  - name: Projects
  - name: Documents
  - name: Links
  - name: Exports
  - name: Assets
  - name: Generations
  - name: Persons
  - name: Help
paths:
  /v1/generations:
    post:
      tags:
        - Generations
      summary: Create generation
      description: >-
        Call a model: a prompt and assets in, new assets out, such as a video
        from a prompt and a first frame, speech from text, a transcript of a
        recording, or a cutout of the people or of a picked object in an image
        or a video. Every model, with its inputs, params, limits and meters, is
        at https://rendermate.com/docs/models, and list_models answers with the
        same list. Its files are saved as assets at `output`; a name that's
        already taken is refused unless `overwrite` is set. It runs in the
        background: call get_generation with its ID until it's done. It costs
        credits.


        MCP tool:
        [`create_generation`](/mcp/tools/generations#create_generation).
      operationId: create_generation
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              properties:
                inputs:
                  description: Assets the model takes as input, each with its role.
                  items:
                    $ref: '#/components/schemas/InputAsset'
                  type: array
                model:
                  description: >-
                    The model, from list_models, such as
                    `bytedance/seedance-2.5`.
                  type: string
                output:
                  description: >-
                    Where the files it makes are saved: an asset path such as
                    `launch/shot.mp4` (other files

                    it makes go next to it, as `launch/shot.last_frame.png`), or
                    a folder ending in `/`, where

                    each file is named by its role, as `launch/video.mp4`.
                    `generations/<id>/` when absent.
                  type:
                    - string
                    - 'null'
                overwrite:
                  default: false
                  description: >-
                    Replace assets already at those names. Without it, a name
                    that's taken is refused with

                    `asset.name_taken`; one taken while the generation runs gets
                    its file saved in

                    `generations/<id>/` instead, and the generation says so in
                    its error.
                  type: boolean
                params:
                  description: >-
                    The model's params, as its schema in list_models describes
                    them.
                project_id:
                  description: >-
                    The project its files go in; the workspace's default project
                    when absent.
                  type:
                    - string
                    - 'null'
                prompt:
                  description: What to make, for models that take a prompt.
                  type:
                    - string
                    - 'null'
                provider:
                  anyOf:
                    - $ref: '#/components/schemas/Routing'
                    - type: 'null'
                  description: >-
                    Which providers may serve it: `order`, `only`, `ignore`,
                    `allow_fallbacks`, and

                    `options`, each provider's own request fields.
              required:
                - model
              type: object
        required: true
      responses:
        '202':
          content:
            application/json:
              example:
                created_at: '2026-12-03T10:15:00Z'
                error: null
                id: gen_01JF3R9K4D2F6H8J1M3N5Q7S9T
                inputs:
                  - asset: launch/stills/skyline.jpg
                    role: first_frame
                    sha256: >-
                      9f2c4e1a7b3d5f8e0c6a2b4d8f1e3c5a7b9d0f2e4c6a8b1d3f5e7c9a0b2d4f6e
                model: bytedance/seedance-2.5
                output: generations/gen_01JF3R9K4D2F6H8J1M3N5Q7S9T/
                outputs:
                  - asset: generations/gen_01JF3R9K4D2F6H8J1M3N5Q7S9T/video.mp4
                    content_type: video/mp4
                    role: video
                    size: 18432311
                params:
                  duration: 5
                  resolution: 1080p
                project_id: prj_01JF3Q4A8C2E6G0J3K5N7Q9S1V
                prompt: A slow aerial shot over a city at dawn
                provider: byteplus
                status: succeeded
                updated_at: '2026-12-03T10:16:42Z'
                usage:
                  quantity: 108900
                  unit: completion_tokens
              schema:
                properties:
                  created_at:
                    description: RFC 3339.
                    type: string
                  error:
                    description: Why it failed.
                    type:
                      - string
                      - 'null'
                  id:
                    description: '`gen_…`.'
                    type: string
                  inputs:
                    description: The assets it was given.
                    items:
                      $ref: '#/components/schemas/InputView'
                    type: array
                  model:
                    description: The model it uses, `author/model`.
                    type: string
                  output:
                    description: Where its files are saved.
                    type: string
                  outputs:
                    description: The assets it made, once it has succeeded.
                    items:
                      $ref: '#/components/schemas/OutputView'
                    type: array
                  params:
                    description: >-
                      The model's parameters it was given, as the model's
                      `params` schema describes them.
                  project_id:
                    description: The project its assets go in.
                    type: string
                  prompt:
                    description: The prompt it was given, when it was given one.
                    type:
                      - string
                      - 'null'
                  provider:
                    description: The provider that served it, once one has.
                    type:
                      - string
                      - 'null'
                  status:
                    description: '`running`, `succeeded`, `failed` or `cancelled`.'
                    type: string
                  updated_at:
                    description: 'RFC 3339: when its status last changed.'
                    type: string
                  usage:
                    anyOf:
                      - $ref: '#/components/schemas/UsageView'
                      - type: 'null'
                    description: >-
                      What the provider reported using, once it has succeeded,
                      or once a cancelled one's task

                      has ended (none used when the provider stopped it in
                      time).
                required:
                  - id
                  - model
                  - status
                  - provider
                  - prompt
                  - inputs
                  - params
                  - output
                  - outputs
                  - usage
                  - error
                  - project_id
                  - created_at
                  - updated_at
                type: object
          description: Accepted
        '400':
          content:
            application/json:
              examples:
                invalid_request:
                  summary: invalid_request
                  value:
                    error:
                      code: invalid_request
                      doc_url: https://rendermate.com/docs/errors#invalid_request
                      message: >-
                        gen_01JF3R7B5D3F1H9K2M4P6R8T0V hasn't succeeded; make
                        the final video once it has
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `invalid_request`: gen_01JF3R7B5D3F1H9K2M4P6R8T0V hasn't
            succeeded; make the final video once it has
        '401':
          content:
            application/json:
              examples:
                unauthorized:
                  summary: unauthorized
                  value:
                    error:
                      code: unauthorized
                      doc_url: https://rendermate.com/docs/errors#unauthorized
                      message: 'provide a valid API key: Authorization: Bearer sk_…'
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `unauthorized`: provide a valid API key: Authorization: Bearer
            sk_…
        '402':
          content:
            application/json:
              examples:
                credits.empty:
                  summary: credits.empty
                  value:
                    error:
                      code: credits.empty
                      doc_url: https://rendermate.com/docs/errors#credits.empty
                      message: >-
                        your organization's credit balance is empty: add credits
                        in the dashboard, under billing, or turn on auto-refill
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `credits.empty`: your organization's credit balance is empty: add
            credits in the dashboard, under billing, or turn on auto-refill
        '403':
          content:
            application/json:
              examples:
                key_without_workspace:
                  summary: key_without_workspace
                  value:
                    error:
                      code: key_without_workspace
                      doc_url: https://rendermate.com/docs/errors#key_without_workspace
                      message: >-
                        this API key has no workspace: create a key in the
                        dashboard, under api keys in the workspace it should act
                        in
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `key_without_workspace`: this API key has no workspace: create a
            key in the dashboard, under api keys in the workspace it should act
            in
        '404':
          content:
            application/json:
              examples:
                not_found:
                  summary: not_found
                  value:
                    error:
                      code: not_found
                      doc_url: https://rendermate.com/docs/errors#not_found
                      message: no asset launch/intro.mp4 in this workspace
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `not_found`: no asset launch/intro.mp4 in this workspace'
        '409':
          content:
            application/json:
              examples:
                asset.name_taken:
                  summary: asset.name_taken
                  value:
                    error:
                      code: asset.name_taken
                      doc_url: https://rendermate.com/docs/errors#asset.name_taken
                      message: an asset named "launch/intro.mp4" already exists
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `asset.name_taken`: an asset named "launch/intro.mp4" already
            exists
        '500':
          content:
            application/json:
              examples:
                internal:
                  summary: internal
                  value:
                    error:
                      code: internal
                      doc_url: https://rendermate.com/docs/errors#internal
                      message: internal error
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: '- `internal`: internal error'
        '503':
          content:
            application/json:
              examples:
                credits.unavailable:
                  summary: credits.unavailable
                  value:
                    error:
                      code: credits.unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: >-
                        your credit balance can't be checked right now: try
                        again shortly
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
                temporal_unavailable:
                  summary: temporal_unavailable
                  value:
                    error:
                      code: temporal_unavailable
                      doc_url: https://rendermate.com/docs/errors#unavailable
                      message: >-
                        renders and exports are unavailable right now; try again
                        shortly
                      request_id: req_0193f2a4c1d87b2e9f3a6c5d4e8b7a10
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            - `temporal_unavailable`: renders and exports are unavailable right
            now; try again shortly

            - `credits.unavailable`: your credit balance can't be checked right
            now: try again shortly
components:
  schemas:
    InputAsset:
      properties:
        asset:
          description: The asset's path in the workspace, such as `launch/fox.png`.
          type: string
        person:
          description: >-
            The verified person it shows, from create_person, for Seedance
            models, which otherwise

            refuse real people's faces. The asset must be of that person: a face
            that isn't theirs

            fails the generation.
          type:
            - string
            - 'null'
        role:
          description: >-
            What the model does with it, from list_models, such as `first_frame`
            or `audio`.
          type: string
      required:
        - asset
        - role
      type: object
    Routing:
      additionalProperties: false
      description: Which providers may serve a generation, and in what order.
      properties:
        allow_fallbacks:
          description: >-
            Whether a provider that refuses the job before accepting it passes
            it to the next; true

            when absent.
          type:
            - boolean
            - 'null'
        ignore:
          default: []
          description: Never these providers.
          items:
            type: string
          type: array
        only:
          description: Only these providers.
          items:
            type: string
          type:
            - array
            - 'null'
        options:
          additionalProperties: true
          default: {}
          description: >-
            Fields sent to a provider as given, by provider, such as

            `{"byteplus": {"service_tier": "flex"}}`. They're added to the
            request the provider gets,

            replacing what the generation would send.
          type: object
        order:
          default: []
          description: >-
            Providers to try first, in this order; the model's own order after
            them.
          items:
            type: string
          type: array
      type: object
    InputView:
      properties:
        asset:
          description: The asset's name.
          type: string
        person:
          description: The person it shows.
          type:
            - string
            - 'null'
        role:
          description: >-
            What the model uses it as, one of the model's `inputs` roles, such
            as `first_frame`.
          type: string
        sha256:
          description: >-
            The content it used, which stays the same if the asset changes
            later.
          type: string
      required:
        - asset
        - role
        - sha256
      type: object
    OutputView:
      properties:
        asset:
          description: The asset it was saved as.
          type: string
        content_type:
          description: The asset's media type, such as `video/mp4`.
          type: string
        role:
          description: Such as `video`, `last_frame`, `transcript`, `matte` or `cutout`.
          type: string
        size:
          description: Bytes.
          format: uint64
          minimum: 0
          type: integer
      required:
        - role
        - asset
        - content_type
        - size
      type: object
    UsageView:
      properties:
        quantity:
          description: How much, in `unit`s.
          format: double
          type: number
        unit:
          description: Such as `completion_tokens`, `audio_seconds` or `frames`.
          type: string
      required:
        - quantity
        - unit
      type: object
    Error:
      properties:
        error:
          properties:
            code:
              description: Stable, such as `asset.name_taken` or `not_available`.
              type: string
            doc_url:
              description: The code's entry on the Errors page.
              type: string
            message:
              description: What went wrong and what to do next.
              type: string
            request_id:
              description: >-
                The request's ID, also in its `x-request-id` header. Quote it
                when you contact support.
              type: string
          required:
            - code
            - message
            - doc_url
            - request_id
          type: object
      required:
        - error
      type: object
  securitySchemes:
    api_key:
      description: >-
        An API key from the dashboard, such as `sk_live_…`. It acts in its
        workspace.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.