English
It supports text generation, conversation state, function calling, structured outputs, and reasoning.
cURL
curl --request POST \ --url https://api.neosantara.xyz/v1/responses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "nusantara-base", "input": "<string>", "instructions": "<string>", "previous_response_id": "<string>", "store": true, "reasoning": { "effort": "low" }, "text": { "format": { "type": "text", "schema": {} } }, "tools": [ { "type": "function", "function": { "name": "<string>", "description": "<string>", "parameters": {} } } ], "tool_choice": "<string>" }'
{ "id": "<string>", "type": "message", "role": "assistant", "model": "<string>", "output": [ { "type": "output_text", "text": "<string>" } ], "usage": { "input_tokens": 123, "output_tokens": 123 }, "_metadata": { "creator": "noesantara.xyz", "status": true, "timestamp": "2023-11-07T05:31:56Z", "request_id": "<string>", "processing_time": 123, "tier": "<string>", "user_total_usage": { "used": 123, "limit": 123, "remaining": 123, "reset_at": "2023-11-07T05:31:56Z" } } }
Your NeosantaraAI API Key.
"nusantara-base"
System-level instructions for the model.
ID of the previous response to continue a conversation.
Show child attributes
Successful response
"message"
"assistant"
Was this page helpful?