From 28cd0d5bf447221574766066599c414c7e766007 Mon Sep 17 00:00:00 2001 From: Michael Currin <18750745+MichaelCurrin@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:02:04 +0100 Subject: [PATCH] Create pollinations-ai.md --- .../pollinations-ai.md | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 cheatsheets/artificial-intelligence/pollinations-ai.md diff --git a/cheatsheets/artificial-intelligence/pollinations-ai.md b/cheatsheets/artificial-intelligence/pollinations-ai.md new file mode 100644 index 000000000..aaa55dbfb --- /dev/null +++ b/cheatsheets/artificial-intelligence/pollinations-ai.md @@ -0,0 +1,50 @@ +# Pollinations AI + +Free open-source service for AI-generated text and images. Available as an API, without needing authorization. + +It runs on their free Google cloud credits. Their docs say they use rate limiting such as 20 requests per minute for the text API, excluding cached responses. + +## About + +- Homepage https://pollinations.ai/ - includes generate generator and samples (including Python with `pollinations` or `requests` or React frontend). +- Repo https://github.com/pollinations/pollinations +- API docs https://github.com/pollinations/pollinations/blob/master/APIDOCS.md +- React Hooks interactive tool https://react-hooks.pollinations.ai/ + +## API + +See the API docs linked above. + +They have an API for text and one for images. The text one includes a path for an API that follows the OpenAI specification, so it can be used easily with the `openai` package or LangChain's OpenAI connector. + +- https://text.pollinations.ai/openai + +## Browser-based + +Easy access in the browser without an APi client + +See this page for parameters/options available: + +- https://github.com/pollinations/pollinations/blob/master/pollinations-react/README.md + +### Models + +- Text https://text.pollinations.ai/models +- Image https://image.pollinations.ai/models + +### Text + +e.g. + +https://text.pollinations.ai/A%20beautiful%20bedtime%20story + + +### Images + +Use the form on the Pollinations homepage. + +A generate image can be viewed and the link copied. + +e.g. + +https://image.pollinations.ai/prompt/calm%20serene%20forest%20meditation%20session%20in%20an%20eastern%20template%20at%20dawn&nologo=true&model=flux