Skip to content

API

The Spore API is OpenAI-compatible. Create an API key from your profile’s API Keys tab, then point your existing OpenAI client at Spore.

https://app.sporeintel.com/api/v1
Authorization: Bearer sk_spore_YOUR_API_KEY
Terminal window
curl https://app.sporeintel.com/api/v1/models \
-H "Authorization: Bearer sk_spore_YOUR_API_KEY"

Model names include a context tier, e.g. qwen3-4b-2507:8k or qwen3-4b-2507:32k. Append :personal to any model name to route the request to your own nodes only. Personal requests are free.

Terminal window
curl https://app.sporeintel.com/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk_spore_YOUR_API_KEY" \
-d '{
"model": "qwen3-4b-2507:8k",
"messages": [
{"role": "user", "content": "Hello!"}
],
"stream": false
}'

Set "stream": true for server-sent events; stream_options: {"include_usage": true} adds token usage to the final chunk, matching the OpenAI streaming format.

Many models can reason (“think”) before answering. Control it with the OpenAI-standard reasoning_effort:

Terminal window
curl https://app.sporeintel.com/api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk_spore_YOUR_API_KEY" \
-d '{
"model": "qwen3.6-27b:32k",
"messages": [{"role": "user", "content": "How many rs are in strawberry?"}],
"reasoning_effort": "low"
}'
  • reasoning_effort accepts none, minimal, low, medium, or high. none turns reasoning off on models that support toggling it; any other value turns it on. Models with graded effort (e.g. gpt-oss) use the level; always-on models ignore none.
  • The reasoning text is returned separately in message.reasoning_content (and delta.reasoning_content when streaming), so content stays clean.
  • A boolean enable_thinking is also accepted and takes precedence over reasoning_effort when both are sent.

Reasoning support is per model. Each entry from /api/v1/models includes supports_thinking, thinking_default_on, and thinking_toggleable so you can detect it programmatically.

Any tool that speaks the OpenAI protocol works: set its base URL to https://app.sporeintel.com/api/v1 and use your sk_spore_ key. The app’s Code page generates ready-to-paste configuration (including an OpenCode config with per-model context limits) from the models currently on the network.

Requests are charged in credits by model, context tier, and token counts. See Credits & Pricing. Personal-mode requests are free.