ai_chat
One-shot chat completion with an optional system prompt. Good for drafting, rewriting, brainstorming and simple reasoning. Max 1024 output tokens. 0.01 USDC per call via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Input text (max 20,000 characters) | |
| system | No | Optional system prompt | |
| maxTokens | No | ||
| paymentProof | No | Payment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof. |