Skip to main content

Supported Providers

Flo AI supports multiple LLM providers with consistent interfaces, allowing you to easily switch between different models and providers.

OpenAI

Basic Configuration

Available Models

Streaming Support

Anthropic Claude

Basic Configuration

Available Models

Google Gemini

Basic Configuration

Available Models

Google Vertex AI

Configuration

Ollama (Local)

Configuration

Provider Comparison

Model Selection Guide

For Different Use Cases

Performance Optimization

Environment Configuration

API Keys

Python Configuration

Advanced Configuration

Custom Headers

Retry Configuration

Rate Limiting

Model Switching

Dynamic Model Selection

A/B Testing

Troubleshooting

Common Issues

Ensure your API keys are correctly set:
If you hit rate limits, implement backoff:
Check that the model name is correct and available in your region:

Best Practices

Model Selection

  1. Start with GPT-4o-mini for most tasks
  2. Use GPT-4o for complex reasoning
  3. Try Claude for creative tasks
  4. Use Gemini for multimodal or fast responses
  5. Use Ollama for privacy-sensitive applications

Cost Optimization

  1. Use appropriate models for task complexity
  2. Implement caching for repeated queries
  3. Set reasonable limits on max_tokens
  4. Monitor usage and costs
  5. Use streaming for long responses

Performance Tips

  1. Batch requests when possible
  2. Use connection pooling for high-volume applications
  3. Implement retry logic with exponential backoff
  4. Cache responses for identical inputs
  5. Monitor latency and optimize accordingly