> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apia1.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Структурный вывод

> Получение JSON по заданной схеме

# Структурный вывод

```json theme={null}
{"response_format":{"type":"json_schema","json_schema":{"name":"contact","strict":true,"schema":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":["string","null"]}},"required":["name","email"],"additionalProperties":false}}}}
```

Используйте `enum` для фиксированных вариантов и `additionalProperties:false` для строгой структуры. Клиент всё равно должен обрабатывать отказ модели и ошибку валидации.
