LLMs
Chat completions
Create a completion for the provided prompt and parameters. Compatible with OpenAI's chat completions API. Supports 40+ models including GPT-4, Claude, Gemini, and CaseMark legal AI models. Includes streaming support, token counting, and usage tracking.
post/llm/v1/chat/completions
Request body
Example request
{
"model": "casemark/core-large",
"max_tokens": 1000,
"temperature": 0.7
}Response
Successful completion response
Example response
{
"object": "chat.completion"
}