Skip to main content
POST
/
v1
/
deployments
/
{deployment_id}
/
chat
/
completions
Create deployment chat completion
curl --request POST \
  --url https://api.tideblaze.com/v1/deployments/{deployment_id}/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messages": [
    {
      "role": "system",
      "content": "<string>"
    }
  ],
  "temperature": 123,
  "max_tokens": 123,
  "stream": false
}
'
{
  "id": "<string>",
  "object": "chat.completion",
  "created": 123,
  "model": "<string>",
  "choices": [
    {
      "index": 123,
      "message": {
        "role": "system",
        "content": "<string>"
      },
      "finish_reason": "<string>"
    }
  ],
  "usage": {
    "prompt_tokens": 123,
    "completion_tokens": 123,
    "total_tokens": 123
  }
}
This endpoint runs chat completions against a private deployed fine-tuned model. stream=true returns text/event-stream and ends with data: [DONE].

Authorizations

Authorization
string
header
required

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

Path Parameters

deployment_id
string
required

Body

application/json
messages
object[]
required
Minimum array length: 1
temperature
number | null
max_tokens
integer | null
stream
boolean
default:false

Response

Deployment chat completion result

id
string
required
object
enum<string>
required
Available options:
chat.completion
created
integer
required
model
string
required
choices
object[]
required
usage
object
required