Skip to main content
MESH speaks the OpenAI Chat Completions, Embeddings, and Models APIs verbatim. Any OpenAI-compatible client (the official OpenAI SDK, LangChain, LlamaIndex, Vercel AI SDK, etc.) works by changing two settings:

TypeScript (official openai package)

Python (official openai package)

cURL

Receipt + cost metadata still come back on the response headers (x-mesh-receipt-id, x-mesh-total-usd, x-mesh-margin-usd, x-mesh-upstream-cost-usd) regardless of which client you use.

When to use the native MESH SDK instead

The official OpenAI SDKs don’t know about MESH-specific surfaces like payments, account balance, or signed attestation. If you want typed helpers for those, use: They keep the OpenAI-compatible chat shape and add typed methods for receipts, payments, usage, and account management.