Prerequisites¶
UV¶
The project is built and configured with UV. I recommend using it.
But you can use other tools like Conda if you prefer.
See Installing UV for more informations on how to install UV.
Local or Cloud AI platforms¶
For now, Polymage supports the following platforms:
Local platforms¶
- Ollama (https://ollama.com), available for macOS, Windows, and Linux
- LmStudio (https://lmstudio.ai), available for macOS, Windows, and Linux
- DrawThings (https://drawthings.ai), available only on macOS
If you use a local platform, you must start them in developper (API) mode before using Polymage.
Cloud platforms (with free tier API)¶
- Groq ( https://groq.com/ )
- Cloudflare ( https://developers.cloudflare.com/workers-ai/ )
- Togetherai ( https://docs.together.ai/intro )
- Hugginface ( https://huggingface.co/docs/hub/en/api )
If you use a cloud platform you need to export the SECRET tokens as environment variables Because Polymage need them to connect to the platform API
- for Groq
GROQ_API_KEY=
- for Cloudflare
CLOUDFLARE_ID=
CLOUDFLARE_TOKEN= - for Togetherai
TOGETHERAI_TOKEN=
- for Hugginface
HF_TOKEN=