Query parameters
-
stream boolean
Enable streaming responses
Default value is
false
.
POST
/v1/chat/completions
curl \
-X POST https://api.rimunace.xyz/v1/chat/completions \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"string","messages":[{"role":"user","content":"string"}]}'
Request examples
{
"model": "string",
"messages": [
{
"role": "user",
"content": "string"
}
]
}
Response examples (200)
{
"id": "string",
"object": "string",
"created": 42.0,
"choices": [
{
"message": {
"role": "string",
"content": "string"
},
"finish_reason": "string",
"index": 42
}
],
"usage": {}
}