Api Reference
Post Openai Chat Completions
model?string
Default
"kirha:crypto"
Value in
"kirha:crypto" | "kirha-flash:crypto"
messagesarray<object>
stream?boolean
Default
false
temperature?number
Range
0 <= value <= 2
top_p?number
Range
0 <= 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"
}
]
}