> ## 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.

# chat • AI Agent SDK

> chat: Generate an image from the prompt.

# chat

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**ImageAgent**](../classes/ImageAgent) class in the [**image\_agent**](../modules/image_agent) module.

Generate an image from the prompt.

## Signature

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

## Parameters

<ParamField query="prompt" type="str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Dict[str, Any]">
  The result of the operation.
</ResponseField>

## Uses

* `generate_image`

## Used By

* [`Agent.run_autonomous`](../functions/Agent-run_autonomous)
* [`Agent.chat_with_context`](../functions/Agent-chat_with_context)
* [`Agent.run`](../functions/Agent-run)
* [`Agent.start`](../functions/Agent-start)
* [`Agent.execute`](../functions/Agent-execute)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/image_agent.py#L196">
  `praisonaiagents/agent/image_agent.py` at line 196
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Chat Feature" icon="comments" href="/docs/features/chat" />

  <Card title="Conversation Stores" icon="database" href="/docs/databases/overview" />
</CardGroup>
