Private LLM text completion (paid, x402)
chat_textGet the paid endpoint for OpenAI-compatible chat completions — frontier and open-weight models (DeepSeek, GPT, GLM, Qwen, Gemini, Llama, Kimi, Grok, Claude; list under textModels in GET /v1/agent/models). PAID call, two rails: x402 (endpoint answers 402, wallet settles, retry with PAYMENT-SIGNATURE → {choices, usage}) or account API key (x-api-key: lp_… — create at https://livepairai.com/dashboard/settings after signing up; bills prepaid credits, no 402). Price = estimated input tokens × input rate + max_tokens × output rate — set max_tokens tight to bill tight. Metering keeps token counts only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Text model id (default: deepseek/deepseek-v4-flash) | |
| payer | No | Your 0x… wallet — applies your volume-tier discount; must equal the wallet signing the payment | |
| prompt | Yes | The text request — your user message | |
| maxTokens | No | Output cap, billed at this amount (<= 8192, default 1024) |