docs(image-generation): collapse redundant Quick Setup examples

Keep one minimal OpenRouter example and link to Provider Notes
for AIHubMix, MiniMax, and Gemini configuration.
This commit is contained in:
chengyongru 2026-05-19 00:51:16 +08:00
parent 86858cfcb8
commit 8e5715face

View File

@ -6,8 +6,6 @@ The feature is disabled by default. Enable it in `~/.nanobot/config.json`, confi
## Quick Setup ## Quick Setup
OpenRouter example:
```json ```json
{ {
"providers": { "providers": {
@ -19,76 +17,13 @@ OpenRouter example:
"imageGeneration": { "imageGeneration": {
"enabled": true, "enabled": true,
"provider": "openrouter", "provider": "openrouter",
"model": "openai/gpt-5.4-image-2", "model": "openai/gpt-5.4-image-2"
"defaultAspectRatio": "1:1",
"defaultImageSize": "1K"
} }
} }
} }
``` ```
AIHubMix example: See [Provider Notes](#provider-notes) for AIHubMix, MiniMax, and Gemini configuration examples.
```json
{
"providers": {
"aihubmix": {
"apiKey": "${AIHUBMIX_API_KEY}"
}
},
"tools": {
"imageGeneration": {
"enabled": true,
"provider": "aihubmix",
"model": "gpt-image-2-free",
"defaultAspectRatio": "1:1",
"defaultImageSize": "1K"
}
}
}
```
MiniMax example:
```json
{
"providers": {
"minimax": {
"apiKey": "${MINIMAX_API_KEY}"
}
},
"tools": {
"imageGeneration": {
"enabled": true,
"provider": "minimax",
"model": "image-01",
"defaultAspectRatio": "1:1"
}
}
}
```
Gemini example (Imagen 4):
```json
{
"providers": {
"gemini": {
"apiKey": "${GEMINI_API_KEY}"
}
},
"tools": {
"imageGeneration": {
"enabled": true,
"provider": "gemini",
"model": "imagen-4.0-generate-001",
"defaultAspectRatio": "1:1"
}
}
}
```
For Gemini Flash (which supports reference-image edits) see the [Gemini](#gemini) section below.
> [!TIP] > [!TIP]
> Prefer environment variables for API keys. nanobot resolves `${VAR_NAME}` values from the environment at startup. > Prefer environment variables for API keys. nanobot resolves `${VAR_NAME}` values from the environment at startup.