Skip to content

Commit

Permalink
Create pollinations-ai.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin authored Jan 6, 2025
1 parent 4329df2 commit 28cd0d5
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions cheatsheets/artificial-intelligence/pollinations-ai.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 28cd0d5

Please sign in to comment.