POST
/
v1
/
chat-completion
Chat Completion (Non-Streaming)
curl --request POST \
  --url https://api.incredible.one/v1/chat-completion \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "small-1",
  "stream": false,
  "messages": [
    {
      "role": "user",
      "content": "Hello, Incredible!"
    }
  ]
}'
{
  "result": {
    "response": [
      {
        "content": "Hello! 👋",
        "role": "assistant"
      }
    ],
    "thinking": "Greet the user briefly."
  }
}

Responses

stream = true

data: {"content": {"type": "text_chunk", "content": "Hello"}}
data: {"content": {"type": "function_call", "function_call_id": "...", "function_calls": []}}
data: {"content": "[DONE]"}

stream = false

{
  "result": {
    "response": [
      {
        "content": "Hello! 👋",
        "role": "assistant"
      }
    ],
    "thinking": "Greet the user briefly."
  }
}

Body

application/json

Response

Chat completion response

The response is of type object.