[SDK reference](../../index.md) / [Models](../index.md) / [Ai](index.md)

# RunAiTaskRequest

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Ai`  

Runs one AI service task (W132; ADR-1011).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `AudioBase64` | `string?` | `audioBase64` | speech.transcribe: a 16-bit mono PCM WAV file, base64 (at most 4 MiB). |
| `ContentType` | `string?` | `contentType` | document.extract or vision.describe: MIME type (`application/pdf`, `text/html`, `text/markdown`, `application/vnd.openxmlformats-officedocument.wordprocessingml.document`, `image/png`, `image/jpeg`). |
| `DocumentBase64` | `string?` | `documentBase64` | document.extract: a PDF, HTML, Markdown, or DOCX document, base64 (at most 4 MiB). |
| `ImageBase64` | `string?` | `imageBase64` | vision.describe: a PNG or JPEG image, base64 (at most 4 MiB). |
| `Items` | `List<string>?` | `items` | personalisation.rank: 1-64 candidate items ranked against `text`. |
| `Model` | `string?` | `model` | A model of the task's allowlist (default: the task's default model). |
| `RequestId` | `string?` | `requestId` | The request ID charged once per task and project. |
| `SourceLanguage` | `string?` | `sourceLanguage` | translation.translate: optional ISO 639-1 source language code. |
| `TargetLanguage` | `string?` | `targetLanguage` | translation.translate: ISO 639-1 target language code (`en`, `de`, `fr`, `es`, `pt`, `it`, `nl`, `sn`, `af`). |
| `Task` | `string?` | `task` | `speech.transcribe` \| `document.extract` \| `vision.describe` \| `translation.translate` \| `language.analyze` \| `personalisation.rank`. |
| `Text` | `string?` | `text` | language.analyze, translation.translate, personalisation.rank (query/profile), or optional vision.describe prompt (1-4000 characters). |
