Priors Media API

The Media API from Priors — 3 operation(s) for media.

GitHub OpenAPI

Operations 3

POST /v1/media/image Priors image from a text prompt (Higgsfield Soul 2, 1080p, one image), under… #
POST /v1/media/video Priors 5-second video clip from a text prompt, or from an image Priors made… #
GET /v1/media/{id} A media id's status, and when done its output URLs and when they expire (free… #

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/priors-trade:priors-trade-media-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

priors-trade-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Priors paid Media API
  version: 1.2.0
  description: Credit records and scores of ERC-8004 agents on Priors, the credit protocol for AI agents on Robinhood Chain, the pool's and the stock vault's figures, and images and short video clips made to order under strict content rules.
  x-guidance: 'Each route has its own price in USDG, paid per call with x402 v2 (scheme exact, network eip155:4663, USDG 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168): GET /v1/report/{agentId} 0.03; GET /v1/score/{agentId} 0.03; GET /v1/file/{agentId} 0.10; GET /v1/explain/{agentId} 0.02; POST /v1/screen 0.05; GET /v1/wallet/{address} 0.03; GET /v1/income/{agentId} 0.03; GET /v1/pool/day 0.02; POST /v1/watch 0.03; GET /v1/late 0.02; GET /v1/backer/{agentId} 0.05; GET /v1/stock-line/{symbol} 0.02; GET /v1/stocks/holds 0.02; GET /v1/credit/{agentId} 0.03; POST /v1/media/image 0.05; POST /v1/media/video 0.45. GET /v1/score/{agentId} returns an agent''s Priors score (0 to 1000) and GET /v1/report/{agentId} its full credit report; GET /v1/file/{agentId} is the due-diligence file; POST /v1/screen and POST /v1/watch take {"agents": [...]}, 1 to 50 entries. Every route checks its input and its data before it asks for payment: a malformed input is a 400 and what Priors does not know a 404, with nothing charged. POST /v1/media/image ({"prompt", "aspect_ratio"}) and POST /v1/media/video ({"prompt", "duration": 5, "image_id"}) answer a media id at once; GET /v1/media/{id} is free and gives the output URLs when done. A prompt that breaks the content rules (real or named people, brands or logos, sexual, violent, hateful or political content, children, weapons, drugs) is a 422 before any payment, and so is one the content check refuses after the payment is signed: nothing settles. At the monthly limit the media routes answer 503 before any offer.'
  contact:
    email: contact@priors.trade
    url: https://priors.trade
servers:
- url: https://api.priors.trade
tags:
- name: Media
paths:
  /v1/media/image:
    post:
      operationId: mediaImage
      summary: Priors image from a text prompt (Higgsfield Soul 2, 1080p, one image), under…
      tags:
      - Media
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.050000'
        protocols:
        - x402: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - prompt
              additionalProperties: false
              properties:
                prompt:
                  type: string
                  minLength: 3
                  maxLength: 1000
                  description: 'What to make, in words: no real or named people, no brands or logos, nothing sexual, violent, hateful, political, no children, weapons or drugs (refused before payment, nothing charged)'
                aspect_ratio:
                  type: string
                  enum:
                  - '1:1'
                  - '16:9'
                  - '9:16'
                  - '4:3'
                  - '3:4'
                  - '3:2'
                  - '2:3'
                  default: '1:1'
      responses:
        '200':
          description: The image's media id and status (and its URL when already done)
          content:
            application/json:
              schema:
                type: object
        '400':
          description: 'The body is not {"prompt": "..."} with a text of 3 to 1000 characters and an aspect_ratio from the list (nothing is charged)'
        '402':
          description: 'Payment Required: 0.05 USDG, x402 v2 exact on eip155:4663 (asset 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168)'
        '422':
          description: The prompt breaks Priors' content rules (nothing is charged)
        '503':
          description: Media generation is not available, busy, or at its monthly limit (nothing is charged)
  /v1/media/video:
    post:
      operationId: mediaVideo
      summary: Priors 5-second video clip from a text prompt, or from an image Priors made…
      tags:
      - Media
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.450000'
        protocols:
        - x402: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - prompt
              additionalProperties: false
              properties:
                prompt:
                  type: string
                  minLength: 3
                  maxLength: 1000
                  description: 'What to make, in words: no real or named people, no brands or logos, nothing sexual, violent, hateful, political, no children, weapons or drugs (refused before payment, nothing charged)'
                duration:
                  type: integer
                  enum:
                  - 5
                  default: 5
                image_id:
                  type: string
                  pattern: ^med_[A-Za-z0-9_-]{32}$
                  description: 'An id answered by POST /v1/media/image, completed: the clip starts from that image'
      responses:
        '200':
          description: The clip's media id and status
          content:
            application/json:
              schema:
                type: object
        '400':
          description: 'The body is not {"prompt": "..."} with a text of 3 to 1000 characters, duration 5, and an optional image_id (nothing is charged)'
        '402':
          description: 'Payment Required: 0.45 USDG, x402 v2 exact on eip155:4663 (asset 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168)'
        '404':
          description: image_id is not an image Priors made (nothing is charged)
        '409':
          description: The image is not done yet, or did not complete (nothing is charged)
        '410':
          description: The image's output has expired (nothing is charged)
        '422':
          description: The prompt breaks Priors' content rules (nothing is charged)
        '503':
          description: Media generation is not available, busy, or at its monthly limit (nothing is charged)
  /v1/media/{id}:
    get:
      operationId: mediaStatus
      summary: A media id's status, and when done its output URLs and when they expire (free…
      tags:
      - Media
      parameters:
      - name: id
        in: path
        required: true
        description: A media id (med_...) answered by POST /v1/media/image or /v1/media/video
        schema:
          type: string
          pattern: ^med_[A-Za-z0-9_-]{32}$
      responses:
        '200':
          description: 'The status: queued, in_progress, completed (with output.urls and output.expiresAt), failed, refused or canceled'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: id is not a media id
        '404':
          description: No such media id