> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatFormatJSONSchemaConfig - Python SDK

> ChatFormatJSONSchemaConfig method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

JSON Schema response format for structured outputs

## Fields

| Field         | Type                                                                                                                     | Required             | Description                      | Example                                                                                                                                                                                                                                |
| ------------- | ------------------------------------------------------------------------------------------------------------------------ | -------------------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `json_schema` | [components.ChatJSONSchemaConfig](/client-sdks/python/api-reference/components/chatjsonschemaconfig)                     | :heavy\_check\_mark: | JSON Schema configuration object | `{"description": "A mathematical response","name": "math_response","schema": {"properties": {"answer": {"type": "number"}`<br />},<br />"required": \[<br />"answer"<br />],<br />"type": "object"<br />},<br />"strict": `true<br/>`} |
| `type`        | [components.ChatFormatJSONSchemaConfigType](/client-sdks/python/api-reference/components/chatformatjsonschemaconfigtype) | :heavy\_check\_mark: | N/A                              |                                                                                                                                                                                                                                        |
