π Get a Virtual Private Server for just Rp 10,000 - the perfect fit for your server needs. Get here
cURL
curl --request POST \ --url https://api.neosantara.xyz/v1/messages \ --header 'x-api-key: <api-key>'
{ "id": "<string>", "type": "<string>", "role": "<string>", "model": "<string>", "stop_reason": "<string>", "stop_sequence": {}, "content": { "type": "<string>", "text": "<string>" }, "usage": { "input_tokens": 123, "output_tokens": 123, "cache_creation_input_tokens": 123, "cache_read_input_tokens": 123 } }
"garda-beta-mini"
"nusantara-base"
Show message structure
"user"
"assistant"
{"type": "text", "text": "..."}
{"type": "image_url", "image_url": {"url": "https://..."}}
{"type": "document", "..."}
β₯ 1
Show Format
[{"type": "text", "text": "..."}]
0.0 - 1.0
Show Example
0.0
0.7
1.0
Show streaming events
message_start
content_block_start
content_block_delta
content_block_stop
message_delta
message_stop
> 0
Show tool structure
"tools": [ { "name": "calculate", "description": "Calculate math expression", "input_schema": { "type": "object", "properties": { "expression": {"type": "string"} }, "required": ["expression"] } } ]
Show options
"auto"
"any"
{"type": "tool", "name": "..."}
Show thinking properties
"enabled"
β₯ 1024
< max_tokens
Show option
"standard_only"
"message"
"end_turn"
Show content structure
"text"
Show usage properties
{ "id": "msg_01XYZ...", "type": "message", "role": "assistant", "model": "nusantara-base", "content": [ { "type": "text", "text": "The capital of France is Paris." } ], "stop_reason": "end_turn", "usage": { "input_tokens": 12, "output_tokens": 8 } }