Source: https://docs.aivax.net/docs/data-processing/media-descriptions.html

# Media Descriptions

Use Media Descriptions when an application needs structured information from audio, images, video, or PDF content. Typical uses include preparing media for search, moderation review, accessibility workflows, and downstream automation.

Choose the more specialized API when the task is limited to a single medium, such as [Audio Transcriptions](https://docs.aivax.net/docs/generations/audio-transcriptions.md) for speech-to-text.

## Media Descriptions, Extraction, or Fetch

- **Media Descriptions** interprets images, PDFs, audio, and video and returns generated text guided by your instructions. Use it to explain a chart, describe a photo, or answer a question about a video.
- **[Extraction](https://docs.aivax.net/docs/data-processing/extraction.md)** reads text, images, and PDFs and returns the fields defined by your JSON schema, one object per document. Use it when you need the same fields, such as totals or identifiers, from every document. [Summarization](https://docs.aivax.net/docs/data-processing/summarization.md) is its counterpart for short summaries.
- **[Fetch and OCR](https://docs.aivax.net/docs/web-foundation/fetch-and-ocr.md)** returns the readable text of web pages and documents. Use it when you need the full text, for example to index it.

## Describe media or reason over it directly

There are two ways to extract information from media, and they serve different needs:

- **Describe media, then decide** — use this endpoint when you need a reusable text artifact: a description stored for search, a transcript-like record for audit, or input text for a later workflow stage that runs independently.
- **Multimodal inference in one request** — send the media straight to a chat model that supports the input type when the model should reason over it immediately and no intermediate artifact is needed. See [Inference](https://docs.aivax.net/docs/inference/chat-completions/concepts.md).

Prefer Media Descriptions when the extraction guidance is stable and the result feeds several consumers. Prefer direct multimodal inference when the question about the media changes on every request.

## Describe media

Provide media that AIVAX can access, and use guidance that focuses the extraction on the information your workflow needs. The optional `extractionGuidance` instruction narrows the output — "identify the main subject and visible text" for an image, "summarize the sequence of events" for a video — so write it as the question your workflow needs answered.

Results come back in input order. Remote file URLs are downloaded before processing, within a size limit (see [Pricing, limits, and errors](#pricing-limits-and-errors)).

## Choose the engines

The optional `options` object selects the engine that resolves each content type. Omitted engines use `InferenceLow`.

```json
{
    "options": {
        "imageEngine": "InferenceHigh",
        "audioEngine": "Stt",
        "videoEngine": "InferenceLow",
        "fileEngine": "Ocr"
    },
    "input": [ ... ]
}
```

| Field | Accepted values |
| --- | --- |
| `imageEngine` | `InferenceLow`, `InferenceHigh`, `Ocr` |
| `audioEngine` | `InferenceLow`, `InferenceHigh`, `Stt` |
| `videoEngine` | `InferenceLow`, `InferenceHigh` |
| `fileEngine` | `InferenceLow`, `InferenceHigh`, `Ocr` |

- `InferenceLow` describes the content with a smaller, faster, and cheaper multimodal model.
- `InferenceHigh` uses a larger multimodal model that is more accurate and costs more. Use it when small details matter.
- `Ocr` extracts the text of images and files. With `fileEngine: "Ocr"`, any supported document is converted, not only PDFs.
- `Stt` transcribes the speech in audio with a speech-to-text model.

Inference engines return a structured description whose shape depends on the content type. `Ocr` and `Stt` return `{ "textContent": "..." }` and ignore `extractionGuidance`. The engines match those of [Multimodal pre-processing](https://docs.aivax.net/docs/inference/chat-completions/multimodal-pre-processing.md).

The `preset` property is deprecated. It cannot be combined with `options`; a request that sends both is rejected with `400`.

Remote media must be accessible without sign-in. Avoid sending credentials, personal data, or other content that must not appear in a generated description.

The embedded reference is the source of truth for accepted media forms, request options, and response fields.

[API endpoint reference](https://inference.aivax.net/apidocs?embed=iframe&embed-endpoint=Describe%20media)

## Pricing, limits, and errors

| Description | Pricing |
| --- | ---: |
| Media descriptions | **~$1.50/M tokens** |

The price is approximate and depends on the selected engine. `InferenceHigh` costs more than `InferenceLow`; `Ocr` and `Stt` are billed as OCR and speech-to-text usage.

Remote files are limited to 5 MB each. The number of requests per minute depends on the plan; see [Data processing limits](https://docs.aivax.net/docs/pricing/plans-and-limits.md#data-processing).

Correct inaccessible media or invalid content before retrying.
