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.
- π 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
pip install easilyai
Get up and running in minutes with these simple examples:
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)
# 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"
)
# 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()
Provider | Text Generation | Image Generation | Text-to-Speech |
---|---|---|---|
OpenAI | β | β | β |
Anthropic | β | β | β |
Google Gemini | β | β | β |
X.AI Grok | β | β | β |
Ollama | β | β | β |
Custom AI | β | β | β |
For comprehensive guides, API reference, and advanced usage examples, visit our documentation:
π View Full Documentation β
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
- 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