meshrouter.MeshClient when you want helpers for receipts, token counting, API keys, payments,
and attestation.Guides
Python
Use MESH from Python with OpenAI or meshrouter clients.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use MESH from Python with OpenAI or meshrouter clients.
from openai import OpenAI
client = OpenAI(
api_key="mesh_live_...",
base_url="https://api.meshrouter.app/v1",
)
response = client.chat.completions.create(
model="auto",
messages=[{"role": "user", "content": "hello MESH"}],
)
meshrouter.MeshClient when you want helpers for receipts, token counting, API keys, payments,
and attestation.