How to pay with x402
get_payment_optionsWhat to pay, and where, to buy an llms.ink account (API key plus $5.00 of credit) or to add credit to the account of the API key in use, in USDC on Base with x402. This tool does not pay: it returns the exact x402 payment requirements (accepts) for an HTTP POST that an x402 client (for example x402-fetch) pays and sends with an X-PAYMENT header. Credit is 1.00 to 500 US dollars per top-up.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"purpose": "<purpose>"
},
"name": "get_payment_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cents | No | For "credits": how much to add, in US cents. | |
| purpose | Yes | "account": a new account with its own API key. "credits": more credit for the account of the API key in use. |