---
title: "AiProcessingSettings"
canonical_url: "https://www.nutrient.io/api/csharp/settings/vision/advanced/ai-processing-settings/"
md_url: "https://www.nutrient.io/api/csharp/settings/vision/advanced/ai-processing-settings.md"
last_updated: "2026-10-08T08:55:57.713Z"
description: "Settings for AiProcessing. Values fall back through three levels: document → SDK → built-in default."
---

Settings for AiProcessing. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document's settings, otherwise the SDK globally when set on SdkSettings.

```csharp

using Nutrient;

```

The SDK creates this class through factory methods or other SDK objects.

## Properties

### AiProvider

```csharp

public VlmProvider AiProvider { get; set; }

```

Gets or sets the value of AiProvider. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** [`VlmProvider`](/api/csharp/enums/vlm-provider/)

### ApiKey

```csharp

public string? ApiKey { get; set; }

```

Gets or sets the value of ApiKey. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `string?`

### Endpoint

```csharp

public string? Endpoint { get; set; }

```

Gets or sets the value of Endpoint. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `string?`

### FallbackAiProvider

```csharp

public VlmProvider FallbackAiProvider { get; set; }

```

Gets or sets the value of FallbackAiProvider. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** [`VlmProvider`](/api/csharp/enums/vlm-provider/)

### IncludeCompositeConfidence

```csharp

public bool IncludeCompositeConfidence { get; set; }

```

Gets or sets the value of IncludeCompositeConfidence. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `bool`

### IncludeConfidence

```csharp

public bool IncludeConfidence { get; set; }

```

Gets or sets the value of IncludeConfidence. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `bool`

### IncludeGroundedness

```csharp

public bool IncludeGroundedness { get; set; }

```

Gets or sets the value of IncludeGroundedness. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `bool`

### IncludePageImages

```csharp

public bool IncludePageImages { get; set; }

```

Gets or sets the value of IncludePageImages. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `bool`

### IncludeSourceLocations

```csharp

public bool IncludeSourceLocations { get; set; }

```

Gets or sets the value of IncludeSourceLocations. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `bool`

### MaxAttempts

```csharp

public int? MaxAttempts { get; set; }

```

Gets or sets the value of MaxAttempts. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `int?`

### MaxInputTokens

```csharp

public int MaxInputTokens { get; set; }

```

Gets or sets the value of MaxInputTokens. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `int`

### MaxParallelCalls

```csharp

public int MaxParallelCalls { get; set; }

```

Gets or sets the value of MaxParallelCalls. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `int`

### MetadataSchemaVersion

```csharp

public int MetadataSchemaVersion { get; set; }

```

Gets or sets the value of MetadataSchemaVersion. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `int`

### Model

```csharp

public string? Model { get; set; }

```

Gets or sets the value of Model. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `string?`

### NetworkTimeoutSeconds

```csharp

public int? NetworkTimeoutSeconds { get; set; }

```

Gets or sets the value of NetworkTimeoutSeconds. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `int?`

### Provider

```csharp

public string? Provider { get; set; }

```

Gets or sets the value of Provider. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `string?`

### StrictStructuredOutput

```csharp

public bool StrictStructuredOutput { get; set; }

```

Gets or sets the value of StrictStructuredOutput. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `bool`

### Temperature

```csharp

public double? Temperature { get; set; }

```

Gets or sets the value of Temperature. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** `double?`

### UnparseableOutputHandling

```csharp

public UnparseableOutputHandling UnparseableOutputHandling { get; set; }

```

Gets or sets the value of UnparseableOutputHandling. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.

**Type:** [`UnparseableOutputHandling`](/api/csharp/enums/unparseable-output-handling/)

## Resource management

```csharp

public void Dispose()

```

`AiProcessingSettings` implements `IDisposable`. Call `Dispose()` or use a C# `using` declaration to release its native handle right away. If you don't, the handle is released when the object is garbage collected.

---

## Related pages

- [Advanced](/api/csharp/settings/vision/advanced.md)
- [Ai Augmenter Settings](/api/csharp/settings/vision/advanced/ai-augmenter-settings.md)
- [Anthropic Api Settings](/api/csharp/settings/vision/advanced/anthropic-api-settings.md)
- [Content Extraction Settings](/api/csharp/settings/vision/advanced/content-extraction-settings.md)
- [Custom Vlm Api Settings](/api/csharp/settings/vision/advanced/custom-vlm-api-settings.md)
- [Deskew Settings](/api/csharp/settings/vision/advanced/deskew-settings.md)
- [Document Layout Json Export Settings](/api/csharp/settings/vision/advanced/document-layout-json-export-settings.md)
- [Finalizer Settings](/api/csharp/settings/vision/advanced/finalizer-settings.md)
- [Form Labeling Settings](/api/csharp/settings/vision/advanced/form-labeling-settings.md)
- [Form Recognition Settings](/api/csharp/settings/vision/advanced/form-recognition-settings.md)
- [Form Vlm Connection Settings](/api/csharp/settings/vision/advanced/form-vlm-connection-settings.md)
- [Form Vlm Fallback Connection Settings](/api/csharp/settings/vision/advanced/form-vlm-fallback-connection-settings.md)
- [Google Api Settings](/api/csharp/settings/vision/advanced/google-api-settings.md)
- [Handwriting Settings](/api/csharp/settings/vision/advanced/handwriting-settings.md)
- [Inference Layout Settings](/api/csharp/settings/vision/advanced/inference-layout-settings.md)
- [Inline Style Settings](/api/csharp/settings/vision/advanced/inline-style-settings.md)
- [Local Ai Processing Settings](/api/csharp/settings/vision/advanced/local-ai-processing-settings.md)
- [Local Vlm Settings](/api/csharp/settings/vision/advanced/local-vlm-settings.md)
- [Ocr Settings](/api/csharp/settings/vision/advanced/ocr-settings.md)
- [Omr Settings](/api/csharp/settings/vision/advanced/omr-settings.md)
- [Open Ai Api Endpoint Settings](/api/csharp/settings/vision/advanced/open-ai-api-endpoint-settings.md)
- [Open Ai Languages Detection Settings](/api/csharp/settings/vision/advanced/open-ai-languages-detection-settings.md)
- [Open Ai Picture Alt Settings](/api/csharp/settings/vision/advanced/open-ai-picture-alt-settings.md)
- [Pp Text Det Settings](/api/csharp/settings/vision/advanced/pp-text-det-settings.md)
- [Pp Text Rec Settings](/api/csharp/settings/vision/advanced/pp-text-rec-settings.md)
- [Preprocessing Settings](/api/csharp/settings/vision/advanced/preprocessing-settings.md)
- [Reading Order Settings](/api/csharp/settings/vision/advanced/reading-order-settings.md)
- [Segmenter Settings](/api/csharp/settings/vision/advanced/segmenter-settings.md)
- [Table Recognition Settings](/api/csharp/settings/vision/advanced/table-recognition-settings.md)
- [Vision Acceleration Settings](/api/csharp/settings/vision/advanced/vision-acceleration-settings.md)
- [Vision Descriptor Settings](/api/csharp/settings/vision/advanced/vision-descriptor-settings.md)
- [Words Detection Settings](/api/csharp/settings/vision/advanced/words-detection-settings.md)

