Skip to main content
POST
Post message
Retired: the Chat and Message API was retired on 21 August 2026, and these endpoints no longer exist. Use Direct Responses if your app owns safety, or the guarded Responses API for built-in guardrails and tradition; if you need model_family, auto-routing or grounded completions, use Completions V2. The Chat migration guide walks through the move.
Providing chat_id adds a new message to that chat session; without it, a new chat session is created. Default behavior:
  • Gloo AI will perform a sentiment analysis on your prompt.
  • Gloo AI will provide suggestion follow ups
  • Depending on your prompt, Gloo AI will return sources that have influenced the response from our trusted partners.
Override the defaults with the query params: intent, enable_sources, enable_suggestions. Example 1: You want a rich answer based on trusted sources, with follow-up suggestions. Omit all query params. Example 2: Your prompt needs trusted sources in the answer, and you don’t want follow-up suggestions. intent: 1, enable_suggestions: 0 Example 3: Your prompt doesn’t need trusted sources, and you don’t want follow-up suggestions. intent: 0, enable_suggestions: 0

Authorizations

Authorization
string
header
default:Bearer <api-key>
required

Bearer authentication header of the form Bearer <api-key>, where <api-key> is your API key.

Path Parameters

v
enum<string>
required
Available options:
v1

Query Parameters

chat_id
string | null
default:""
intent
enum<integer> | null
Available options:
0,
1
enable_sources
enum<integer> | null
default:1
Available options:
0,
1,
2
enable_suggestions
enum<integer> | null
default:1
Available options:
0,
1

Body

application/json
chat_id
string | null
default:""

chat_id can also be provided as a query param

query
string
default:What is your name?

Chat with KALLM.

character_limit
integer | null

Limit the response length.

sources_limit
integer | null
default:10

Limit the sources search.

stream
boolean | null
default:false

Stream response as soon as tokens are generated by the model.

publishers
string[] | null

List of Publisher Names

Response

Successful response

The response is of type Response Post-Message · object.