Skip to main content

Neosantara

Overview​

PropertyDetails
DescriptionNeosantara is a unified LLM gateway designed for developers in Indonesia, providing a single OpenAI-compatible interface to multiple top-tier AI models (OpenAI, Anthropic, Gemini, etc.).
Provider Route on LiteLLMneosantara/
Link to Provider DocNeosantara Dashboard ↗
Base URLhttps://api.neosantara.xyz/v1
Supported Operations/chat/completions, /embeddings

What is Neosantara?​

Neosantara is a unified gateway that lets developers:

  • Access Multiple LLM Providers: Unified interface for OpenAI, Anthropic, Gemini, and more.
  • Optimized for Indonesia: Designed specifically for the needs of developers in the region.
  • Unified Billing: Pay-As-You-Go system with local payment support.
  • OpenAI Compatible: Seamlessly drop into existing OpenAI-based workflows.

Required Variables​

Environment Variables
os.environ["NEOSANTARA_API_KEY"] = "your-neosantara-api-key"

Get your Neosantara API key from app.neosantara.xyz.

Usage - LiteLLM Python SDK​

Neosantara Non-streaming Completion
import os
import litellm
from litellm import completion

os.environ["NEOSANTARA_API_KEY"] = "your-neosantara-api-key"

messages = [{"content": "What is the capital of Indonesia?", "role": "user"}]

# Neosantara call
response = completion(
model="neosantara/claude-3-haiku",
messages=messages
)

print(response)

Usage - LiteLLM Proxy Server​

1. Set Neosantara Models on config.yaml​

model_list:
- model_name: neosantara-claude-3-haiku
litellm_params:
model: neosantara/claude-3-haiku
api_key: os.environ/NEOSANTARA_API_KEY

2. Start Proxy​

litellm --config config.yaml

3. Test it​

curl --location 'http://0.0.0.0:4000/chat/completions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sk-1234' \
--data ' {
"model": "neosantara-claude-3-haiku",
"messages": [
{
"role": "user",
"content": "what llm are you"
}
]
}
'

Supported Models​

We support a wide range of models optimized for the Indonesian context and high-performance tasks.

Model NameModel ID (for LiteLLM)ProviderDescription
Nusantara Baseneosantara/nusantara-baseGeminiFlagship balanced model
Archipelago 70Bneosantara/archipelago-70bLlama 3.3Cultural context awareness
Garda Beta Minineosantara/garda-beta-miniGroq/PaxsenixFast & efficient Indonesian understanding
Claude 3 Haikuneosantara/claude-3-haikuBedrockNear-instant responsiveness
Claude 3 Sonnetneosantara/claude-3-sonnetBedrockBalance of intelligence and speed
Sahabat AI Llama v4neosantara/sahabat-ai-llama-v4SahabatAIFine-tuned for Sahabat AI ecosystem
Nusa Embedding 0001neosantara/nusa-embedding-0001EmbeddingOptimized for Indonesian search
info

Note: You can use any model supported by Neosantara by adding the neosantara/ prefix to the model name in your LiteLLM calls.

Supported OpenAI Parameters​

Neosantara supports all standard OpenAI-compatible parameters:

ParameterTypeDescription
messagesarrayRequired. Array of message objects with 'role' and 'content'
modelstringRequired. Model ID (e.g., claude-3-haiku, archipelago-70b)
streambooleanOptional. Enable streaming responses
temperaturefloatOptional. Sampling temperature
top_pfloatOptional. Nucleus sampling parameter
max_tokensintegerOptional. Maximum tokens to generate
toolsarrayOptional. List of available tools/functions
tool_choicestring/objectOptional. Control tool/function calling

Additional Resources​