AI Provider
SetAI_PROVIDER_FORMAT in .env to choose your provider:
Text output limit
Under Settings → Advanced Settings → Performance Configuration, set Maximum Output Tokens (default 32768). This is a global limit for text generation and image understanding, including streaming outlines and descriptions. Saving takes effect on subsequent requests; resetting restores the environment default. SetTEXT_MAX_OUTPUT_TOKENS=32768 in .env to change the environment default. Existing explicit ANTHROPIC_MAX_TOKENS values remain a legacy fallback when the new variable is unset. A saved UI value takes precedence.
OpenAI-compatible calls use max_tokens (GPT-5 and o1/o3/o4 models use max_completion_tokens), Anthropic and LazyLLM use max_tokens, and Gemini/Vertex use max_output_tokens. Codex OAuth retains its server-side limit. The configured value is an upper bound, not a requested response length; model/provider limits still apply. A longer response can cost more and take longer. If an upstream default truncates long descriptions, increasing this value can allow them to finish.
Gemini (Default)
OpenAI-Compatible
Image quality tier (GPT Image)
When the image model is served over an OpenAI-compatible API, pick the generation quality under Settings → Image Generation Model → Image Quality. The control appears when the image provider is OpenAI, Volcengine Agent Plan or Codex (OpenAI OAuth) and the model belongs to the GPT Image family (gpt-image-*, chatgpt-image-*); DALL·E, Seedream and other models hide it because the tier has no effect there. Codex talks to the Responses API, so it shows no images/chat protocol option.
Notes:
gpt-image-2.5-flareandgpt-image-2.5-sunburstaccept all six tiers.gpt-image-2,gpt-image-1.5,gpt-image-1, andchatgpt-image-*stop athigh; selectingxhigh/maxfalls back tohighand logs a warning.- Codex (OpenAI OAuth) reads the same setting:
autokeeps Codex’s historicalhigh, whilelow/medium/highand the 2.5xhigh/maxtiers are forwarded to the Codeximage_generationtool;xhigh/maxstill fall back tohighon older models. dall-e-3always usesstandard;dall-e-2and Volcengine Seedream receive no quality parameter.- Cost note: the 2.5 tiers sit lower than their 2.0 counterparts (2.5
highcosts roughly whatgpt-image-2mediumused to). To keep the oldhighlook, selectmax, which costs about what the oldhighdid. - Model names are matched by the
gpt-image/chatgpt-imageprefix, so dated snapshots such asgpt-image-2.5-flare-2026-09-08also route to the images API automatically. - You can set the default through the environment instead:
IMAGE_QUALITY=high(one ofauto/low/medium/high/xhigh/max). A value saved in Settings — including an explicitauto— takes precedence and survives restarts; the environment is only used until the first save.
SenseNova / SenseTime (OpenAI-Compatible)
The legacySenseNova LazyLLM provider remains available, and the default provider is unchanged. SenseNova U1 image models should use the OpenAI-compatible path: Banana Slides recognizes sensenova-u1* model names and switches to SenseNova’s native JSON endpoints (/images/generations and /images/edits) instead of the OpenAI SDK’s multipart images.edit request.
Keep Gemini for text and route only image generation through SenseNova:
- Use
https://token.sensenova.cn/v1; the oldhttps://api.sensenova.cn/compatible-mode/v1endpoint is unavailable. sensenova-u1.5-litesupports text-to-image and reference-image editing with1K / 2K / 4K.sensenova-u1,sensenova-u1-fast, andsensenova-u1.5-fastuse fixed-size text-to-image presets and do not support reference-image editing in this release.- Set
IMAGE_MODEL_SOURCE=openaifor image requests. Existing LazyLLMsensenovaconfigurations remain supported and are not deleted.
Volcengine AgentPlans
Volcengine ModelArk AgentPlans can be used through an OpenAI-compatible endpoint. Select “Volcengine AgentPlans” in Settings, or configure.env:
- Agent Plans requires a dedicated API key: the
ark-...key created in the Agent Plans console only works against theapi/plan/v3endpoint; a standard ModelArk key and theapi/v3endpoint are not interchangeable. - Use Agent Plans model names (e.g.
doubao-seed-2.1-turbo,kimi-k2.6) anddoubao-seedream-5.0-litefor image generation; standard ModelArk endpoint IDs (e.g.doubao-seed-2-1-pro-260628) do not exist on Agent Plans. - Selecting “Volcengine AgentPlans” in Settings prefills the Agent Plans base URL and recommended models; standard ModelArk users should use the “Doubao” path with
api/v3.
Vertex AI
LazyLLM (Multi-Vendor)
Routes requests to different Chinese AI vendors for text, image, and caption tasks:volcengine-python-sdk[ark] for Doubao/Volcengine, dashscope for Qwen/Wanxiang, and zhipuai for GLM/Zhipu.
LazyLLM source provides lazyllm install online-advanced, but the current PyPI wheel may not publish that group as a standard extra; Docker and prebuilt images therefore rely on these explicit dependencies.
Desktop builds (PyInstaller) explicitly collect and register every LazyLLM online vendor (qwen, doubao, deepseek, glm, kimi, minimax, sensenova, siliconflow, ppio, aiping, openai). LazyLLM discovers suppliers dynamically via pkgutil.iter_modules, which can fail inside a packaged runtime and cause Unsupported source: xxx; Banana Slides imports every supplier module explicitly when a provider is constructed and validates the configured vendor name (bundling the vendor SDKs - dashscope, zhipuai, volcenginesdkarkruntime, PyJWT - as well), so no extra configuration is needed.
Production Auth, Database & Storage Variables
When deploying Banana Slides publicly (for example via Cloudflare + Supabase), configure these security and persistence variables:MinerU (PDF Parsing)
MinerU provides high-quality PDF parsing for reference file uploads. Apply for a MinerU token here.Baidu API Key
For enhanced editable PPTX export with OCR-based text extraction, apply for an IAM API Key from Baidu Cloud (generous free tier available):ElevenLabs (Narration Video TTS)
By default, narration videos use edge-tts (Microsoft Edge voices, free, no API key required). You can switch to ElevenLabs for higher-quality, more natural-sounding voices. How to get an API key:- Sign up at elevenlabs.io — a free tier is available (10,000 characters/month).
- Go to Profile → API Keys (or visit elevenlabs.io/app/settings/api-keys).
- Click Create API Key, copy the key.
.env:
The free tier provides 10,000 characters per month. Each page of narration typically uses 200–500 characters. A 10-page presentation costs roughly 2,000–5,000 characters per export.
Runtime Settings Override
All of the above can also be configured via the web UI’s Settings page. Settings configured there are stored in the database and override.env values. Use “Reset to Default” in Settings to revert to .env values.