> ## Documentation Index
> Fetch the complete documentation index at: https://surfacedocs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SurfaceDocs

> The output layer for AI pipelines

# The output layer for AI pipelines

SurfaceDocs turns AI-generated content into shareable, hosted documents. One API call, instant URL, zero infrastructure.

```bash theme={null}
pip install surfacedocs
```

```python theme={null}
from surfacedocs import SurfaceDocs, DOCUMENT_SCHEMA, SYSTEM_PROMPT

docs = SurfaceDocs(api_key="sd_live_...")
result = docs.save(llm_output)
print(result.url)  # https://app.surfacedocs.dev/d/abc123
```

<CardGroup cols={3}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Install the SDK and save your first document in under 5 minutes.
  </Card>

  <Card title="Python SDK" icon="python" href="/sdk/overview">
    Full reference for the SurfaceDocs Python client.
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/introduction">
    REST API endpoints for documents and folders.
  </Card>
</CardGroup>

## Why SurfaceDocs?

Every AI pipeline ends the same way: the model generates something valuable, and then you need to figure out where to put it.

SurfaceDocs gives you:

* **Instant shareable URLs** — `docs.save(output)` returns a link anyone can view
* **No infrastructure** — No viewers to build, no hosting to manage
* **Built for AI output** — Block-based schema that matches how LLMs think
* **Document versioning** — Push new versions to the same URL, view history, restore old versions
* **Works with any LLM** — OpenAI, Gemini, Anthropic, or any model

<Card title="Get your API key" icon="key" href="https://app.surfacedocs.dev">
  Sign up at app.surfacedocs.dev to get started.
</Card>
