# Overview

BonzAI provides **free, unlimited, local** AI generation across six modalities. All inference runs on your machine — nothing is sent to external servers.

## Pipelines

| Modality                                 | Models                                | Local Port |
| ---------------------------------------- | ------------------------------------- | ---------- |
| [Text (LLM)](/ai-generation/text.md)     | 21 models via OpenClaw                | 3002       |
| [Image](/ai-generation/image.md)         | 4 pipelines (FLUX, SDXL, Z-Image)     | 65000      |
| [Audio & Music](/ai-generation/audio.md) | Kokoro TTS, Qwen3-TTS, ACE-Step       | 65000      |
| [Video](/ai-generation/video.md)         | LTX-2 (text-to-video, image-to-video) | 65000      |
| [3D](/ai-generation/3d.md)               | AI-generated Three.js code            | —          |

## How It Works

BonzAI runs two local inference backends:

1. **OpenClaw** (port 3002) — Handles all LLM text generation via an OpenAI-compatible API (`/v1/chat/completions`)
2. **Flask Server** (port 65000) — Handles image, audio, music, video, and vision pipelines

Models are downloaded on first use to `~/bonzai-models/` and cached for future sessions.

## Generation vs. Minting

**All generation is free** — you don't need tokens or a wallet to use any AI pipeline.

Levels (requiring BONZAI token holdings) only gate **minting** your generated content as NFTs. See [Token & Levels](/web3-and-tokenomics/token-levels.md) for details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bonzai.sh/ai-generation/ai-generation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
