Skip to main content
POST
Create a Message

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
The model ID to use for the request.Example: "garda-beta-mini", "nusantara-base"
array[object]
required
Array of message objects with alternating user/assistant roles.
integer
required
Maximum tokens for the response.Range: ≥ 1
string | array[object]
System prompt/instructions for the model.
number
default:"1.0"
Controls randomness. Higher = more random, Lower = more deterministic.Range: 0.0 - 1.0
boolean
default:"false"
Enable streaming responses (Server-Sent Events format).
number
default:"1.0"
Nucleus sampling - cumulative probability threshold.Range: 0.0 - 1.0
number
Sample from top K tokens by probability.Range: > 0
array[string]
default:"[]"
Sequences where generation stops.Max Items: Typically 5 sequences
array[object]
default:"[]"
Array of tool/function definitions.
string
default:"auto"
How to handle tool selection.
object
Enable extended thinking mode.
object
default:"{}"
Custom metadata for tracking/logging.
string
default:"auto"
Which service tier to use.

Returns

string
The unique identifier for the message.
string
The type of the response, always "message".
string
The role of the responder, always "assistant".
string
The model used for the response.
string
The reason generation stopped, e.g., "end_turn".
string | null
The stop sequence that triggered the end, if any.
array[object]
The generated content.
object
Token usage statistics.

Return Examples

Response 200
Last modified on December 3, 2025