Skip to main content
POST
/
v1
/
chat
Chat completion (synchronous)
curl --request POST \
  --url https://api.rimp.io/v1/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "messages": [
    {
      "content": "<string>"
    }
  ],
  "max_tokens": 4000,
  "temperature": 1,
  "system_prompt": "<string>"
}
'
{
  "id": "<string>",
  "message": {
    "content": "<string>"
  },
  "charged_credits": 123,
  "refunded_credits": 123,
  "error_message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.rimp.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
messages
object[]
required
Required array length: 1 - 50 elements
max_tokens
integer
Required range: 1 <= x <= 8000
temperature
number
Required range: 0 <= x <= 2
system_prompt
string
Maximum string length: 8000

Response

Completion returned.

id
string
object
enum<string>
Available options:
chat.completion
status
enum<string>
Available options:
succeeded,
failed
modality
enum<string>
Available options:
chat
message
object
charged_credits
integer
refunded_credits
integer
error_message
string