> ## 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.

# Structured output

> Request JSON object and JSON schema responses.

MESH accepts OpenAI-compatible `response_format` values.

```json theme={null}
{
  "model": "auto",
  "response_format": { "type": "json_object" },
  "messages": [{ "role": "user", "content": "Return a JSON deployment summary." }]
}
```

For stricter contracts, use `json_schema`.

```json theme={null}
{
  "response_format": {
    "type": "json_schema",
    "json_schema": {
      "name": "receipt_summary",
      "strict": true,
      "schema": { "type": "object" }
    }
  }
}
```
