Guides
- Quickstart
- Authentication and keys
- Key protection
- Models, aliases and fallbacks
- Chat completions
- Streaming
- Structured outputs and tools
- Logprobs
- Vision
- Responses, Claude and Ollama
- Embeddings, rerank, audio, images
- Files and batches
- LoRA adapters
- Project tags and costs
- Prefix caching
- Headers, rate limits and spend caps
- Errors
- Privacy and retention
- Verifiable receipts
- Pricing
- Billing
- Status
- SDKs
- Integrations
- Run a node
- Architecture
- Changelog
API reference
API reference
Ollama
The Ollama API for clients that speak it: chat, generate, and the discovery routes a model picker uses.
Base URL https://api.siliconnetwork.io
- POST/ollama/api/chat
- POST/ollama/api/generate
- GET/ollama/
- HEAD/ollama/
- GET/ollama
- HEAD/ollama
- GET/ollama/api/version
- GET/ollama/api/tags
- GET/ollama/api/ps
Ollama Chat
Ollama base URL is https://api.siliconnetwork.io/ollama. Discovery needs no key; chat does, so use a client that can set an Authorization header.
curl -X POST https://api.siliconnetwork.io/ollama/api/chat \
-H "Authorization: Bearer sn_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "llama-3.2-3b",
"messages": [
{
"role": "user",
"content": "Say hello in one line."
}
],
"stream": false
}'Responses: 200 Successful Response, 422 Validation Error
Ollama Generate
curl -X POST https://api.siliconnetwork.io/ollama/api/generate \
-H "Authorization: Bearer sn_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "llama-3.2-3b",
"prompt": "Say hello in one line.",
"stream": false
}'Responses: 200 Successful Response, 422 Validation Error
Ollama Root
Responses: 200 Successful Response
Ollama Root
Responses: 200 Successful Response
Ollama Root
Responses: 200 Successful Response
Ollama Root
Responses: 200 Successful Response
Ollama Version
Clients only check that this answers and parses; the value mirrors the engine's.
Responses: 200 Successful Response
Ollama Ps
Running models. The same list as /api/tags, because at the edge only a loaded model is callable, so 'installed' and 'running' cannot differ here.
Responses: 200 Successful Response