AI Payment Proxy is a standard REST API. Connect via Telegram in 60 seconds — no code required — or integrate directly into any agent platform that supports HTTP calls.
The fastest way to create virtual cards — no code required. Any Telegram user can connect their AIPP API key and start issuing cards in 60 seconds.
Open Telegram and search for @AIpaymentproxybot
Type /start — the bot walks you through setup
Paste your API key from aipaymentproxy.com/dashboard/api-keys
Type /newcard and follow the prompts — card issued instantly
# No code required — just Telegram commands /start # Bot: Welcome! Paste your AIPP API key to get started. aipp_live_YOUR_KEY_HERE # Bot: ✅ API key connected! You're all set. /newcard # Bot: What spending limit? (e.g. 10 or 25.50) 25 # Bot: What label for this card? Amazon order # Bot: ✅ Virtual Card Created! # 💳 4000000999000062 # 📅 Exp: 4/2029 🔐 CVC: 123 # 🏷 Label: Amazon order # 💰 Limit: $25 /cancel CARD_ID # Bot: ✅ Card canceled successfully
Use Claude's native tool calling to give your AI agent full payment capability. Works with Claude 3.5 Sonnet, Opus, and any model that supports tools.
Get your API key from aipaymentproxy.com/dashboard/api-keys
Define the three payment tools in your Claude API call
Add the system prompt telling Claude when to use them
Claude handles create → reveal → purchase → cancel autonomously
import anthropic
client = anthropic.Anthropic()
tools = [
{
"name": "create_payment_card",
"description": "Create a single-use virtual Visa card with a spending limit",
"input_schema": {
"type": "object",
"properties": {
"label": {"type": "string", "description": "What the card is for"},
"limit_usd": {"type": "number", "description": "Spending limit in USD"}
},
"required": ["limit_usd"]
}
},
{
"name": "reveal_card",
"description": "Get card number, CVV and expiry to use at checkout ($0.50 fee)",
"input_schema": {
"type": "object",
"properties": {
"card_id": {"type": "string", "description": "Card ID from create_payment_card"}
},
"required": ["card_id"]
}
},
{
"name": "cancel_card",
"description": "Cancel the card after purchase is complete",
"input_schema": {
"type": "object",
"properties": {
"card_id": {"type": "string", "description": "Card ID to cancel"}
},
"required": ["card_id"]
}
}
]
AIPP_API_KEY = "aipp_live_YOUR_KEY_HERE"
import requests
def handle_tool(name, inputs):
headers = {"Authorization": f"Bearer {AIPP_API_KEY}", "Content-Type": "application/json"}
if name == "create_payment_card":
r = requests.post("https://aipaymentproxy.com/api/v1/cards", headers=headers, json=inputs)
return r.json()
if name == "reveal_card":
r = requests.get(f"https://aipaymentproxy.com/api/v1/cards/{inputs['card_id']}", headers=headers)
return r.json()
if name == "cancel_card":
r = requests.delete(f"https://aipaymentproxy.com/api/v1/cards/{inputs['card_id']}", headers=headers)
return r.json()
response = client.messages.create(
model="claude-opus-4-5",
max_tokens=1024,
tools=tools,
system="You are a purchasing agent. When asked to buy something, use create_payment_card with the exact amount, then reveal_card to get credentials, complete the purchase, then cancel_card.",
messages=[{"role": "user", "content": "Order me a burrito on DoorDash, keep it under $20"}]
)Add AI Payment Proxy as a GPT Action in minutes. Paste the OpenAPI spec into the GPT builder and your custom GPT can issue cards instantly.
Go to chat.openai.com → Explore GPTs → Create
Click Configure → Add actions
Paste the OpenAPI schema below
Add your API key as a Bearer token in authentication
openapi: 3.0.0
info:
title: AI Payment Proxy
version: 1.0.0
description: Issue single-use virtual Visa cards for AI agent purchases
servers:
- url: https://aipaymentproxy.com
paths:
/api/v1/cards:
post:
operationId: createCard
summary: Create a virtual card
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [limit_usd]
properties:
label:
type: string
description: Human-readable label
limit_usd:
type: integer
description: Spending limit in USD
responses:
'200':
description: Card created successfully
get:
operationId: listCards
summary: List all cards
responses:
'200':
description: List of cards
/api/v1/cards/{id}:
get:
operationId: revealCard
summary: Reveal card number and CVV
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Card credentials
delete:
operationId: cancelCard
summary: Cancel a card
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Card canceledWire AI Payment Proxy into any n8n workflow using HTTP Request nodes. Trigger card creation from webhooks, schedules, Gmail, Slack, or any of n8n's 400+ integrations.
Add an HTTP Request node to your workflow
Set method to POST, URL to https://aipaymentproxy.com/api/v1/cards
Add header: Authorization: Bearer YOUR_API_KEY
Set body to JSON with label and limit_usd
// n8n HTTP Request node settings
{
"method": "POST",
"url": "https://aipaymentproxy.com/api/v1/cards",
"headers": {
"Authorization": "Bearer aipp_live_YOUR_KEY_HERE",
"Content-Type": "application/json"
},
"body": {
"label": "{{ $json.purchase_description }}",
"limit_usd": "{{ $json.amount }}"
}
}
// Then chain a second HTTP Request node to reveal the card:
{
"method": "GET",
"url": "https://aipaymentproxy.com/api/v1/cards/{{ $json.data.id }}",
"headers": {
"Authorization": "Bearer aipp_live_YOUR_KEY_HERE"
}
}
// Use the card credentials in downstream nodes (checkout automation, etc.)
// Finally cancel the card:
{
"method": "DELETE",
"url": "https://aipaymentproxy.com/api/v1/cards/{{ $json.data.id }}",
"headers": {
"Authorization": "Bearer aipp_live_YOUR_KEY_HERE"
}
}Wrap the AI Payment Proxy API as a LangChain Tool and drop it into any agent executor, ReAct chain, or LangGraph workflow.
Install the requests library if not already installed
Define the three tools as LangChain Tool objects
Pass them to your AgentExecutor
The agent decides when to create, reveal, and cancel cards
from langchain.tools import Tool
from langchain.agents import AgentExecutor, create_react_agent
from langchain_anthropic import ChatAnthropic
import requests
AIPP_KEY = "aipp_live_YOUR_KEY_HERE"
HEADERS = {"Authorization": f"Bearer {AIPP_KEY}", "Content-Type": "application/json"}
def create_card(input: str) -> str:
"""Input format: 'label,amount' e.g. 'Amazon order,50'"""
parts = input.split(",")
label = parts[0].strip()
amount = int(parts[1].strip())
r = requests.post("https://aipaymentproxy.com/api/v1/cards",
headers=HEADERS,
json={"label": label, "limit_usd": amount})
return str(r.json())
def reveal_card(card_id: str) -> str:
r = requests.get(f"https://aipaymentproxy.com/api/v1/cards/{card_id.strip()}",
headers=HEADERS)
return str(r.json())
def cancel_card(card_id: str) -> str:
r = requests.delete(f"https://aipaymentproxy.com/api/v1/cards/{card_id.strip()}",
headers=HEADERS)
return str(r.json())
tools = [
Tool(name="create_payment_card",
func=create_card,
description="Create a virtual card. Input: 'label,amount_usd'"),
Tool(name="reveal_card",
func=reveal_card,
description="Get card number and CVV. Input: card_id string"),
Tool(name="cancel_card",
func=cancel_card,
description="Cancel a card after use. Input: card_id string"),
]
llm = ChatAnthropic(model="claude-opus-4-5")
agent = create_react_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
executor.invoke({"input": "Buy the cheapest USB-C cable on Amazon under $15"})If it can make an HTTP request with a Bearer token, it works with AI Payment Proxy. Check the API docs or email us.