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

# ChatGenerationParamsResponseFormatUnion - TypeScript SDK

> ChatGenerationParamsResponseFormatUnion method reference

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

## Supported Types

### `models.ChatGenerationParamsResponseFormatText`

```typescript lines theme={null}
const value: models.ChatGenerationParamsResponseFormatText = {
  type: "text",
};
```

### `models.ChatGenerationParamsResponseFormatJSONObject`

```typescript lines theme={null}
const value: models.ChatGenerationParamsResponseFormatJSONObject = {
  type: "json_object",
};
```

### `models.ResponseFormatJSONSchema`

```typescript lines theme={null}
const value: models.ResponseFormatJSONSchema = {
  type: "json_schema",
  jsonSchema: {
    name: "<value>",
  },
};
```

### `models.ResponseFormatTextGrammar`

```typescript lines theme={null}
const value: models.ResponseFormatTextGrammar = {
  type: "grammar",
  grammar: "<value>",
};
```

### `models.ChatGenerationParamsResponseFormatPython`

```typescript lines theme={null}
const value: models.ChatGenerationParamsResponseFormatPython = {
  type: "python",
};
```
