Query parameters

  • stream boolean

    Enable streaming responses

    Default value is false.

application/json

Body Required

  • model string Required
  • messages array[object] Required
    Hide messages attributes Show messages attributes object
    • role string Required

      Values are user, assistant, or system.

    • content string Required

Responses

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": {}
}