# Recapfy Agents API > Pay-per-request API for AI agents: ask anything about a YouTube video or fetch its full transcript, paying per call in USDC on Solana via the x402 protocol. Recapfy exposes paid tools over YouTube videos. Each is an HTTP `POST`; calling without payment returns an HTTP 402 with the x402 v2 payment requirements in the `PAYMENT-REQUIRED` response header. Retry the same request with a `PAYMENT-SIGNATURE` header carrying the signed payment to receive the result (the settlement is returned in the `PAYMENT-RESPONSE` header). Payment is USDC on Solana, settled via an x402 facilitator. ## API - [OpenAPI specification](https://api.recapfy.ai/openapi/agents.json): Machine-readable schema for the agents API. - [x402 discovery manifest](https://api.recapfy.ai/.well-known/x402): Payment requirements (network, asset, price, recipient) for each paid endpoint. ## Endpoints - [Ask the agent](https://api.recapfy.ai/api/v1/agents/ask): POST a JSON body with `videoUrl` (YouTube) and `prompt`. Price is dynamic and calculated per call. Pay via x402 (USDC on Solana) to receive a JSON `answer`. - [Get transcript](https://api.recapfy.ai/api/v1/agents/get-transcript): POST a JSON body with `videoUrl` (YouTube). Flat price of $0.010 per call. Pay via x402 (USDC on Solana) to receive the full transcript.