Sumvid Agent API

Pay-per-call, synchronous endpoints for autonomous agents. No account or API key — payment is via the x402 protocol (HTTP 402 + USDC on Base). The summary/transcript is returned inline; a failed request is never charged.

GitHub OpenAPI

Operations 6

GET /.well-known/x402 X402 Well Known #
GET /.well-known/x402.json X402 Discovery #
POST /v1/summarize Agent Summarize #
POST /v1/transcript Agent Transcript #
POST /v1/channel/new Agent Channel New #
POST /v1/json/format Agent Json Format #

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/sumvid-app:sumvid-app-agent-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

sumvid-app-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: summarize-vid Agent API
  description: YouTube video transcript summarizer (Claude Haiku).
  version: 0.6.0
  x-guidance: 'Paid agent calls are POST /v1/summarize, POST /v1/transcript, POST /v1/channel/new, and POST /v1/json/format. Send the request with no authorization to receive HTTP 402. The payment requirements are in the PAYMENT-REQUIRED header and the JSON body. Retry with a PAYMENT-SIGNATURE header. Prices are on each operation under x-payment-info. Discovery documents: GET /.well-known/x402 and GET /.well-known/x402.json.'
tags:
- name: Agent
  description: Pay-per-call, synchronous endpoints for autonomous agents. No account or API key — payment is via the x402 protocol (HTTP 402 + USDC on Base). The summary/transcript is returned inline; a failed request is never charged.
paths:
  /.well-known/x402:
    get:
      tags:
      - Agent
      summary: X402 Well Known
      description: 'x402scan compatibility discovery document. Lists the paid resource URLs

        from the SKU registry (`version` 1, absolute URLs). Prices live on

        `/.well-known/x402.json`, `/openapi.json`, and the live 402, all generated

        from the same SKUs. Returns 503 when payments are disabled.'
      operationId: x402_well_known__well_known_x402_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security: []
  /.well-known/x402.json:
    get:
      tags:
      - Agent
      summary: X402 Discovery
      description: 'x402 discovery manifest. Advertises the pay-per-call `/v1` endpoints

        (price, network, USDC asset, receiving address), each marked `discoverable`,

        so agents browsing an x402 directory / the Bazaar can find and pay for them

        automatically — no human onboarding. Generated from the live payment config,

        so it can''t drift from the actual 402 responses. Returns 503 when payments

        are disabled (`X402_PAY_TO` unset), matching the `/v1` routes.'
      operationId: x402_discovery__well_known_x402_json_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security: []
  /v1/summarize:
    post:
      tags:
      - Agent
      summary: Agent Summarize
      description: 'Summarize a YouTube video and return it inline. Pay-per-call via x402

        (no account/key). Runs synchronously: transcript fetch (if new) + Claude

        Haiku, answered from the shared cache when possible. Payment settles only on

        success — a bad URL, missing captions, or model error returns an error and

        is never charged.'
      operationId: agent_summarize_v1_summarize_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SummarizeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSummaryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '402':
          description: Payment required. The JSON body is the x402 PaymentRequired object, identical to the PAYMENT-REQUIRED response header.
      x-payment-info:
        protocols:
        - x402: {}
        price:
          mode: fixed
          currency: USD
          amount: '0.030000'
        scheme: exact
        network: eip155:8453
        amount: '30000'
        maxAmountRequired: '30000'
        asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
        payTo: '0x9036fF40101eeff4Cb8A377d59e9432819b5d420'
  /v1/transcript:
    post:
      tags:
      - Agent
      summary: Agent Transcript
      description: 'Return a video''s raw transcript inline (the cheaper SKU — no model run).

        Pay-per-call via x402. The transcript is fetched once and cached, so repeat

        calls for the same video don''t re-hit YouTube. Charged only on success.'
      operationId: agent_transcript_v1_transcript_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SummarizeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentTranscriptResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '402':
          description: Payment required. The JSON body is the x402 PaymentRequired object, identical to the PAYMENT-REQUIRED response header.
      x-payment-info:
        protocols:
        - x402: {}
        price:
          mode: fixed
          currency: USD
          amount: '0.003000'
        scheme: exact
        network: eip155:8453
        amount: '3000'
        maxAmountRequired: '3000'
        asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
        payTo: '0x9036fF40101eeff4Cb8A377d59e9432819b5d420'
  /v1/channel/new:
    post:
      tags:
      - Agent
      summary: Agent Channel New
      description: 'New videos on a YouTube channel since the caller''s cursor. Pay-per-call

        via x402 (no account/key). Stateless: we hold no per-caller watch state —

        the agent supplies its own cursor (a video id or timestamp) and we answer

        from YouTube''s public channel feed (`youtube_feed`). No jobs-ledger row (a

        poll has no video to attach one to), but it does write an x402_payments

        row (see below) so this SKU isn''t invisible in Postgres; wallet-level

        reconciliation also logs payer/amount via `_register_reconciliation_hooks`.

        Charged only on success — an unresolvable channel or a malformed cursor is

        never charged.'
      operationId: agent_channel_new_v1_channel_new_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentChannelRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentChannelResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '402':
          description: Payment required. The JSON body is the x402 PaymentRequired object, identical to the PAYMENT-REQUIRED response header.
      x-payment-info:
        protocols:
        - x402: {}
        price:
          mode: fixed
          currency: USD
          amount: '0.002000'
        scheme: exact
        network: eip155:8453
        amount: '2000'
        maxAmountRequired: '2000'
        asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
        payTo: '0x9036fF40101eeff4Cb8A377d59e9432819b5d420'
  /v1/json/format:
    post:
      tags:
      - Agent
      summary: Agent Json Format
      description: 'Validate raw JSON and return it pretty-printed or minified. Pay-per-call

        via x402 (no account/key). No jobs-ledger row — there is no video to attach

        one to — but a successful call writes an x402_payments row. Invalid JSON

        (400, with line and column) and an input over 1 MB (413) are never charged.'
      operationId: agent_json_format_v1_json_format_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JsonFormatRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonFormatResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '402':
          description: Payment required. The JSON body is the x402 PaymentRequired object, identical to the PAYMENT-REQUIRED response header.
      x-payment-info:
        protocols:
        - x402: {}
        price:
          mode: fixed
          currency: USD
          amount: '0.010000'
        scheme: exact
        network: eip155:8453
        amount: '10000'
        maxAmountRequired: '10000'
        asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
        payTo: '0x9036fF40101eeff4Cb8A377d59e9432819b5d420'
components:
  schemas:
    AgentChannelRequest:
      properties:
        channel:
          type: string
          title: Channel
        since_video_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Since Video Id
        since:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Since
      type: object
      required:
      - channel
      title: AgentChannelRequest
    AgentTranscriptResponse:
      properties:
        youtube_video_id:
          type: string
          title: Youtube Video Id
        transcript:
          type: string
          title: Transcript
        language_code:
          type: string
          title: Language Code
          default: en
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        channel:
          anyOf:
          - type: string
          - type: 'null'
          title: Channel
        thumbnail_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Thumbnail Url
        duration_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Duration Seconds
      type: object
      required:
      - youtube_video_id
      - transcript
      title: AgentTranscriptResponse
    AgentChannelResponse:
      properties:
        channel_id:
          type: string
          title: Channel Id
        channel_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Channel Title
        videos:
          items:
            $ref: '#/components/schemas/ChannelVideo'
          type: array
          title: Videos
        newest_video_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Newest Video Id
        cursor_found:
          type: boolean
          title: Cursor Found
      type: object
      required:
      - channel_id
      - videos
      - cursor_found
      title: AgentChannelResponse
    AgentSummaryResponse:
      properties:
        youtube_video_id:
          type: string
          title: Youtube Video Id
        summary:
          type: string
          title: Summary
        model:
          type: string
          title: Model
        cached:
          type: boolean
          title: Cached
        language_code:
          type: string
          title: Language Code
          default: en
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        channel:
          anyOf:
          - type: string
          - type: 'null'
          title: Channel
        thumbnail_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Thumbnail Url
        duration_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Duration Seconds
      type: object
      required:
      - youtube_video_id
      - summary
      - model
      - cached
      title: AgentSummaryResponse
    SummarizeRequest:
      properties:
        url:
          type: string
          title: Url
        max_credits:
          type: integer
          maximum: 10000.0
          minimum: 0.0
          title: Max Credits
          default: 1
        language:
          anyOf:
          - type: string
          - type: 'null'
          title: Language
      type: object
      required:
      - url
      title: SummarizeRequest
    ChannelVideo:
      properties:
        video_id:
          type: string
          title: Video Id
        url:
          type: string
          title: Url
        title:
          type: string
          title: Title
        published_at:
          type: string
          format: date-time
          title: Published At
      type: object
      required:
      - video_id
      - url
      - title
      - published_at
      title: ChannelVideo
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    JsonFormatResponse:
      properties:
        text:
          type: string
          title: Text
        pretty:
          type: boolean
          title: Pretty
        sort_keys:
          type: boolean
          title: Sort Keys
      type: object
      required:
      - text
      - pretty
      - sort_keys
      title: JsonFormatResponse
    JsonFormatRequest:
      properties:
        text:
          type: string
          title: Text
        pretty:
          type: boolean
          title: Pretty
          default: true
        sort_keys:
          type: boolean
          title: Sort Keys
          default: false
      type: object
      required:
      - text
      title: JsonFormatRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer