AI Providers

AI Providers

Retail Mind is AI-agnostic. Bring your own key or point it at a local model.

Supported Providers

Providerprovider_typeRequires API Key
OpenAI (GPT-4o, etc.)openaiYes
Anthropic (Claude)anthropicYes
Google GeminigeminiYes
Ollama (local)ollamaNo
LM Studio (local)lmstudioNo
Any OpenAI-compatible APIcustomOptional

Add an OpenAI Provider

curl -X POST http://localhost:8000/v1/ai-providers \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "GPT-4o",
    "provider_type": "openai",
    "model": "gpt-4o",
    "api_key": "sk-..."
  }'

Add a Local Ollama Provider

curl -X POST http://localhost:8000/v1/ai-providers \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Local Llama 3",
    "provider_type": "ollama",
    "model": "llama3:8b",
    "config": { "base_url": "http://localhost:11434" }
  }'

Set as Default

curl -X PATCH http://localhost:8000/v1/ai-providers/{provider_id}/default \
  -H "Authorization: Bearer $API_KEY"