Made Generations API

Run any model directly.

GitHub OpenAPI

Operations 6

POST /v1/cost Price a generation #
POST /v1/generations Create a generation #
GET /v1/generations List your generations #
GET /v1/generations/{id} Get a generation #
DELETE /v1/generations/{id} Remove a finished generation from history #
POST /v1/generations/{id}/cancel Cancel a generation #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/made-app:made-app-generations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

made-app-generations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Made Generations API
  version: 1.0.0
  summary: Image, video and audio models and ready-made tools, priced in credits.
  description: 'Create a key at https://www.made.app/account/api-keys and send it as `Authorization: Bearer made_sk_…`, from your server. Prices and balances are in credits; a credit is 10 cents. Fields named …Cents count cents (60 = 6 credits). Quote first (POST /v1/cost or /v1/tools/{id}/quote, free), then create with request_id and max_cost_cents so a retry never charges twice and a price change is refused, not charged. If the provider a job was quoted on fails, Made moves the job to a backup provider and charges that provider''s price, which can be above max_cost_cents; send `X-MADE-Backup-Pricing: cap` to have such a job fail instead. Jobs are asynchronous: poll GET /v1/generations/{id}. A failed or canceled job is refunded.'
  contact:
    email: support@made.app
    url: https://www.made.app/developers
servers:
- url: https://www.made.app/api
security:
- bearerAuth: []
tags:
- name: Generations
  description: Run any model directly.
paths:
  /v1/cost:
    post:
      operationId: quoteGeneration
      tags:
      - Generations
      summary: Price a generation
      description: 'Free: the exact price of this request body, with no job and no charge.'
      parameters:
      - name: X-MADE-Backup-Pricing
        in: header
        required: false
        schema:
          type: string
          enum:
          - provider
          - cap
          default: provider
        description: 'If the provider a job was quoted on fails, Made moves the job to a backup provider. `provider` (the default): the backup charges its own price, which can be more than the quote and max_cost_cents; your balance has to cover it. `cap`: max_cost_cents holds for the backup too, so a costlier backup fails the job instead, and it is refunded.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerationRequest'
      responses:
        '200':
          description: The price.
          content:
            application/json:
              schema:
                type: object
                properties:
                  cost:
                    $ref: '#/components/schemas/Cost'
        '400':
          description: A parameter the model doesn't take.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Unknown model, or media that isn't yours.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/generations:
    post:
      operationId: createGeneration
      tags:
      - Generations
      summary: Create a generation
      description: Starts the job and debits its price (refunded if it fails or is canceled). Poll GET /v1/generations/{id} until status is succeeded, failed or canceled.
      parameters:
      - name: X-MADE-Backup-Pricing
        in: header
        required: false
        schema:
          type: string
          enum:
          - provider
          - cap
          default: provider
        description: 'If the provider a job was quoted on fails, Made moves the job to a backup provider. `provider` (the default): the backup charges its own price, which can be more than the quote and max_cost_cents; your balance has to cover it. `cap`: max_cost_cents holds for the backup too, so a costlier backup fails the job instead, and it is refunded.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerationRequest'
      responses:
        '202':
          description: The job, accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
        '400':
          description: A parameter the model doesn't take.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Not enough credits. The body says what the job costs, what the balance is, and where to add credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsufficientCreditsError'
        '404':
          description: Unknown model, or media that isn't yours.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The price is above max_cost_cents (get a new quote), or the request_id already belongs to a different request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too many failed generations in the last few minutes; wait before retrying.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    get:
      operationId: listGenerations
      tags:
      - Generations
      summary: List your generations
      description: Newest first.
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      - name: before
        in: query
        schema:
          type: string
          format: date-time
        description: Return jobs created before this time (the previous page's nextBefore).
      - name: tool
        in: query
        schema:
          type: string
        description: Only this tool's jobs (a tool id).
      - name: character
        in: query
        schema:
          type: string
        description: Only jobs starring this saved character (`ref_…`).
      responses:
        '200':
          description: A page of jobs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobList'
        '400':
          description: A bad tool or character filter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/generations/{id}:
    get:
      operationId: getGeneration
      tags:
      - Generations
      summary: Get a generation
      description: The job's status, charge and, once it succeeded, result.assets. Asset URLs are re-signed on every read.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Job id (`job_…`).
      responses:
        '200':
          description: The job.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such job on this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: deleteGeneration
      tags:
      - Generations
      summary: Remove a finished generation from history
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Job id (`job_…`).
      responses:
        '200':
          description: Removed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  deleted:
                    type: boolean
                    const: true
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such job on this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The job is still running; cancel it first.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/generations/{id}/cancel:
    post:
      operationId: cancelGeneration
      tags:
      - Generations
      summary: Cancel a generation
      description: Stops a pending or processing job and refunds its charge.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Job id (`job_…`).
      responses:
        '200':
          description: The canceled job.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such job on this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The job already finished.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Cost:
      type: object
      required:
      - customerCostCents
      - credits
      properties:
        credits:
          type: number
          description: The price in credits.
          example: 6
        customerCostCents:
          type: number
          description: Starting price in cents (10 cents = 1 credit), on the provider Made picked. Pass it as max_cost_cents so a higher price is refused.
          example: 60
        pricingPolicy:
          type: string
          enum:
          - provider_used
          description: 'If the quoted provider fails, the job is charged the price of the backup provider that runs it, which can be above max_cost_cents (unless the request sent X-MADE-Backup-Pricing: cap). Available credits still apply.'
        priceNotice:
          type: string
          description: Explain the starting estimate and backup pricing before generation.
        free:
          type: string
          enum:
          - image
          - video
          description: Set when one of the account's free starts covers this job; the price is then 0.
        listCostCents:
          type: number
          description: 'On a free start: the price it saves, in cents.'
        upscaleCostCents:
          type: number
          description: 'On an edit with upscale_factor: the upscale''s share of the price, charged when it starts.'
    GenerationRequest:
      type: object
      additionalProperties: false
      required:
      - model
      properties:
        model:
          type: string
          description: Model id from GET /v1/models, for example `seedance_2_5` or `nano_banana_2`.
        prompt:
          type: string
          description: What to make. Required by most models; edit models describe the change.
        request_id:
          type: string
          minLength: 8
          maxLength: 128
          pattern: ^[a-zA-Z0-9_-]+$
          description: Idempotency key. Sending the same request_id with the same body again returns the same job instead of charging twice, so retry with it after a lost response.
        max_cost_cents:
          type: number
          minimum: 0
          description: The approved price in cents (10 cents = 1 credit), usually the customerCostCents from POST /v1/cost. If the price is higher the request is refused with 409 and nothing is charged. If the provider the job was quoted on fails, a backup provider runs it at its own price, which can be higher (see the X-MADE-Backup-Pricing header).
        kind:
          type: string
          enum:
          - image
          - video
          - audio
          description: 'Optional guard: the request is refused if the model is a different kind.'
        count:
          type: integer
          minimum: 1
          maximum: 4
          default: 1
          description: Outputs to make. Each one is priced.
        aspect_ratio:
          type: string
          description: One of the model's `aspectRatios`, for example `16:9` or `9:16`.
        duration:
          type: number
          exclusiveMinimum: 0
          description: Seconds of video or audio. One of the model's `durations` (or inside its `durationRange`).
        resolution:
          type: string
          description: Output tier, using the exact key from the model's catalog entry (for example `480p`, `768P` or `2160p`). An undeclared tier is refused, never re-priced. A tier in the entry's `upscaledResolutions` renders at its `from` tier and is then upscaled; its price is that render plus the upscale, and `/v1/cost` quotes both.
        quality:
          type: string
          description: One of the model's `qualities`, where it has them.
        audio:
          type: boolean
          description: Generate sound, on models whose catalog entry has `audioPricing`.
        image_size:
          type: string
          description: One of the model's `imageSizes`, where it has them.
        upscale_factor:
          type: number
          exclusiveMinimum: 0
          description: 'For upscale models: one of the model''s `upscaleFactors`.'
        medias:
          type: array
          description: Reference media for image-to-video, edits and reference models. The model's `mediaRoles` lists the roles it takes and `requiredMedia` the ones it needs.
          items:
            type: object
            additionalProperties: false
            required:
            - value
            - role
            properties:
              value:
                type: string
                description: An https URL, an uploaded `media_…` id, a prior `job_…` id, or a saved character's or product's `ref_…` id.
              role:
                type: string
                description: The role this media plays, for example `start_image` or `reference_images`.
        characters:
          type: array
          minItems: 1
          maxItems: 3
          items:
            type: string
            pattern: ^ref_
          description: Saved characters (`ref_…`) to star, so the same face carries across generations.
        character:
          type: string
          pattern: ^ref_
          description: One saved character; the same as `characters` with one id.
        products:
          type: array
          minItems: 1
          maxItems: 3
          items:
            type: string
            pattern: ^ref_
          description: 'Saved products (`ref_…` from GET /v1/products) to show: their photos, cover first, go in as references after any characters'', and the prompt says to keep each product exactly as it looks (shape, colors, labels).'
        product:
          type: string
          pattern: ^ref_
          description: One saved product; the same as `products` with one id.
        params:
          type: object
          additionalProperties: true
          description: Extra model options from the model's `allowedParams`, for example `seed`.
    Job:
      type: object
      additionalProperties: true
      required:
      - id
      - status
      - model
      - costCents
      - createdAt
      properties:
        id:
          type: string
          example: job_…
        type:
          type: string
          enum:
          - image
          - video
          - audio
        model:
          type: string
        toolId:
          type: string
          description: The tool that made this job, when one did.
        status:
          type: string
          enum:
          - pending
          - processing
          - succeeded
          - failed
          - canceled
        progress:
          type: number
          minimum: 0
          maximum: 100
        costCents:
          type: number
          description: The charge in cents. Refunded automatically if the job fails or is canceled.
        inputs:
          type: object
          additionalProperties: true
          description: The settings the job ran with.
        result:
          type: object
          properties:
            assets:
              type: array
              items:
                $ref: '#/components/schemas/Asset'
            data:
              type: object
              additionalProperties: true
              description: Output that isn't a file, such as a voiceover's word timings.
        error:
          type: string
          description: Why the job failed.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Asset:
      type: object
      required:
      - type
      - url
      properties:
        type:
          type: string
          enum:
          - image
          - video
          - audio
        url:
          type: string
          format: uri
          description: Signed download URL, re-signed on every read of the job.
        thumbnailUrl:
          type: string
          format: uri
        width:
          type: integer
        height:
          type: integer
        durationSec:
          type: number
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: What went wrong, in plain words.
    JobList:
      type: object
      properties:
        jobs:
          type: array
          items:
            $ref: '#/components/schemas/Job'
        nextBefore:
          type:
          - string
          - 'null'
          description: Pass as `before` to read the next page; null at the end.
    InsufficientCreditsError:
      type: object
      required:
      - error
      - code
      - add_credits_url
      properties:
        error:
          type: string
          example: 'Insufficient credits: this costs 6 credits and your balance is 0.'
        code:
          type: string
          const: insufficient_credits
        cost_credits:
          type: number
          description: What the job costs, in credits. Absent when it isn't known at that point.
          example: 6
        balance_credits:
          type: number
          description: The balance, in credits. Absent when it isn't known at that point.
          example: 0
        add_credits_url:
          type: string
          format: uri
          example: https://www.made.app/billing
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A made_sk_… key from https://www.made.app/account/api-keys.
externalDocs:
  description: Guides and examples
  url: https://www.made.app/developers