Skip to main content
The official Memic Python SDK is published on PyPI as memic.

Install

Requires Python 3.10 or newer.

Authenticate

The SDK reads your API key from the MEMIC_API_KEY environment variable:
Or pass it explicitly:

First call

If this prints your org and project info, you’re good.

What’s in the SDK

The Memic client exposes these resources:
  • client.me() — return the context resolved from your API key
  • client.projects — list projects
  • client.files — upload, list, delete, status
  • client.search(query) — semantic search
  • client.chat(messages) — grounded chat with citations
  • client.prompts — fetch managed prompts
See the full reference for every method and parameter.

Configuration

The Memic constructor accepts optional parameters:

Error handling

The SDK raises typed exceptions for common failures:

Quickstart

5-minute walkthrough.

Full reference

Every method and parameter.