Generate chat completions in OpenAI format
Processes a conversation and returns an AI-generated response in OpenAI-compatible format. Consumes 5 credits per request.
post/ai/openai/chat/completions
Request
- Base URLhttps://api.messari.io
- AuthAPI key in header X-Messari-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Default response
Example response
{
"choices": [
{
"message": {
"role": "assistant"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.