Compeller Compels API

Create and track generation jobs.

GitHub OpenAPI

Operations 9

POST /api/v1/compels/from-music Create a compel from a selected Deezer preview track #
POST /api/v1/music/{trackId}/compel Create a compel from a selected Deezer preview track #
POST /api/v1/compels Create a compel generation job #
GET /api/v1/compels List compels owned by the authenticated account, newest first #
GET /api/v1/compels/{id} Fetch a single compel by id #
DELETE /api/v1/compels/{id} Cancel a compel #
POST /api/v1/compels/{id}/cancel Cancel a compel (explicit POST alias for `DELETE /api/v1/compels/{id}`) #
POST /api/v1/compels/{id}/start-render Start or retry rendering for a compel using Compeller defaults #
GET /api/v1/compels/{id}/events List lifecycle events for a compel #

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/compeller-ai:compeller-ai-compels-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

compeller-ai-compels-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compeller Ai Compels API
  version: 1.0.0
  description: 'Operations tagged Compels across 2 of this provider''s published API definitions: compeller-ai-openapi.yaml, compeller-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://compeller.ai
  description: Production
- url: https://dev.compeller.ai
  description: Development
security:
- bearerToken: []
- apiTokenHeader: []
tags:
- name: Compels
  description: Create and track generation jobs.
paths:
  /api/v1/compels/from-music:
    post:
      tags:
      - Compels
      operationId: createCompelFromMusic
      summary: Create a compel from a selected Deezer preview track
      description: 'Use after `/api/v1/music/search` when the user gave a song string but no audio file. Defaults to `auto_start: true`, so agents can create-and-render in one call. Set `auto_start: false` to stop at audio/configuration readiness.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - track_id
              properties:
                track_id:
                  type: integer
                  format: int64
                title:
                  type: string
                style:
                  type: string
                target_platform:
                  type: string
                aspect_ratio:
                  type: string
                artist_context:
                  type: string
                auto_start:
                  type: boolean
                  default: true
                  description: When true, continue automatically from audio readiness into scene planning/rendering.
      responses:
        '202':
          description: Compel created from Deezer preview and queued for audio processing/rendering when auto_start is true.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/CompelPayload'
                - type: object
                  properties:
                    music_source:
                      $ref: '#/components/schemas/MusicTrack'
        '401':
          $ref: '#/components/responses/UnauthorizedMediaStyle'
    servers:
    - url: https://compeller.ai
      description: Production
    - url: https://dev.compeller.ai
      description: Development
  /api/v1/music/{trackId}/compel:
    post:
      tags:
      - Compels
      operationId: createCompelFromMusicPath
      summary: Create a compel from a selected Deezer preview track
      parameters:
      - name: trackId
        in: path
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '202':
          description: Compel created from Deezer preview and queued for audio processing.
    servers:
    - url: https://compeller.ai
      description: Production
    - url: https://dev.compeller.ai
      description: Development
  /api/v1/compels:
    post:
      tags:
      - Compels
      operationId: createCompel
      summary: Create a compel generation job
      description: 'The primary media record referenced by `primary_media_id` must be owned by the

        authenticated account and must be an audio record. The request returns `202

        Accepted` and the job is enqueued for processing.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCompelRequest'
      responses:
        '202':
          description: Compel created and queued for processing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompelPayload'
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
    get:
      tags:
      - Compels
      operationId: listCompels
      summary: List compels owned by the authenticated account, newest first
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          default: 20
          maximum: 100
      - name: max
        in: query
        description: Alias for `limit`.
        schema:
          type: integer
          maximum: 100
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
          minimum: 0
      responses:
        '200':
          description: Paged compel list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompelListResponse'
        '401':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://compeller.ai
      description: Production
    - url: https://dev.compeller.ai
      description: Development
  /api/v1/compels/{id}:
    get:
      tags:
      - Compels
      operationId: getCompel
      summary: Fetch a single compel by id
      parameters:
      - $ref: '#/components/parameters/PathId'
      responses:
        '200':
          description: Compel envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompelEnvelope'
        '401':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
    delete:
      tags:
      - Compels
      operationId: deleteCompel
      summary: Cancel a compel
      description: 'Behaviourally equivalent to `POST /api/v1/compels/{id}/cancel` - in-flight work is

        cancelled and the compel transitions to `CANCELLED`. Exposed as `DELETE` for

        REST-shaped clients; see the `cancel` alias for clients that prefer explicit POST.'
      parameters:
      - $ref: '#/components/parameters/PathId'
      responses:
        '202':
          description: Cancellation accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompelCancelResponse'
        '401':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://compeller.ai
      description: Production
    - url: https://dev.compeller.ai
      description: Development
  /api/v1/compels/{id}/cancel:
    post:
      tags:
      - Compels
      operationId: cancelCompel
      summary: Cancel a compel (explicit POST alias for `DELETE /api/v1/compels/{id}`)
      parameters:
      - $ref: '#/components/parameters/PathId'
      responses:
        '202':
          description: Cancellation accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompelCancelResponse'
        '401':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://compeller.ai
      description: Production
    - url: https://dev.compeller.ai
      description: Development
  /api/v1/compels/{id}/start-render:
    post:
      tags:
      - Compels
      operationId: startCompelRender
      summary: Start or retry rendering for a compel using Compeller defaults
      description: 'Starts scene planning/rendering when the compel is at `READY`. If clips are

        already complete and the final MP4 assembly has not completed yet, this endpoint

        may queue the final assembly step. Agents should normally follow `next_action`

        from `GET /api/v1/compels/{id}` instead of calling this repeatedly.'
      parameters:
      - $ref: '#/components/parameters/PathId'
      responses:
        '202':
          description: Render flow or final assembly accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompelStartRenderResponse'
        '401':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://compeller.ai
      description: Production
    - url: https://dev.compeller.ai
      description: Development
  /api/v1/compels/{id}/events:
    get:
      tags:
      - Compels
      operationId: listCompelEvents
      summary: List lifecycle events for a compel
      parameters:
      - $ref: '#/components/parameters/PathId'
      responses:
        '200':
          description: Event timeline for the compel.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompelEventsResponse'
        '401':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
    servers:
    - url: https://compeller.ai
      description: Production
    - url: https://dev.compeller.ai
      description: Development
components:
  schemas:
    CompelEvent:
      type: object
      required:
      - type
      - created_at
      properties:
        type:
          type: string
          enum:
          - STATE_CHANGED
          - EXTERNAL_TASK
        status:
          type: string
        message:
          type:
          - string
          - 'null'
        created_at:
          type: string
          format: date-time
        task_id:
          type:
          - integer
          - 'null'
          format: int64
        task_type:
          type:
          - string
          - 'null'
        trigger_state:
          type:
          - string
          - 'null'
        attempt_count:
          type:
          - integer
          - 'null'
        initiated_at:
          type:
          - string
          - 'null'
          format: date-time
        acknowledged_at:
          type:
          - string
          - 'null'
          format: date-time
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
    CompelListResponse:
      type: object
      required:
      - compels
      - paging
      properties:
        compels:
          type: array
          items:
            $ref: '#/components/schemas/CompelEnvelope'
        paging:
          $ref: '#/components/schemas/Paging'
    CompelStartRenderResponse:
      allOf:
      - $ref: '#/components/schemas/CompelPayload'
      - type: object
        required:
        - accepted
        - message
        properties:
          accepted:
            type: boolean
            description: True when the render flow or final assembly was accepted.
          message:
            type: string
            description: Agent-facing status message. Save the compel id and poll rather than retrying continuously.
    CreateCompelRequest:
      type: object
      required:
      - title
      - primary_media_id
      properties:
        title:
          type: string
        primary_media_id:
          type: integer
          format: int64
        reference_media_ids:
          type: array
          items:
            type: integer
            format: int64
        style:
          type: string
          description: One of the style ids from `GET /api/v1/styles` (pass the id verbatim).
          example: Cinematic Realistic
        target_platform:
          type: string
          description: Drives default aspect ratio when `aspect_ratio` is omitted.
          example: tiktok
        aspect_ratio:
          type: string
          example: '9:16'
        artist_context:
          type: string
        mode:
          type: string
        duration_preference:
          type: string
    CompelStatus:
      type: string
      description: Public-facing compel status derived from internal state.
      enum:
      - QUEUED
      - VALIDATING
      - PROCESSING
      - RENDERING
      - COMPLETED
      - CANCELLED
      - FAILED_RETRYING
      - FAILED_FINAL
    CompelEnvelope:
      type: object
      required:
      - compel
      properties:
        compel:
          $ref: '#/components/schemas/CompelPayload'
    MessageError:
      type: object
      required:
      - message
      properties:
        message:
          type: string
    Paging:
      type: object
      properties:
        total:
          type: integer
          format: int64
        limit:
          type: integer
        max:
          type: integer
          description: Present on legacy listings (media). Equivalent to `limit`.
        offset:
          type: integer
    CompelEventsResponse:
      type: object
      required:
      - compel_id
      - status
      - stage
      - events
      properties:
        compel_id:
          type: integer
          format: int64
        status:
          $ref: '#/components/schemas/CompelStatus'
        stage:
          $ref: '#/components/schemas/CompelStage'
        events:
          type: array
          items:
            $ref: '#/components/schemas/CompelEvent'
    CompelPayload:
      type: object
      required:
      - id
      - title
      - status
      - progress
      - stage
      - retry_count
      - eta_seconds
      - created_at
      properties:
        id:
          type: integer
          format: int64
        title:
          type: string
        status:
          $ref: '#/components/schemas/CompelStatus'
        progress:
          type: integer
          minimum: 0
          maximum: 100
        progress_percent:
          type: integer
          description: Alias for `progress`.
        stage:
          $ref: '#/components/schemas/CompelStage'
        retry_count:
          type: integer
        estimated_completion:
          type:
          - string
          - 'null'
          format: date-time
        eta_seconds:
          type: integer
          format: int64
        rendering_id:
          type:
          - integer
          - 'null'
          format: int64
          description: Populated when a COMPLETED rendering exists.
        created_at:
          type:
          - string
          - 'null'
          format: date-time
        react:
          $ref: '#/components/schemas/ReactHandoff'
    MusicTrack:
      type: object
      properties:
        track_id:
          type: integer
          format: int64
        title:
          type: string
        artist:
          type: string
        album:
          type: string
        duration_seconds:
          type: integer
        explicit:
          type: boolean
        preview_available:
          type: boolean
        thumbnail:
          type:
          - string
          - 'null'
        thumbnail_large:
          type:
          - string
          - 'null'
    ReactHandoff:
      type: object
      description: Agent-facing handoff that tells users how to experience a completed compel in REACT, Compeller's free live performance system.
      required:
      - message
      - download_url
      - learn_more
      properties:
        message:
          type: string
          example: Your compel is ready. To experience it as a live performance system, download REACT for free and use this render as part of a real-time visual show.
        download_url:
          type: string
          format: uri
          example: https://compeller.ai/download/desktop
        learn_more:
          type: string
          format: uri
          example: https://compeller.ai/react
    Problem:
      type: object
      description: RFC 7807 problem detail.
      required:
      - type
      - title
      - status
      properties:
        type:
          type: string
          example: about:blank
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
    CompelCancelResponse:
      type: object
      required:
      - id
      - status
      - stage
      properties:
        id:
          type: integer
          format: int64
        status:
          type: string
          enum:
          - CANCELLED
        stage:
          $ref: '#/components/schemas/CompelStage'
    CompelStage:
      type: string
      description: Internal pipeline stage exposed for observability. Do not branch on it.
      enum:
      - CREATED
      - AUDIO_UPLOAD
      - AUDIO_PROCESSING
      - AUDIO_ANALYSIS
      - AUDIO_TRANSCRIBE
      - BACKDROP_RENDER
      - READY
      - SCENES_CREATED
      - COMPEL_RENDERED
      - FAILED
      - CANCELLED
      - PENDING_ASSETS
  responses:
    UnauthorizedMediaStyle:
      description: Missing or invalid API token (legacy media-controller error shape).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageError'
    Problem:
      description: RFC 7807 problem detail.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  parameters:
    PathId:
      name: id
      in: path
      required: true
      schema:
        type: integer
        format: int64
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: 'Compeller API token sent as `Authorization: Bearer <token>`.'
    apiTokenHeader:
      type: apiKey
      in: header
      name: X-API-Token
      description: 'Compeller API token sent as `X-API-Token: <token>` (equivalent to bearer).'
x-refined-from:
- compeller-ai-openapi.yaml
- compeller-ai-openapi.yml