Skip to main content
GET
/
chat
/
completions
/
{id}
Retrieve a chat completion
curl --request GET \
  --url https://api.cloudglue.dev/v1/chat/completions/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "<string>",
  "created_at": 123,
  "model": "<string>",
  "choices": [
    {
      "index": 123,
      "message": {
        "role": "system",
        "content": "<string>",
        "name": "<string>"
      },
      "citations": [
        {
          "collection_id": "<string>",
          "file_id": "<string>",
          "segment_id": "<string>",
          "start_time": "<string>",
          "end_time": "<string>",
          "text": "<string>",
          "context": "<string>",
          "relevant_sources": [
            {
              "text": "<string>"
            }
          ],
          "visual_scene_description": [
            {
              "text": "<string>",
              "start_time": 123,
              "end_time": 123
            }
          ],
          "scene_text": [
            {
              "text": "<string>",
              "start_time": 123,
              "end_time": 123
            }
          ],
          "speech": [
            {
              "speaker": "<string>",
              "text": "<string>",
              "start_time": 123,
              "end_time": 123
            }
          ],
          "audio_description": [
            {
              "text": "<string>",
              "start_time": 123,
              "end_time": 123
            }
          ]
        }
      ]
    }
  ],
  "payload": {
    "messages": [
      {
        "role": "system",
        "content": "<string>",
        "name": "<string>"
      }
    ],
    "temperature": 123,
    "filter": {
      "metadata": [
        {
          "path": "<string>",
          "operator": "NotEqual",
          "valueText": "<string>",
          "valueTextArray": [
            "<string>"
          ],
          "scope": "file"
        }
      ],
      "video_info": [
        {
          "path": "duration_seconds",
          "operator": "NotEqual",
          "valueText": "<string>",
          "valueTextArray": [
            "<string>"
          ]
        }
      ],
      "file": [
        {
          "path": "bytes",
          "operator": "NotEqual",
          "valueText": "<string>",
          "valueTextArray": [
            "<string>"
          ]
        }
      ]
    },
    "collections": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ]
  },
  "usage": {
    "prompt_tokens": 123,
    "completion_tokens": 123,
    "total_tokens": 123
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The ID of the chat completion

Response

Successful response

id
string

Unique identifier for this chat completion

object
string

Object type, always "chat.completion"

created_at
integer

Unix timestamp of when the chat completion was created

model
string

The model used for the chat completion

choices
object[]

The generated responses

payload
object
usage
object

Usage statistics for the completion request