AIMind - Universal AI Interface
One API. 7 AI Models. Image Generation. Custom Agents. Privacy-First.
Features
- 7 AI Models - GPT-5, Gemini 2.5 (Pro/Flash/Lite), and more
- Image Generation - 1024x1024 with 8 aspect ratios, 11 styles, 3 quality levels
- 27 Built-in Agents - Fitness coach, coding mentor, business consultant, etc.
- Custom Agents - Create your own AI personas with local storage
- Streaming - Token-by-token responses for fast UX
- Memory - Multi-turn conversations with context
- Health Checks - Parallel diagnostics to verify all models
- Privacy-First - Local storage only, no cloud, no tracking
Installation
pip install aimind
Quick Start
from aimind import AIMind
ai = AIMind()
# Chat
response = ai.chat("Hello!")
print(response)
# Stream tokens
for chunk in ai.chat_stream("Tell me a story"):
print(chunk, end="", flush=True)
# Generate image
img = ai.generate_image("A sunset over mountains")
img.save("sunset.png")
Available Models (2026)
Chat Models
Fast (~1s)
google/gemini-2.5-flash-liteopenai/gpt-5-nano
Balanced (~2s)
google/gemini-2.5-flashopenai/gpt-5-mini
Powerful (~3-4s)
google/gemini-2.5-proopenai/gpt-5
Image Models
google/gemini-2.5-flash-image- 1024x1024, fast
Image Generation
from aimind import AIMind, AspectRatio, ImageStyle, ImageQuality
ai = AIMind()
# Cinematic wallpaper (16:9)
img = ai.generate_image(
"Epic mountain landscape at golden hour",
aspect_ratio=AspectRatio.WIDE,
style=ImageStyle.CINEMATIC,
quality=ImageQuality.HD,
)
img.save("wallpaper.png")
# Phone wallpaper (9:16)
img = ai.generate_image(
"Futuristic city at night",
aspect_ratio=AspectRatio.PORTRAIT,
style=ImageStyle.RENDER_3D,
)
img.save("phone_bg.png")
# Batch generation (4 images in parallel)
images = ai.generate_image("A dragon", n=4)
for i, img in enumerate(images):
img.save(f"dragon_{i:02d}.png")
Aspect Ratios
1:1(Square) - Default16:9(Wide) - Cinematic9:16(Portrait) - Phone4:3,3:4- Classic photo21:9- Ultrawide3:2,2:3- DSLR
Styles
Auto, Photorealistic, Digital Art, Anime, Oil Painting, Watercolor, 3D Render, Pixel Art, Sketch, Cinematic, Fantasy
Quality
Standard (fast), HD (detailed), Ultra (maximum)
🤖 Custom Agents
Create AI agents with custom personas. Stored locally for privacy.
# Create
agent_id = ai.create_agent(
name="Python Expert",
description="Senior Python developer",
system_prompt="You are a senior Python developer with 20 years of experience..."
)
# Use
response = ai.chat_with_agent(agent_id, "Explain decorators")
# List
agents = ai.list_custom_agents()
# Update
ai.update_agent(agent_id, description="Updated!")
# Delete
ai.delete_agent(agent_id)
Storage: ~/.aimind/custom_agents.json (local only, no cloud)
🩺 Health Checks
# Quick ping (~1s)
report = ai.ping()
print(f"Status: {report['status']}, Latency: {report['latency_ms']}ms")
# Full diagnostics (parallel, ~10s)
report = ai.ping(test_models=True, test_image=True)
for model_id, m in report["models"].items():
print(f" {m['status']:8} {m['latency_ms']:7}ms {model_id}")
📊 Built-in Agents (27)
Health & Wellness
fitness-coach,wellness-guide,nutritionist,meditation-guide
Professional
financial-advisor,business-consultant,career-coach,marketing-specialistproductivity,resume-reviewer,interview-prep,sales-coach
Technical
coding-mentor,data-analyst,math-tutor,research-assistantstudy-helper,legal-assistant
Creative
creative,writing-coach,ux-designer,language-teacher,travel-planner
Support
customer-support,relationship-advisor,parenting-coach
Privacy
- ✅ Local storage only - Custom agents in
~/.aimind/ - ✅ No cloud sync - Data never leaves your machine
- ✅ No telemetry - Zero usage tracking
- ✅ No accounts - No registration required
- ✅ Full control - You own all your data
📚 Documentation
README.md- This fileIMAGE_GEN_GUIDE.md- Image generation detailsCUSTOM_AGENTS_GUIDE.md- Custom agent creationCURRENT_MODELS_2026.md- Current AI models availableDUCKAI_INTEGRATION.md- Duck.ai comparison & info
Comparison: AIMind vs Duck.ai
| Feature | AIMind | Duck.ai |
|---|---|---|
| Models | 7 | 6 |
| API Access | ✅ Python | ❌ Web-only |
| Image Gen | ✅ Full control | ✅ Basic |
| Custom Agents | ✅ Local | ❌ No |
| Memory | ✅ Full | ❌ Limited |
| Privacy | ✅ Local | ✅ Anonymous |
| Programming | ✅ Full | ❌ Manual |
Duck.ai: Great for casual chat, visit https://duck.ai/
AIMind: Best for developers, full API control
Requirements
- Python 3.7+
- requests>=2.28.0
- aiohttp>=3.8.0
License
MIT License - see LICENSE file
Support
- Telegram: @glitchyapi
- Email: glitchyapi@gmail.com
- PyPI: https://pypi.org/project/aimind/
Built with ❤️ by the GlitchyAPI Team
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aimind-1.1.0.tar.gz.
File metadata
- Download URL: aimind-1.1.0.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7a5a5ebdb0d09105b78b0bdffb9596784bd6ff0b157b3a9b56800107000d118
|
|
| MD5 |
0934830083426ed966dc0cb50b3e06c7
|
|
| BLAKE2b-256 |
f4b0d203a11b874e29fe6db9c81266c738d99c26bb6e67610a548d3a3ea8c8ec
|
File details
Details for the file aimind-1.1.0-py3-none-any.whl.
File metadata
- Download URL: aimind-1.1.0-py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
394d3839588ebca531ea80e84df5589fabdc2ae9e2e0f95e0d4bb9b0b9eb33c4
|
|
| MD5 |
83c425f54ab8e9bdc6edb645f9b3b0ff
|
|
| BLAKE2b-256 |
fb92022dcd5c54bbe5ff528f0e48f678578adb65e8c6854a76a26648a91c1a63
|