Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.meshrouter.app/llms.txt

Use this file to discover all available pages before exploring further.

from mesh_sdk import MeshClient

mesh = MeshClient(api_key="mesh_live_...")
response = mesh.create_chat_completion(
    model="auto",
    messages=[{"role": "user", "content": "hello MESH"}],
    stream=True,
)

print(response.receipt_id)
The SDK defaults to https://api.meshrouter.app/v1.

Operations helpers

mesh.get_current_account()
mesh.update_account_limits(
    "acct_live",
    {"monthlyUsdLimit": 500, "requestsPerMinute": 120},
)

mesh.get_usage(account_id="acct_live")
mesh.get_logs(account_id="acct_live", limit=50)
mesh.get_monitoring_summary(account_id="acct_live", window="1h")

intent = mesh.get_payment_intent("pay_live")
Routing settings and provider health live behind the operator console — see Provider configuration for the operator-facing admin endpoints. Day-to-day SDK use only needs an API key and a model id.