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

# ImageContent

# ImageContent

Image content with detail level specification.

```python theme={null}
from adaline_api.models.image_content import ImageContent
```

***

## Fields

<ParamField body="modality" type="str" required>
  Must be `"image"`.
</ParamField>

<ParamField body="detail" type="str" required>
  Detail level. One of: `"low"`, `"medium"`, `"high"`, `"auto"`.
</ParamField>

<ParamField body="value" type="ImageContentValue" required>
  Image data — either a URL or base64-encoded content. Use `ImageContentValue.from_dict()` to construct.
</ParamField>

***

## Example

```python theme={null}
from adaline_api.models.image_content import ImageContent
from adaline_api.models.image_content_value import ImageContentValue
from adaline_api.models.message_content import MessageContent

# URL image
image = ImageContent(
    modality="image",
    detail="high",
    value=ImageContentValue.from_dict({
        "type": "url",
        "url": "https://example.com/chart.png"
    })
)

content = MessageContent(actual_instance=image)

# Base64 image
base64_image = ImageContent(
    modality="image",
    detail="auto",
    value=ImageContentValue.from_dict({
        "type": "base64",
        "base64": "iVBORw0KGgoAAAANSUhEUgA...",
        "mediaType": "jpeg"
    })
)
```

**JSON**:

```json theme={null}
{
  "modality": "image",
  "detail": "high",
  "value": {
    "type": "url",
    "url": "https://example.com/image.jpg"
  }
}
```

***

## Related

* [MessageContent](/docs/reference/sdk/v2/python/types/MessageContent) — union wrapper for all content types
* [PromptMessage](/docs/reference/sdk/v2/python/types/PromptMessage) — chat message containing content arrays
