Skip to main content

Basic request

Multi-turn conversation

Pass prior messages in the messages array to give the model conversation context.

Using a prompt template

You can apply a saved prompt template to inject a system prompt and fill variables.

Async (Python)

Use AsyncMeshAPI for async applications.

Response fields

Tool calling

Pass a tools array to let the model call your own functions. The wire shape is OpenAI-compatible, so the same request works across all three SDKs — see Tool Calling for the full request/response cycle.
Any request carrying tools bypasses the gateway response cache — a tool call depends on live state, so replaying a stored one would be wrong. This is silent: no error, and no X-Cache header.