Welcome
The Subconscious API enables you to build powerful AI agents that can reason, use tools, and complete complex tasks. Our API is designed around Runs - discrete agent executions that process your instructions and return structured results.Core Concepts
Runs
A Run represents a single agent execution. You provide instructions and optionally tools, and the agent works to complete the task. Runs can be:- Async (
POST /v1/runs) - Queue a run and poll for results or receive webhooks - Streaming (
POST /v1/runs/stream) - Stream execution events in real-time via SSE
Engines
Choose from multiple inference engines optimized for different use cases:| Engine | Description |
|---|---|
tim-large | Our flagship compound AI system with advanced reasoning and tool use |
tim-small-preview | Fast, efficient model for simpler tasks |
Tools
Agents can use tools to interact with external systems:- Platform tools - Built-in capabilities like web search
- Function tools - Your custom HTTP endpoints
- MCP tools - Model Context Protocol servers
Structured Output
Request structured responses using JSON Schema viaanswerFormat and reasoningFormat fields.