Skip to main content
POST
/
ai
/
chat
/
claude
/
v1
/
messages
chat claude messages
curl --request POST \
  --url https://ai.pmock.com/api/ai/chat/claude/v1/messages \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "claude-opus-4-6",
  "messages": [
    "<unknown>"
  ],
  "maxTokens": 123,
  "system": "<unknown>",
  "stream": true,
  "temperature": 123,
  "topP": 123,
  "topK": 123,
  "stopSequences": [
    "<string>"
  ],
  "tools": [
    "<unknown>"
  ],
  "toolChoice": "<unknown>"
}
'
{}

Body

application/json
model
enum<string>
required

model

Available options:
claude-opus-4-6,
claude-haiku-4-5-20251001,
claude-sonnet-4-6
messages
any[]
required

messages

maxTokens
integer<int32>
required

Maximum token count

system
any

system prompt

stream
boolean
default:true

streaming output

temperature
number<double>

Temperature (0-1)

topP
number<double>

top P

topK
number<double>

top k

stopSequences
string[]

stopSequences

tools
any[]

Tool List (Function Calling)

toolChoice
any

Tool selection strategy

Response

200 - */*

OK

The response is of type object.