Phoenix Labs Motion API

The Motion API from Phoenix Labs — 6 operation(s) for motion.

GitHub OpenAPI

Operations 7

GET /motion/config Clip sizes, prices and limits #
GET /motion/quote Price one clip #
POST /motion/jobs Make a clip from an image and a prompt #
GET /motion/jobs Recent clips (an agent key sees its own) #
GET /motion/jobs/{id} Clip status and links #
POST /motion/jobs/{id}/start Start a clip after its image upload #
POST /motion/jobs/{id}/cancel Cancel a clip whose image was never uploaded #

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/phoenixlabs-space:phoenixlabs-space-motion-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

phoenixlabs-space-motion-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Phoenix Labs Motion API
  version: 1.0.0
  summary: Restore old video in the cloud, and turn still images into video clips with sound.
  description: 'Prices are real US dollars. Motion clips and balance-paid restores spend the Phoenix balance behind the key in `Authorization: Bearer`: the owner''s wallet key (pmk_…) or an agent key (pak_…) the owner made with a spending limit. Restores can instead be paid per job through a Lemon Squeezy checkout link, with no key. Files go straight to storage: create the job, PUT the file to `upload_url` with `upload_headers`, then start it. AI agents can use the same operations as MCP tools at https://api.phoenixlabs.space/mcp. Guide: https://phoenixlabs.space/developers'
  contact:
    email: support@phoenixlabs.space
    url: https://phoenixlabs.space/developers
  termsOfService: https://phoenixlabs.space/terms
servers:
- url: https://api.phoenixlabs.space
tags:
- name: Motion
paths:
  /motion/config:
    get:
      operationId: motionConfig
      summary: Clip sizes, prices and limits
      tags:
      - Motion
      responses:
        '200':
          description: Sizes with prices, top-up range, limits.
          content:
            application/json:
              schema:
                type: object
  /motion/quote:
    get:
      operationId: quoteClip
      summary: Price one clip
      tags:
      - Motion
      parameters:
      - name: size
        in: query
        schema:
          type: string
          enum:
          - 480p
          - 720p
      responses:
        '200':
          description: The price.
          content:
            application/json:
              schema:
                type: object
  /motion/jobs:
    post:
      operationId: makeClip
      summary: Make a clip from an image and a prompt
      tags:
      - Motion
      security:
      - walletKey: []
      description: Pass image_url to start at once. Otherwise give content_type, PUT the image to upload_url, then call /start. The price is held from the balance and refunded if the clip fails or is refused.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - prompt
              properties:
                prompt:
                  type: string
                  maxLength: 800
                image_url:
                  type: string
                content_type:
                  type: string
                  enum:
                  - image/jpeg
                  - image/png
                  - image/webp
                image_bytes:
                  type: integer
                size:
                  type: string
                  enum:
                  - 480p
                  - 720p
                  default: 480p
                seconds:
                  type: integer
                  enum:
                  - 5
                loop:
                  type: boolean
                seed:
                  type: integer
      responses:
        '200':
          description: The clip (and upload_url when no image_url was given).
          content:
            application/json:
              schema:
                type: object
                properties:
                  job:
                    $ref: '#/components/schemas/Clip'
                  upload_url:
                    type: string
                  wallet:
                    $ref: '#/components/schemas/Wallet'
        '400':
          description: Bad input. `detail` says what to fix.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or unrecognised key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The balance, or the agent key's limit, doesn't cover the price. `needs_topup` or `over_limit` says which.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The prompt breaks the content rule. Nothing was charged.
    get:
      operationId: listClips
      summary: Recent clips (an agent key sees its own)
      tags:
      - Motion
      security:
      - walletKey: []
      responses:
        '200':
          description: Up to 40 clips, newest first.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad input. `detail` says what to fix.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or unrecognised key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The balance, or the agent key's limit, doesn't cover the price. `needs_topup` or `over_limit` says which.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /motion/jobs/{id}:
    get:
      operationId: getClip
      summary: Clip status and links
      tags:
      - Motion
      security:
      - walletKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The clip; video_url and download_url once done.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad input. `detail` says what to fix.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or unrecognised key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The balance, or the agent key's limit, doesn't cover the price. `needs_topup` or `over_limit` says which.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /motion/jobs/{id}/start:
    post:
      operationId: startClip
      summary: Start a clip after its image upload
      tags:
      - Motion
      security:
      - walletKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The clip, queued.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad input. `detail` says what to fix.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or unrecognised key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The balance, or the agent key's limit, doesn't cover the price. `needs_topup` or `over_limit` says which.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /motion/jobs/{id}/cancel:
    post:
      operationId: cancelClip
      summary: Cancel a clip whose image was never uploaded
      tags:
      - Motion
      security:
      - walletKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The clip, cancelled and refunded.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad input. `detail` says what to fix.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or unrecognised key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: The balance, or the agent key's limit, doesn't cover the price. `needs_topup` or `over_limit` says which.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Clip:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - awaiting_upload
          - queued
          - processing
          - done
          - failed
          - refused
          - expired
          - cancelled
        size:
          type: string
        seconds:
          type: integer
        prompt:
          type: string
        loop:
          type: boolean
        amount_cents:
          type: integer
        seed:
          type:
          - integer
          - 'null'
        video_url:
          type: string
        download_url:
          type: string
        error:
          type:
          - string
          - 'null'
    Wallet:
      type: object
      properties:
        wallet_id:
          type: string
        balance_cents:
          type: integer
        spendable_cents:
          type: integer
        paused:
          type: boolean
        email:
          type: string
          description: Only shown to the wallet key.
        agent_key:
          $ref: '#/components/schemas/AgentKey'
    Error:
      type: object
      properties:
        detail:
          type: string
        needs_topup:
          type: boolean
        over_limit:
          type: boolean
        refused:
          type: string
          description: Content-rule refusal code.
    AgentKey:
      type: object
      properties:
        id:
          type: string
        label:
          type: string
        limit_cents:
          type: integer
        spent_cents:
          type: integer
        remaining_cents:
          type: integer
        created_at:
          type: string
        last_used_at:
          type:
          - string
          - 'null'
        revoked:
          type: boolean
  securitySchemes:
    walletKey:
      type: http
      scheme: bearer
      description: A wallet key (pmk_…) or an agent key (pak_…).
externalDocs:
  url: https://phoenixlabs.space/developers