AI chat
POST/x402/v2/chat
Send a message to the Elfa AI and receive a complete response. Suited for agents and integrations that do not support server-sent events (SSE).
Analysis types and required fields:
chat(default) — general conversation. Requiresmessage.macro— macro market overview. Nomessageneeded.summary— quick market summary. Nomessageneeded.tokenIntro— token introduction. RequiresassetMetadatawithsymbol, orchain+contractAddress.tokenAnalysis— token trade setup analysis. SameassetMetadatarequirements astokenIntro.accountAnalysis— Twitter/X account analysis. RequiresassetMetadata.username.
message is only used for analysisType: "chat" and is ignored for other
analysis types. adaptive speed is not available on x402.
Send includeSources: true to receive data.sources: the links the
research behind the answer read, with a kind each. Links only: page and
post content is not returned.
assetMetadata fields (when applicable):
symbol— token ticker symbol (e.g."BTC","$ETH")chain— blockchain name (e.g."ethereum","solana")contractAddress— token contract addressusername— Twitter/X username for account analysis
Cost: speed based. Pay a flat price per turn with the exact scheme
(fast $1, expert $2). Where the 402 also lists batch-settlement
(Base), you can instead deposit once into a payment channel: each turn is
then capped at fast $2 / expert $6 and charged only what it cost.
Requires x402 payment.
Request
Responses
- 200
- 400
- 402
Ok
Invalid request
Payment required (x402)