llm_chat
LLM chat completion per call — no account, no API key, no token math. Three flat-priced tiers: fast $0.002 (DeepSeek v4 Flash), smart $0.02 (GPT-5.4 mini), reasoning $0.03 (DeepSeek v4 Pro). Send OpenAI-style messages, get the assistant reply with finish_reason and token usage. Input capped per tier (16k-32k chars); the 402 quotes the exact tier price up front. Model or source unavailable means a 503 and you pay nothing. USDC on Base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Price tier: fast $0.002 (DeepSeek v4 Flash), smart $0.02 (GPT-5.4 mini), reasoning $0.03 (DeepSeek v4 Pro) | fast |
| messages | Yes | OpenAI-style chat messages; combined content capped at 16k chars (fast) or 32k chars (smart/reasoning) | |
| max_tokens | No | Output token cap; tier maxima: fast 1024 (default 512), smart 2048 (default 1024), reasoning 4096 (default 2048, minimum 256 — thinking tokens are spent first) | |
| temperature | No | Optional sampling temperature (0-2) |