AI Features
OpenBin's AI features are fully optional. They require connecting your own API key or having an admin configure a server-wide key. Without an AI key, all other features work normally.
Supported Providers
| Provider | Notes |
|---|---|
| OpenAI | GPT-4o, GPT-4.1, GPT-5, and other OpenAI models |
| Anthropic | Claude Haiku, Sonnet, and Opus models |
| Google Gemini | Gemini 2.0 Flash, 2.5 Flash/Pro, and other Gemini models |
| OpenAI-compatible | Any endpoint following the OpenAI API format (e.g. Ollama, LM Studio, OpenRouter) |
Getting an API Key
Each provider requires its own API key. Sign up and create one from their developer platform:
- OpenAI — Create an account at platform.openai.com, then go to API Keys to generate a key. Requires adding billing credits. Models & pricing →
- Anthropic — Create an account at console.anthropic.com, set up billing under Settings → Billing, then go to API Keys → Create Key. Models & pricing →
- Google Gemini — Sign in at aistudio.google.com with a Google account, then click Get API key → Create API key. Includes a free tier with no billing required. Models & pricing →
Per-User Setup
- Go to Settings → AI.
- Select your provider.
- Enter your API key (see Getting an API Key above).
- Select or type the model name (see Recommended Models for suggestions).
- For OpenAI-compatible endpoints, enter the endpoint URL.
- Click Save.
AI features activate immediately after saving.
Server-Wide Setup (Admin)
Admins can configure a shared AI key via environment variables so all users get AI features without individual setup:
AI_PROVIDER=openai
AI_API_KEY=sk-...
AI_MODEL=gpt-4o
# For OpenAI-compatible endpoints:
AI_ENDPOINT_URL=https://your-endpoint.example.com/v1Users can still configure their own keys in Settings → AI, which takes precedence over the server-wide key.
INFO
Set AI_ENCRYPTION_KEY to an AES-256-GCM key to encrypt stored API keys at rest. Without this, keys are stored as plaintext in the database.
Photo Analysis
- Open a bin → Photos tab.
- Upload a photo of the bin's contents.
- Tap Analyze with AI.
- Review the AI's suggestions: bin name, items list, tags, and notes.
- Apply any or all suggestions — each field can be accepted or dismissed independently.
Photo analysis is useful for quickly populating a bin's metadata from a single photo without typing everything manually.
Natural Language Commands
The AI command bar (accessible from the bin list) accepts natural language instructions:
Add screwdriver to the tools bin
Move batteries to the garage area
Create a bin called Holiday Decorations with items: lights, ornaments, wrapping paper
Remove the extension cord from the electrical binOpenBin interprets the command, shows a preview of the action it will take, and asks for confirmation before making any changes.
Inventory Search
Ask natural language questions to search across all bins:
Where did I put the holiday lights?
Which bins have batteries?
What's in the attic?
Do I have any sandpaper?OpenBin searches your bins and returns matching results with an explanation of why each bin matched.
Custom Prompts
Advanced users can override the default AI prompts for each operation:
- Go to Settings → AI → Advanced.
- Enter a custom prompt for photo analysis, commands, search queries, or text structuring.
- Save.
Custom prompts are useful for domain-specific terminology, non-English languages, or specialized inventory contexts.
TIP
Leave a custom prompt field blank to use the built-in default for that operation.
Temperature and Token Settings
The advanced AI settings section exposes fine-tuning parameters:
| Parameter | Effect |
|---|---|
| Temperature | Controls randomness. Lower = more deterministic. Range: 0.0–2.0 |
| Max tokens | Caps the response length. |
| Top-p | Nucleus sampling probability. Lower = more focused output. |
| Request timeout | Seconds to wait before aborting an AI request. |
These settings apply per provider configuration.
Related
- Bulk Add — Create multiple bins from photos using AI
- Photos — Attach and manage bin photos
- Configuration — Server-wide AI environment variables