Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Chat API

POSThttps://cortex-api.moralis.io/chat

Interact with Moralis Cortex AI to get blockchain insights, analysis, and answers to Web3-related questions.

BODY PARAM
Request Bodyobjectrequired
Complete request body as JSON object. Paste your request body or modify the example below.
Responses
200When `stream` is `false`
defaultWhen `stream` is `true`
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request POST \
--url 'https://cortex-api.moralis.io/chat' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '
{
"prompt": "Provide a detailed analysis of PEPE holders, is the trend bullish or bearish?",
"model": "gpt-4.1-mini",
"stream": false
}
'
Response Example
{
"text": ""
}