EasilyAI
A python library that simplifies the usage of AI!
Install / Use
/learn @GustyCube/EasilyAIQuality Score
Category
Development & EngineeringSupported Platforms
README
Overview
EasilyAI is a powerful Python library that simplifies AI application development by providing a unified interface for multiple AI services including OpenAI, Anthropic, Google Gemini, X.AI Grok, and Ollama. Whether you need text generation, image creation, or text-to-speech functionality, EasilyAI offers a consistent API that makes switching between providers effortless.
🚀 Key Features
- 🔄 Multi-Provider Support: Seamlessly switch between OpenAI, Anthropic, Google Gemini, X.AI Grok, and Ollama
- 📝 Text Generation: Advanced language models for chat, completion, and creative writing
- 🎨 Image Generation: Create stunning visuals with DALL-E and other image models
- 🗣️ Text-to-Speech: High-quality voice synthesis with multiple voice options
- 🔗 Pipeline System: Chain multiple AI operations into powerful workflows
- 🛠️ Custom AI Integration: Easily extend with your own AI services
- ⚡ Unified API: One consistent interface for all providers and tasks
- 🎯 Auto Task Detection: Intelligent request routing based on content type
📦 Installation
pip install easilyai
🚀 Quick Start
Get up and running in minutes with these simple examples:
Basic Text Generation
import easilyai
# Create an app with your preferred provider
app = easilyai.create_app(
name="my_ai_app",
service="openai", # or "anthropic", "gemini", "grok", "ollama"
apikey="YOUR_API_KEY",
model="gpt-4"
)
# Generate text
response = app.request("Explain quantum computing in simple terms")
print(response)
Text-to-Speech
# Create a TTS app
tts_app = easilyai.create_tts_app(
name="my_tts_app",
service="openai",
apikey="YOUR_API_KEY",
model="tts-1"
)
# Convert text to speech
tts_app.request_tts(
text="Hello from EasilyAI!",
voice="onyx",
output_file="greeting.mp3"
)
AI Pipeline
# Chain multiple AI operations
pipeline = easilyai.EasilyAIPipeline(app)
pipeline.add_task("generate_text", "Write a haiku about coding")
pipeline.add_task("generate_image", "A serene coding environment")
results = pipeline.run()
🛠️ Supported AI Providers
| Provider | Text Generation | Image Generation | Text-to-Speech | |----------|:---------------:|:----------------:|:--------------:| | OpenAI | ✅ | ✅ | ✅ | | Anthropic | ✅ | ❌ | ❌ | | Google Gemini | ✅ | ❌ | ❌ | | X.AI Grok | ✅ | ❌ | ❌ | | Ollama | ✅ | ❌ | ❌ | | Custom AI | ✅ | ✅ | ✅ |
📚 Documentation
For comprehensive guides, API reference, and advanced usage examples, visit our documentation:
🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
- Documentation: https://gustycube.github.io/EasilyAI/overview.html
- PyPI Package: https://pypi.org/project/easilyai
- GitHub Repository: https://github.com/GustyCube/EasilyAI
- Issues & Support: https://github.com/GustyCube/EasilyAI/issues
