Create Chat Completion
POST
Create Chat Completion
Get your free API key
Start with 10,000 Monthly Token Limit on our Free Plan. No credit card required. Your tokens automatically reset on the 1st of each month.
string
required
ID of the model to use (e.g.,
garda-beta-mini, nusantara-base). See /v1/models.array
required
A list of messages comprising the conversation so far.
integer
The maximum number of tokens to generate in the chat completion.
number
default:"1"
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
number
default:"1"
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
boolean
default:"false"
If set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events as they become available.
string or array
Up to 4 sequences where the API will stop generating further tokens.
array
A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
string or object
Controls which (if any) tool is called by the model. Can be
none, auto, required, or a specific tool object.object
Enable reasoning capabilities for supported models (e.g.,
nusantara-base, garda-beta-mini).object
Configuration for web search capabilities on supported models.
object
An object specifying the format that the model must output.
string
A unique identifier representing your end-user, which can help Neosantara AI to monitor and detect abuse.
Returns
string
A unique identifier for the chat completion.
string
The object type, which is always
chat.completion.integer
The Unix timestamp (in seconds) of when the chat completion was created.
string
The model used for the chat completion.
array
A list of chat completion choices.
object
Usage statistics for the completion request.
Return Examples
Response 200
Last modified on December 7, 2025
Create Chat Completion