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

# Image Part • AI Agent SDK

> image_part: Build an image content part from raw bytes/base64 or a URL/data URI.

# image\_part

Function

> This function is defined in the [**base**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/base.md) module.

Build an image content part from raw bytes/base64 or a URL/data URI.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def image_part(data: Any) -> Dict[str, Any]
```

## Parameters

**data** `Any`

No description available.

### Returns

**Returns** `Dict[str, Any]`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/base.py#L153)
>
> `praisonaiagents/tools/base.py` at line 153

***

## Related Documentation

> [card] [Image Generation](https://praison.ai/docs/docs/features/image-generation)

> [card] [Multimodal](https://praison.ai/docs/docs/features/multimodal)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.