# Multimodal Model

> The Multimodal Model is an AI model that can process and generate several types of data, such as text, images and audio.

## What is a multimodal AI model?

The model that works with several types of data at once, for example understands screenshots, diagrams and text together. Allows turning a design mockup into code or answering questions about an image.

- Topic: Language Models
- Type: concept

## Example

Wrong:

```js
const content = [
  { type: 'image', data: base64 },
  { type: 'text', text: 'Describe this photo.' }
];
```

Right:

```js
const content = [
  { type: 'image', mediaType: 'image/png', data: base64 },
  { type: 'text', text: 'Describe this photo.' }
];
```

The image part declares its media type, so the API can decode it instead of rejecting or misreading the input.

## Key points

- Images and files are sent with the correct media type and within the size limits of the API.
- Large images are resized before sending, since image input is billed in tokens.
- Uploaded images and documents are treated as untrusted input that can carry hidden instructions.

## Interview questions

### Can a multimodal model read text in images?

Yes, most can read printed text, charts and screenshots, but small or blurry text and exact numbers may be read wrong.

### Do images cost tokens?

Yes. Images are turned into tokens for the model, and larger images usually use more tokens, so resizing cuts cost.

### What is the difference between multimodal input and output?

Multimodal input means the model accepts images, audio or files. Multimodal output means it can also generate them, which fewer models do.

## Related cards

- [LLM](https://wonderium.dev/ai/llm.md)
- [Speech-to-Text](https://wonderium.dev/ai/speech-to-text.md)
- [Indirect Prompt Injection](https://wonderium.dev/ai/indirect-prompt-injection.md)
- [Token Cost](https://wonderium.dev/ai/token-cost.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/multimodal-model
- Last updated: 2026-11-25
