Use Neosantara in Claude Code
Config Environment Variables
The
API_TIMEOUT_MS parameter is configured to prevent excessively long outputs that could cause the Claude Code client to time out. Here, we set the timeout duration to 10 minutes.Invoke Neosantara Model via Anthropic API
Compatibility Matrix
| Parameter | Required | Type | Claude SDK | Default | Notes |
|---|---|---|---|---|---|
model | β Yes | string | β Yes | - | Use Neosantara model instead |
messages | β Yes | array | β Yes | - | Alternating user/assistant |
max_tokens | β Yes | integer | β Yes | - | Min 1 token |
temperature | β No | number | β Yes | 1.0 | Range: 0.0-1.0 |
stream | β No | boolean | β Yes | false | SSE format |
top_p | β No | number | β Yes | 1.0 | Range: 0.0-1.0 |
top_k | β No | number | β Yes | - | Must be > 0 |
stop_sequences | β No | array | β Yes | [] | Max 5 sequences |
system | β No | string/array | β Yes | - | Separate parameter |
tools | β No | array | β Yes | [] | Function definitions |
tool_choice | β No | string | β Yes | βautoβ | auto/any/specific |
metadata | β No | object | β Yes | Custom tracking | |
service_tier | β No | string | β Yes | βautoβ | auto/standard_only |
thinking | β No | object | β Yes | - | Extended thinking mode |