- Getting Started
- General
- Artificial Intelligence
- Administration
Chat Completions
POST
https://api.rimunace.xyz/v1/chat/completions
AIAPIv1
Last modified:2025-03-23 04:25:48
Maintainer:Respire
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Authorization
string
required
Example:
Bearer {{api-key}}
Body Params application/json
model
string
required
stream
boolean
optional
messages
array [object {6}]
required
role
string
required
Examples:
systemuserassistanttool
content
string
required
name
string
optional
tool_call_id
string
optional
tool_calls
array [object {3}]
optional
function_call
object | null
deprecated
Example
{
"model": "claude-3-7-sonnet-20250219",
"stream": false,
"messages": [
{
"role": "user",
"content": "hi"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.rimunace.xyz/v1/chat/completions' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-3-7-sonnet-20250219",
"stream": false,
"messages": [
{
"role": "user",
"content": "hi"
}
]
}'
Responses
🟢200Success
application/json
Body
id
string
required
object
string
required
created
integer
required
model
string
required
choices
array [object {4}]
required
index
integer
optional
message
object
optional
logprobs
null
optional
finish_reason
string
optional
usage
object
optional
prompt_tokens
integer
optional
completion_tokens
integer
optional
total_tokens
integer
optional
prompt_tokens_details
object | null
optional
prompt_cache_hit_tokens
integer
optional
prompt_cache_miss_tokens
integer
optional
system_fingerprint
string | null
optional
Example
{
"id": "488d0f62-d0e8-43c0-927e-79f791680886",
"object": "chat.completion",
"created": 1739725604,
"model": "deepseek-chat",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I assist you today? 😊"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 4,
"completion_tokens": 11,
"total_tokens": 15,
"prompt_tokens_details": {
"cached_tokens": 0
},
"prompt_cache_hit_tokens": 0,
"prompt_cache_miss_tokens": 4
},
"system_fingerprint": "fp_3a5770e1b4"
}