{
  "x402Version": 2,
  "id": 26903,
  "slug": "26903",
  "resource": "https://www.trezalabs.com/api/x402/clip",
  "description": "Clip a YouTube video: send a link, get its most shareable 30 to 60 second moment back as a captioned clip, cut on the speaker in 9:16 (or 4:5, 1:1, 16:9), with a title and caption to post it with. Priced by the source's length, from $0.04 (about $0.45 for an hour), up to 2 hours. No account or API key: the payment is the only credential.",
  "type": "http",
  "serviceName": "Treza",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xe8dC41F9e675Ba8340140c99180CFaEE65D4d160",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "120000",
      "amountUsd": 0.12,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "EX4MyYWHc7NKBGuytmMpxixM7ovSWYLNy5acN2mFfoGd",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "120000",
      "amountUsd": 0.12,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "aspectRatio": "9:16",
            "url": "https://www.youtube.com/watch?v=KtTXyBJ2N30"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "aspectRatio": "9:16",
            "outputs": {
              "moment": "{\"start\":\"00:12:03,120\",\"end\":\"00:12:51,400\",\"publish\":\"...\"}"
            },
            "paidUsd": 0.12,
            "runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
            "sourceMinutes": 12,
            "status": "success",
            "statusUrl": "https://www.trezalabs.com/api/x402/clip?runId=...&token=...",
            "transaction": "0x...",
            "video": "https://www.trezalabs.com/api/media/generated/x402_captions/1a2b3c4d.mp4?s=...&c=..."
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "aspectRatio": {
                    "default": "9:16",
                    "enum": [
                      "9:16",
                      "4:5",
                      "1:1",
                      "16:9"
                    ],
                    "type": "string"
                  },
                  "async": {
                    "default": false,
                    "description": "true: answer 202 with a statusUrl at once.",
                    "type": "boolean"
                  },
                  "url": {
                    "description": "A YouTube video link (watch page, Short, or youtu.be).",
                    "format": "uri",
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "video",
    "video-clipping",
    "youtube",
    "shorts",
    "captions",
    "bazaar"
  ],
  "sourceHost": "www.trezalabs.com",
  "lastUpdated": "2026-09-24T00:32:19.237Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-24T00:32:19.095Z"
  },
  "metadata": {
    "serviceName": "Treza",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "aspectRatio": "9:16",
              "url": "https://www.youtube.com/watch?v=KtTXyBJ2N30"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "aspectRatio": "9:16",
              "outputs": {
                "moment": "{\"start\":\"00:12:03,120\",\"end\":\"00:12:51,400\",\"publish\":\"...\"}"
              },
              "paidUsd": 0.12,
              "runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
              "sourceMinutes": 12,
              "status": "success",
              "statusUrl": "https://www.trezalabs.com/api/x402/clip?runId=...&token=...",
              "transaction": "0x...",
              "video": "https://www.trezalabs.com/api/media/generated/x402_captions/1a2b3c4d.mp4?s=...&c=..."
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "aspectRatio": {
                      "default": "9:16",
                      "enum": [
                        "9:16",
                        "4:5",
                        "1:1",
                        "16:9"
                      ],
                      "type": "string"
                    },
                    "async": {
                      "default": false,
                      "description": "true: answer 202 with a statusUrl at once.",
                      "type": "boolean"
                    },
                    "url": {
                      "description": "A YouTube video link (watch page, Short, or youtu.be).",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "www.trezalabs.com",
    "manifest_name": "www.trezalabs.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "aspectRatio": "9:16",
    "outputs": {
      "moment": "{\"start\":\"00:12:03,120\",\"end\":\"00:12:51,400\",\"publish\":\"...\"}"
    },
    "paidUsd": 0.12,
    "runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
    "sourceMinutes": 12,
    "status": "success",
    "statusUrl": "https://www.trezalabs.com/api/x402/clip?runId=...&token=...",
    "transaction": "0x...",
    "video": "https://www.trezalabs.com/api/media/generated/x402_captions/1a2b3c4d.mp4?s=...&c=..."
  }
}