# Mia21 — full LLM context > OpenAI-compatible LLM gateway with persistent memory and streaming voice. > Prepaid from $5. Zero markup on model tokens. Official Python & JS SDKs. This file concatenates the curated Markdown pages linked from /llms.txt so an assistant can load one URL for complete product context. Canonical discovery file: https://mia21.com/llms.txt Alias: https://mia21.com/llm.txt ----- # From index.md ----- # Mia21 > The LLM gateway that remembers your users — and can speak. Mia21 is an **OpenAI-compatible LLM gateway** with **persistent memory** and **streaming voice** on one API key. Prepaid usage from **$5**. **Zero markup** on model tokens. - Website: https://mia21.com - Console: https://app.mia21.com - Docs: https://docs.mia21.com - API: https://api.mia21.com ## Who it is for Product teams shipping AI agents, copilots, and support bots who want multi-model access, per-user memory, voice on the same wallet, and transparent prepaid pricing. ## Quick start (OpenAI SDK) ```python from openai import OpenAI client = OpenAI( api_key="YOUR_MIA21_KEY", base_url="https://api.mia21.com/v1", ) r = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "Pick up where we left off."}], user="user_123", ) print(r.choices[0].message.content) ``` ## Official SDKs ```bash pip install mia21 npm install mia21 ``` ## Product pillars - Unified models via OpenAI-compatible `/v1` - Persistent memory when you pass a stable `user` id - Streaming voice / TTS on the same key and wallet - Transparent prepaid pricing; 0% token markup ## Pricing summary | Item | Value | |------|-------| | Minimum first load | $5 | | Credit value | 1 credit = $0.001 | | Token markup | 0% | | Top-up platform fee | ~5.5% | Live rates JSON: https://api.mia21.com/api/v1/credits/pricing/table ----- # From pricing.md ----- # Mia21 Pricing Mia21 uses a **prepaid credit wallet**. There is **no free tier**. - **1 credit = $0.001 USD** - **Minimum first load: $5** - Credits **never expire** - Wallet UI is a fuel gauge (credits left) ### Managed usage - Tokens at provider cost + published provider tax (~8.1%) - **0% token markup** - Margin from memory, voice, BYOK fee, top-up fee ### Top-ups - ~5.5% platform fee - Example: $5 → 4,725 credits after fee ### BYOK - Pay providers directly for tokens - Mia charges a platform fee per 1M tokens for routing/memory/analytics ### Live sources - https://app.mia21.com/pricing - https://api.mia21.com/api/v1/credits/pricing/table - https://api.mia21.com/api/v1/payments/plans ----- # From sdks.md ----- # Mia21 SDKs ### OpenAI drop-in `base_url="https://api.mia21.com/v1"` with any OpenAI client. ### Python `pip install mia21` — https://pypi.org/project/mia21/ ```python from mia21 import Mia21Client with Mia21Client(api_key="YOUR_MIA21_KEY") as client: client.initialize(space_id="support") print(client.chat("Hello").message) ``` ### JavaScript / TypeScript `npm install mia21` — https://www.npmjs.com/package/mia21 ```typescript import { Mia21Client } from "mia21"; const client = new Mia21Client({ apiKey: "YOUR_MIA21_KEY" }); await client.initialize({ spaceId: "support" }); console.log((await client.chat("Hello")).message); ``` ### Auth `Authorization: Bearer ` or `X-API-Key: ` ### Docs https://docs.mia21.com · https://github.com/mia21com/mia21 ----- # End of llms-full.txt -----