Skip to main content
This guide takes you from zero to a working search query against your own content. You’ll need Python 3.10+ and a Memic API key from the dashboard.

1. Install the SDK

2. Authenticate

All Memic API calls are authenticated with an API key. Get one from your environment’s API keys page in the dashboard, then set it as an environment variable:
The SDK picks it up automatically. You can also pass it explicitly:
Every API key is bound to exactly one environment (e.g. staging or production). Swap the key to swap environments — no code changes.

3. Verify your connection

If this returns your org and project, you’re authenticated correctly.

4. Upload a file

Memic’s upload flow uses presigned URLs so large files go directly to storage without passing through the API server. The SDK handles both steps for you:
The file is queued for processing (chunking, embedding, indexing). You can poll for status:
Typical processing time for a PDF is under 30 seconds.

5. Search your content

Once the file is ready, semantic search works immediately:

6. Chat over your content

Search returns passages; chat returns grounded answers:

Next steps

Guide: Ingestion

Batch uploads, metadata, folder organization.

Guide: Search

Filters, top-k tuning, hybrid retrieval.

Recipe: Chatbot

Build a customer-facing chat over your docs.

API Reference

Every endpoint, every parameter.