kirha logo
Api Reference

Post Openai Chat Completions

POST
/v1/openai/chat/completions
model?string
Default"kirha:crypto"
Value in"kirha:crypto" | "kirha-flash:crypto"
messagesarray<object>
stream?boolean
Defaultfalse
temperature?number
Range0 <= value <= 2
top_p?number
Range0 <= value <= 1

Response Body

curl -X POST "https://api.kirha.ai/chat/v1/openai/chat/completions" \  -H "Content-Type: application/json" \  -d '{    "messages": [      {        "role": "system",        "content": "string"      }    ]  }'
{
  "id": "string",
  "object": "chat.completion",
  "created": 0,
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "system",
        "content": "string"
      },
      "finish_reason": "string"
    }
  ]
}