1MinAI-API
An unofficial async Python client for the 1min.AI web interface.
Disclaimer: This library reverse-engineers the 1min.AI browser API. It is not affiliated with or endorsed by 1min.AI. Use responsibly. ---
Features
- Multi-turn conversations — stateful ChatSession keeps context across turns automatically
- Streaming — yield tokens in real time via Server-Sent Events
- Web search grounding — live data, toggleable per-session or per-request
- 30+ chat models — GPT, Claude, Gemini, Grok, DeepSeek, Llama, Mistral, Qwen, and more
- Image generation — Flux, DALL-E, GPT-Image, Gemini, Grok, Stable Diffusion, Recraft, Leonardo, and more
- Image editing — upscale, background removal/replacement, inpainting, variations, face swap, sketch-to-image, 3D, object removal, text removal, outpainting
- Text to speech — OpenAI TTS and ElevenLabs
- Speech to text — Whisper, GPT-4o Transcribe, ElevenLabs, Google STT
- Voice tools — isolate, clone, change, and design voices; generate sound effects
- Video generation — Kling, Sora, Veo, Luma Ray, Wan, and more; text-to-video and image-to-video
- Music generation — Google Lyria, Suno, Udio, MusicGen
- Code generation — GPT Codex, Qwen3 Coder, Grok Code, DeepSeek Coder, Claude
- Content tools — grammar, paraphrase, rewrite, summarise, expand, shorten, translate, blog/email/social/ad copy, YouTube tools, document translation
- Asset API — upload local files or public URLs (images, PDFs, audio, video) for use across all endpoints
- Conversation management — create, list, fetch history, and delete server-side threads
- Credit estimation — pre-flight cost check before sending a request
- Async-first — built on aiohttp, zero blocking calls
---
Related projects
ChatAI Console
A full-featured self-hosted web UI that supports Claude, ChatWithAI.app, and 1min.AI accounts.
Features:
- Multi-account management — Claude, ChatWithAI.app, and 1min.AI accounts in one place
- Real-time streaming with artifact rendering
- File upload and canvas preview panel
- Google OAuth sign-in flow
- Credit tracking and usage history
- Local conversation storage with pinning
---
Installation
Requires Python 3.10+.
pip install oneminai-webapi---