> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Agent Payments

> A 4-part video series on the machine economy: how to monetize an API with HTTP 402, and how AI agents pay for APIs and services on Solana.

Learn how AI agents pay for APIs on Solana, and how to charge for one with
HTTP 402. Read the [Agentic Payments guide](/developers/docs/payments/agentic-payments).

<div className="sol-facts">
  **Runtime:** \~27 min · 4 videos
</div>

<div className="sol-video-modal">
  <Columns cols={2}>
    <Card title="x402 on Solana Explained" href="https://youtu.be/_9GgqqVCK2s" img="https://i.ytimg.com/vi/_9GgqqVCK2s/mqdefault.jpg">
      **Chapter 1 · 4:12**

      Explains how the x402 protocol works on Solana so agents can pay for resources directly.
    </Card>

    <Card title="Why Agents Can't Use Credit Cards" href="https://youtu.be/Dk8qazM1i-w" img="https://i.ytimg.com/vi/Dk8qazM1i-w/mqdefault.jpg">
      **Chapter 2 · 4:56**

      Why card payments don't fit autonomous agents, and the approach that does.
    </Card>

    <Card title="Monetize an API with HTTP 402" href="https://youtu.be/GeUMZx2GOSk" img="https://i.ytimg.com/vi/GeUMZx2GOSk/mqdefault.jpg">
      **Chapter 3 · 7:57**

      Puts an API behind HTTP 402 so callers pay per request.
    </Card>

    <Card title="Pay.sh: Agent Payments and Integrations" href="https://youtu.be/HoTnSjbMFHk" img="https://i.ytimg.com/vi/HoTnSjbMFHk/mqdefault.jpg">
      **Chapter 4 · 9:54**

      Shows an AI agent paying for services with Pay.sh, plus the integrations that support it.
    </Card>
  </Columns>
</div>

<Card title="Next up: Pay.sh Course" href="/developers/docs/video-guides/pay-sh-video-tutorials" icon="arrow-right" horizontal />
