generate_text
Generate text with frontier AI language models through Bitcoin Lightning micropayments. Supports document Q&A and vision analysis with no minimum or signup.
Instructions
Generate text using frontier AI language models. Pure per-character pricing (no minimum): Kimi K2.5 (id=6, best, 100 chars/sat, 262K context, vision support, default), GPT-OSS-120B (id=1, better, 333 chars/sat, strong reasoning), Qwen3-32B (id=26, standard, 1000 chars/sat, 119 languages, best value). Supports document Q&A via fileContext and vision analysis via imageBase64 (best model). Stable endpoints — models upgrade automatically. Pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='generate_text' and the exact prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | Valid payment ID (must be paid) | |
| prompt | Yes | The text prompt or question | |
| modelId | No | Optional. Omit for default (best) model. | |
| systemPrompt | No | Optional system prompt | |
| maxTokens | No | Max tokens in response | |
| fileContext | No | Extracted file text to include as context | |
| fileName | No | Name of the attached file | |
| imageBase64 | No | Base64 data URI for vision analysis (best model only) |