Treza X402 API

The X402 API from Treza — 13 operation(s) for x402.

GitHub OpenAPI

Operations 19

POST /api/x402/video Generate a video from a prompt or a first frame, paid with x402 #
GET /api/x402/video Poll a video run bought with an x402 payment #
POST /api/x402/video/retry Render a failed pay-per-video run again, without paying twice #
POST /api/x402/speech Generate a voiceover from text (ElevenLabs), paid with x402 #
GET /api/x402/speech Poll a speech bought with an x402 payment, or read the menu #
POST /api/x402/speech/retry Generate a failed speech again, without paying twice #
POST /api/x402/music Generate an original music track (Lyria 3), paid with x402 #
GET /api/x402/music Poll a track bought with an x402 payment, or read the menu #
POST /api/x402/music/retry Generate a failed track again, without paying twice #
POST /api/x402/image Generate an image on one of eight models, paid with x402 #
GET /api/x402/image Poll a image bought with an x402 payment, or read the menu #
POST /api/x402/image/retry Generate a failed image again, without paying twice #
POST /api/x402/short Generate a finished narrated short from a topic, via x402 #
GET /api/x402/short Poll a short bought with an x402 payment, or read the menu #
POST /api/x402/short/retry Render a failed short again, without paying twice #
POST /api/x402/clip Generate a captioned short from a video file, via x402 #
GET /api/x402/clip Poll a clip bought with an x402 payment, or read the menu #
POST /api/x402/clip/retry Render a failed clip again, without paying twice #
GET /api/x402/purchases List the purchases a wallet paid for #

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/trezalabs-com:trezalabs-com-x402-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

trezalabs-com-x402-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Treza Pipelines X402 API
  description: 'Treza builds video pipelines from a description. Build pipelines that chain the best AI models (Veo 3.1, Seedance 2.5, Gemini Image, Llama, and any open model) with voiceover, captions, sequencing, and publishing, then call any published pipeline as an API.


    Two ways to call a published pipeline:

    - Typed invoke: POST /api/pipelines/{id}/invoke with JSON inputs matching the pipeline''s input contract. Returns a runId (HTTP 202); poll GET /api/pipelines/{id}/invoke?runId=... for status and outputs.

    - OpenAI-compatible: POST /api/pipelines/{id}/chat/completions works as a drop-in for any OpenAI SDK, streaming included. The latest user message feeds the pipeline and the output returns as the assistant message.


    Authentication uses scoped API keys (Bearer treza_live_...) created in the Treza platform or minted over MCP (create_api_key). The key must own the pipeline and the pipeline must be published. Starting a run needs the pipelines:run permission; polling one takes pipelines:read or pipelines:run. Billing is prepaid credits that work across every model; check the balance at GET /api/account/balance, and top up either via a human at the dashboard or, on deployments with x402 enabled, agent-natively at POST /api/billing/credits/x402.


    An MCP server is also available at https://www.trezalabs.com/api/mcp (streamable HTTP, OAuth 2.1) exposing tools to list, author, and publish pipelines, inspect runs, trigger new runs, check the credit balance, estimate run cost, and mint scoped API keys (create_api_key, for OAuth connections). Every one of those tools is also plain HTTP with an API key, listed below under /api/v1/tools/{name}: POST the tool''s arguments as the JSON body, with the same key. They list your pipelines, runs and media library, author and publish pipelines, run them, and assemble or edit media.'
  version: 3.0.0
  contact:
    name: Treza Support
    url: https://www.trezalabs.com/support
    email: hello@trezalabs.com
servers:
- url: https://www.trezalabs.com
  description: Production
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (154 KB total) ---
# Full source: https://artifacts.apis.io/trezalabs-com/openapi/trezalabs-com-x402-api-openapi.yml