Skip to main content
POST

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Headers

ai-reporting-user
string

Stable internal user or customer identifier for AI Gateway cost reporting.

Maximum string length: 256
ai-reporting-tags
string

Comma-separated AI Gateway reporting tags. At most 10 unique tags, each 1–64 characters.

Body

application/json
messages
object[]
required

List of messages comprising the conversation

model
string

Model to use for completion. Defaults to casemark/core-large if not specified

Example:

"casemark/core-large"

max_tokens
integer

Maximum number of tokens to generate

Example:

1000

temperature
number

Sampling temperature between 0 and 2

Example:

0.7

stream
boolean

Whether to stream back partial progress

Example:

false

casemark_show_reasoning
boolean

CaseMark-only: controls whether reasoning fields appear in responses. Defaults to false (suppressed) for most CaseMark models; defaults to true for casemark/core-potassium.

Example:

false

top_p
number

Nucleus sampling parameter

frequency_penalty
number

Frequency penalty parameter

presence_penalty
number

Presence penalty parameter

Response

Successful completion response

id
string

Unique identifier for the completion

object
string
Example:

"chat.completion"

created
integer

Unix timestamp of completion creation

model
string

Model used for completion

choices
object[]
usage
object