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

# achat • AI Agent SDK

> achat: Async chat method for image generation.

# achat

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

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

Async chat method for image generation.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def achat(prompt: str, temperature: float, tools: Optional[List[Any]], output_json: Optional[str], output_pydantic: Optional[Any], reasoning_steps: bool) -> Union[str, Dict[str, Any]]
```

## Parameters

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

<ParamField query="temperature" type="float" required={false} default="0.2">
  No description available.
</ParamField>

<ParamField query="tools" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="output_json" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="output_pydantic" type="Optional" required={false}>
  No description available.
</ParamField>

<ParamField query="reasoning_steps" type="bool" required={false} default="False">
  No description available.
</ParamField>

### Returns

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

## Uses

* `agenerate_image`

## Used By

* [`Agent.run_autonomous_async`](../functions/Agent-run_autonomous_async)
* [`Agent.arun`](../functions/Agent-arun)
* [`Agent.astart`](../functions/Agent-astart)
* [`Agent.aexecute`](../functions/Agent-aexecute)
* [`Agent.launch`](../functions/Agent-launch)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/image_agent.py#L208">
  `praisonaiagents/agent/image_agent.py` at line 208
</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>
