Skip to main content

AI chat

POST 

/v2/chat

Plan Access
Grow and above, or PAYG
Data Recency
Not applicable to this endpoint
Rate Limit
60 to 120 RPM by plan

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).

Session management: omit sessionId to start a new conversation. The response includes a sessionId — pass it in subsequent requests to continue the same conversation.

Analysis types and required fields:

  • chat (default) — general conversation. Requires message.
  • macro — macro market overview. No message needed.
  • summary — quick market summary. No message needed.
  • tokenIntro — token introduction. Requires assetMetadata with symbol, or chain + contractAddress.
  • tokenAnalysis — token trade setup analysis. Same assetMetadata requirements as tokenIntro.
  • accountAnalysis — Twitter/X account analysis. Requires assetMetadata.username.

message is only used for analysisType: "chat" and is ignored for other analysis types.

Sources (opt-in): send includeSources: true to receive data.sources, the links the research behind the answer read (X posts, news, DEX and explorer pages, prediction markets), each with a kind. Links only: page and post content is not returned. A source was read, not necessarily cited in message. Without the flag the response is unchanged.

assetMetadata fields (when applicable):

  • symbol — token ticker symbol (e.g. "BTC", "$ETH")
  • chain — blockchain name (e.g. "ethereum", "solana")
  • contractAddress — token contract address
  • username — Twitter/X username for account analysis

Request​

Responses​

Ok