post https://api.messari.io/ai/v1/chat/completions
Recipes
🤖
AI - Copilot Chat Completion
Open Recipe
The AI ToolKit's Chat Completion endpoint is used for generating contextual crypto responses using Messari's knowledge graph and specialized tools. It follows OpenAI's chat completions API specification for easy integration.
If you'd like to play around with the responses feel free to try on the Messari web-app, it uses the same underlying endpoint implementation.
The chat completion endpoint leverages a graph architecture with agents to:
- Access Messari's real-time quantitative (compute) dataset which includes but is not limited to:
- Market data, Asset metrics, Fundraising, Token unlocks
- Access Messari's qualitative (search) dataset which includes but is not limited to:
- News, Blogs, Youtube transcriptions, RSS-feeds, Twitter
- Webcrawl documents
- Proprietary datasets of: Research, Quarterlies, Diligence Reports
- Generate market insights and analysis
- Process natural language queries about crypto assets, protocols and projects
For a more interactive experience trying out the API, here is our Replit in Typescript. Simply populate theAPI_KEY
field with your Enterprise API key generated in the Messari Account > API page of our webapp and you're off!
Example Request Payload (Add API key to header)
{
"messages": [
{
"role": "system",
"content": "When discussing token models and tokenomics: Explain mechanics in clear, simple terms without jargon, focus on the relationship between tokens and their roles in the ecosystem, break down economic incentives and game theory"
},
{
"role": "user",
"content": "Tell me about Berachain's two token model and how the $BERA token works with $BGT"
}
],
"verbosity": "verbose",
"response_format": "markdown"
}
Note: we support message roles ofuser
and system
but not assistant
.