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
| Name | Required | Description | Default |
|---|---|---|---|
| toolName | Yes | The name of the tool to pay for (e.g., 'generate_image', 'generate_video') | |
| modelId | Yes | The AI model database ID to use | |
| quantity | No | Number of outputs/credits (default: 1) | |
| additionalCharge | No | Additional charge in sats (optional) | |
| phoneNumber | No | Required for send_sms and place_call: destination phone in E.164 format (e.g., +14155550100) | |
| message | No | Required for send_sms: message text (max 120 chars) | |
| durationMinutes | No | Required for place_call with audioUrl: call duration in minutes (1-30). Defaults to 1 for TTS. |