POST
/
chat
/
completions
curl --request POST \
  --url https://api.ecopi.chat/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "internta-v02",
  "messages": [
    {
      "role": "system",
      "content": "<string>"
    }
  ]
}'
{
  "choices": [
    {
      "message": {
        "role": "<string>",
        "content": "<string>"
      }
    }
  ]
}

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

ID of the model to use

Example:

"internta-v02"

messages
object[]
required

A list of messages comprising the conversation

Response

200 - application/json
Successful response
choices
object[]