Skip to main content
Glama

create_payment

Generate Lightning Network invoices to pay for AI services like image generation, text creation, and video production. Payment is required before accessing the selected AI tool.

Instructions

Create a Lightning invoice payment for using an AI service. Returns a Lightning invoice that must be paid before calling the service tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolNameYesThe name of the tool to pay for (e.g., 'generate_image', 'generate_video')
modelIdYesThe AI model database ID to use
quantityNoNumber of outputs/credits (default: 1)
additionalChargeNoAdditional charge in sats (optional)
phoneNumberNoRequired for send_sms and place_call: destination phone in E.164 format (e.g., +14155550100)
messageNoRequired for send_sms: message text (max 120 chars)
durationMinutesNoRequired for place_call with audioUrl: call duration in minutes (1-30). Defaults to 1 for TTS.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cnghockey/sats4ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server