Introduction
Cyan is the payment layer for AI agents. Add a checkout to your agent with one API call. Customers pay in the chat, and the money goes straight to your Stripe account.
Pay in the demo with a test card:
| Card that passes | 4242 4242 4242 4242 | |
|---|---|---|
| Card that fails | 4000 0000 0000 0002 | |
| Expiration date | 12 / 34 | |
| Security code | 123 | |
| ZIP code | 12345 |
Take your first payment
Section titled “Take your first payment”In about five minutes you’ll create a payment link, pay it with a test card, and watch it turn paid. All you need is a Stripe account.
-
Connect your Stripe account
In the Cyan app, open Settings → Connectors and select Connect with Stripe. Choose the Stripe account your payments should land in.
-
Get your API key
Open API keys and select Create API key. Copy the key and keep it somewhere safe: you’ll only see it once.
export CYAN_API_KEY="cyan_test_..." -
Create a payment link
Ask for $49 for a logo design. Amounts are in cents, and the
Idempotency-Keymakes a retry return the same link:const response = await fetch("https://api.cyan.cash/v1/payment-links", {method: "POST",headers: {Authorization: `Bearer ${process.env.CYAN_API_KEY}`,"Idempotency-Key": "first-payment","Content-Type": "application/json",},body: JSON.stringify({amount: 4900,description: "Logo design",}),});const link = await response.json();You get back the link:
{"id": "pl_019d0a1b2c3d4e5f60718293a4b5c6d7","amount": 4900,"currency": "USD","description": "Logo design","customer_name": null,"status": "pending","url": "https://pay.cyan.cash/pl_019d0a1b2c3d4e5f60718293a4b5c6d7","created_at": "2026-12-05T17:40:12.000Z"}urlis the checkout. Send it to your customer, or show it in your chat with the widget. -
Pay it
Open
urlin your browser and pay with the test card4242 4242 4242 4242, any future date and any CVC. -
See it paid
Read the link back. Its
statusis nowpaid.const response = await fetch(`https://api.cyan.cash/v1/payment-links/${link.id}`, {headers: { Authorization: `Bearer ${process.env.CYAN_API_KEY}` },});const current = await response.json();console.log(current.status); // "paid"The payment is also in the app under Transactions, and in your Stripe Dashboard.
Build with your agent
Section titled “Build with your agent”Paste this into Claude Code, Cursor or any coding agent:
Read https://docs.cyan.cash/llms-full.txt, then add a Cyan checkout to our chat.Or connect the docs over MCP. See Build with AI for more.