POST
/
v1
/
completion
curl --request POST \
  --url https://api.optimix.app/v1/completion/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "<string>"
    }
  ],
  "prompt_id": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "output": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Input for Completion
prompt_id
string
required
messages
object[]

Response

200
application/json
Successful Completion Response
data
object