LLMs
Chat completions
Changed onCreate 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
- Base URLhttps://api.case.dev
- URLhttps://api.case.dev/llm/v1/chat/completions
- AuthHTTP bearer
Headers
ai-reporting-userstring
Stable internal user or customer identifier for AI Gateway cost reporting.
ai-reporting-tagsstring
Comma-separated AI Gateway reporting tags. At most 10 unique tags, each 1–64 characters.
Request body
Example request
{
"model": "casemark/core-large",
"max_tokens": 1000,
"temperature": 0.7
}Response
Successful completion response
Example response
{
"object": "chat.completion"
}Changes
- info
added the new optional
headerrequest parameterai-reporting-tags - info
added the new optional
headerrequest parameterai-reporting-user
- info