Model Context Protocol

by pollinations

4.8k 869 downloads Not rated yet MIT

About

According to its README, Model Context Protocol is described as "Your Friendly Open-Source Gen-AI Platform".

Details

License
MIT

Explore

- ๐Ÿ”“ 100% Open Source โ€” code, decisions, roadmap all public
- ๐Ÿค Community-Built โ€” 500+ projects already using our APIs
- ๐ŸŒฑ Pollen Quests โ€” earn Pollen by completing Quests (in alpha)
- ๐Ÿ–ผ๏ธ Image Generation โ€” Flux, GPT Image, Seedream, Kontext
- ๐ŸŽฌ Video Generation โ€” Seedance, Veo (alpha)
- ๐ŸŽต Audio โ€” Text-to-speech and speech-to-text
- ๐ŸŽฃ _Easy-to-use Packages_ (Packages)

<a href="https://star-history.com/#pollinations/pollinations&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=pollinations/pollinations&type=Date&theme=dark" width="600" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=pollinations/pollinations&type=Date" width="600" />
Star History Chart
</picture>
</a>

Add this to your MCP client configuration:

{
  "mcpServers": {
    "pollinations": {
      "command": "npx",
      "args": ["@pollinations/mcp"]
    }
  }
}

1๏ธโƒฃ Get your API key
Sign up at enter.pollinations.ai to generate your key.

2๏ธโƒฃ Choose what you want to generate
Pollinations supports:
- ๐Ÿ–ผ Images
- ๐Ÿ“ Text
- ๐Ÿ”Š Audio
- ๐ŸŽฌ Video

3๏ธโƒฃ Make your first request
Use one of the examples below to generate your first AI output in seconds.

Ask DeepWiki

npx @pollinations/mcp

Community alternatives like MCPollinations and Sequa MCP Server are also available.

AI assistants can:

- Generate images from text descriptions
- Create text-to-speech audio with various voice options
- Play audio responses through the system speakers
- Access all pollinations.ai models and services
- List available models, voices, and capabilities

For more advanced usage, check out our API documentation.

Get your API key at enter.pollinations.ai

generateImageUrl

Generate an image URL from a text prompt. Returns a shareable/embeddable URL without downloading the image. Supports all image models and parameters including image-to-image with the 'image' parameter.

generateImage

Generate an image from a text prompt and return the base64-encoded image data. Full control over all generation parameters. Supports image-to-image with kontext, seedream, nanobanana models.

generateImageBatch

Generate multiple images in parallel (up to 10). Best with sk_ keys (no rate limits). pk_ keys will be rate-limited. Each prompt generates one image with shared parameters.

generateVideo

Generate a video from a text prompt or image. Models: veo (text-to-video, 4-8s, audio), seedance (text/image-to-video, 2-10s), seedance-pro (best quality). Use 'image' parameter with seedance models for image-to-video generation.

generateVideoUrl

Generate a video URL from a text prompt. Returns a shareable/embeddable URL without downloading the video. Models: veo (4-8s, audio), seedance (2-10s), seedance-pro (best quality).

describeImage

Analyze and describe an image using vision-capable AI models. Pass an image URL and optionally a custom prompt. Great for image captioning, content analysis, OCR, and visual Q&A.

analyzeVideo

Analyze a video using AI. Supports YouTube URLs and direct video links. Uses gemini-large for native video understanding (frames + audio). Great for video summarization, content analysis, and Q&A about videos.

listImageModels

List all available image and video generation models with their capabilities. Shows which models support image-to-image, video generation, and other features. Models are fetched dynamically from the API.

generateText

Generate text from a simple prompt. Easy-to-use text generation with essential parameters. For advanced features (tool calling, multi-turn, audio), use chatCompletion instead.

chatCompletion

OpenAI-compatible chat completions with ALL parameters. Supports: - Multi-turn conversations with message history - Function/tool calling for AI agents - Audio input/output (openai-audio model) - Reasoning mode (kimi, perplexity-reasoning, openai-large, gemini-large) - JSON/structured output - Built-in Gemini tools (google_search, code_execution, etc.) - Perplexity web search with citations

listTextModels

List all available text generation models with their capabilities. Shows which models support reasoning, tools, audio, vision, etc. Models are fetched dynamically from the API.

webSearch

Search the web for real-time information using search-enabled models. Returns answers with source citations. Great for current events, facts, research.

getPricing

Get pricing information for all models. Shows cost per token/image in pollen.

respondAudio

Generate an audio response to a text prompt. The AI will respond to your prompt with speech.

sayText

Generate speech that says the provided text verbatim. Direct text-to-speech.

listAudioVoices

List all available audio voices and supported formats. Voices are fetched dynamically from the API.

transcribeAudio

Transcribe audio from a URL. Uses gemini-large for accurate speech-to-text transcription.

setApiKey

Set your pollinations.ai API key for authenticated requests. Get your key at https://enter.pollinations.ai/keys

getKeyInfo

Get information about the currently set API key

clearApiKey

Clear the stored API key

getBalance

Get the current Pollen balance for the authenticated API key. Returns key-scoped balance if the key has its own budget, otherwise account-wide. Requires an API key with 'account:usage' permission.

getUsage

Get usage history for the authenticated key. By default returns the most recent per-request records (model, cost, tokens, latency). Set 'daily: true' for a daily aggregated summary grouped by date and model. Requires 'account:usage' permission.

listQuests

List quests and earned rewards for the authenticated account. Read-only; claiming rewards requires a dashboard session. Requires 'account:usage' permission.

- generateImageUrl: Generate an image URL from a text prompt. Returns a shareable/embeddable URL without downloading the image. Supports all image models and parameters including image-to-image with the 'image' parameter.
- generateImage: Generate an image from a text prompt and return the base64-encoded image data. Full control over all generation parameters. Supports image-to-image with kontext, seedream, nanobanana models.
- generateImageBatch: Generate multiple images in parallel (up to 10). Best with sk_ keys (no rate limits). pk_ keys will be rate-limited. Each prompt generates one image with shared parameters.
- generateVideo: Generate a video from a text prompt or image. Models: veo (text-to-video, 4-8s, audio), seedance (text/image-to-video, 2-10s), seedance-pro (best quality). Use 'image' parameter with seedance models for image-to-video generation.
- generateVideoUrl: Generate a video URL from a text prompt. Returns a shareable/embeddable URL without downloading the video. Models: veo (4-8s, audio), seedance (2-10s), seedance-pro (best quality).
- describeImage: Analyze and describe an image using vision-capable AI models. Pass an image URL and optionally a custom prompt. Great for image captioning, content analysis, OCR, and visual Q&A.
- analyzeVideo: Analyze a video using AI. Supports YouTube URLs and direct video links. Uses gemini-large for native video understanding (frames + audio). Great for video summarization, content analysis, and Q&A about videos.
- listImageModels: List all available image and video generation models with their capabilities. Shows which models support image-to-image, video generation, and other features. Models are fetched dynamically from the API.
- generateText: Generate text from a simple prompt. Easy-to-use text generation with essential parameters. For advanced features (tool calling, multi-turn, audio), use chatCompletion instead.
- chatCompletion: OpenAI-compatible chat completions with ALL parameters. Supports:
- Multi-turn conversations with message history
- Function/tool calling for AI agents
- Audio input/output (openai-audio model)
- Reasoning mode (kimi, perplexity-reasoning, openai-large, gemini-large)
- JSON/structured output
- Built-in Gemini tools (google_search, code_execution, etc.)
- Perplexity web search with citations
- listTextModels: List all available text generation models with their capabilities. Shows which models support reasoning, tools, audio, vision, etc. Models are fetched dynamically from the API.
- webSearch: Search the web for real-time information using search-enabled models. Returns answers with source citations. Great for current events, facts, research.
- getPricing: Get pricing information for all models. Shows cost per token/image in pollen.
- respondAudio: Generate an audio response to a text prompt. The AI will respond to your prompt with speech.
- sayText: Generate speech that says the provided text verbatim. Direct text-to-speech.
- listAudioVoices: List all available audio voices and supported formats. Voices are fetched dynamically from the API.
- transcribeAudio: Transcribe audio from a URL. Uses gemini-large for accurate speech-to-text transcription.
- setApiKey: Set your pollinations.ai API key for authenticated requests. Get your key at https://enter.pollinations.ai/keys
- getKeyInfo: Get information about the currently set API key
- clearApiKey: Clear the stored API key
- getBalance: Get the current Pollen balance for the authenticated API key. Returns key-scoped balance if the key has its own budget, otherwise account-wide. Requires an API key with 'account:usage' permission.
- getUsage: Get usage history for the authenticated key. By default returns the most recent per-request records (model, cost, tokens, latency). Set 'daily: true' for a daily aggregated summary grouped by date and model. Requires 'account:usage' permission.
- listQuests: List quests and earned rewards for the authenticated account. Read-only; claiming rewards requires a dashboard session. Requires 'account:usage' permission.

<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="assets/logo-text-white.svg" />
pollinations.ai
</picture>

<p><strong>Open-source AI for people who make things.</strong></p>

Stars
License
Discord

Website ยท Dashboard ยท API Docs ยท Discord

</div>

<p align="center">Pixel art cozy hackerspace โ€” robot at terminal, nomnom creature eating code, bee with glasses</p>

๐Ÿ†• Recent Apps

| Name | Description | Author |
|------|-------------|--------|
| ๐Ÿค– LLM Playground | LLM Playground is a chat workspace for GPT, Claude, Pollinations, and other AI models with markdown/LaTeX rendering. Add custom AI Characters and team servers with channels and per-member quotas. | @voodoohop |
| ๐Ÿ–ผ๏ธ /motion | /motion is a free, open-source generative graphics studio for designing WebGL shader visuals and looping motion backgrounds. It lets users tweak shader parameters, customize palettes, preview visuals | @murderszn |
| ๐ŸŒฑ Sprout | Display the Sprout social card image at https://murderszn.github.io/sprout/public/og-image.png. | @murderszn |
| ๐Ÿ’ฌ Flow Linnom | Flow Linnom provides a chat interface to access multiple AI language models. | @omarsenusi |
| ๐ŸŽ™๏ธ VoiceEnable Agent | Enable voice functionality for VoiceEnable Agent. | @MetaMysteries8 |
| ๐Ÿ“ Textylize | Textylize is a mainly client-side text stylizer. It lets users apply text styling changes. | @bytetilde |
| ๐Ÿ–ผ๏ธ Poli image and chat | Use Poli image and chat to access free source providers and generate professional images or run chat tools. | @malik4498 |
| ๐ŸŽจ PolliArt Studio | Generate AI artwork from text prompts using the pollinations.ai API in PolliArt Studio. Choose Flux (free) or Turbo models and save generation history in local storage with a gallery view. | @wwishao |
| ๐Ÿ“š BeDream APP | BeDream APP is a comprehensive AI roleplay and creative writing platform designed for immersive, unrestricted storytelling. Users can craft deeply detailed characters, build elaborate worlds and s | @budibudi7 |
| ๐Ÿ—บ๏ธ World Weaver | Generate worlds with AI using GPT-5.4, render scenes with gpt-image-2, and create videos with ltx-2 via pollinations.ai unified API. | @MrMegnis |

Browse all apps โ†’

๐Ÿš€ New Unified API โ€” Now Live

We've launched https://gen.pollinations.ai โ€” a single endpoint for all your AI generation needs: text, images, audio, video โ€” all in one place.

What's New

- Unified endpoint โ€” single API at gen.pollinations.ai for all generation
- Pollen credits โ€” simple pay-as-you-go system ($1 โ‰ˆ 1 Pollen)
- All models, one place โ€” Flux, GPT-5, Claude, Gemini, Seedream, and more
- API keys โ€” publishable keys for frontend, secret keys for backend
- CLI โ€” npx @pollinations/cli for humans and AI agents (source)

> Get started at enter.pollinations.ai and check out the API docs

๐Ÿ†• Latest News

- 2026-07-06 โ€“ ๐ŸŽฎ Roblox Integration Tomdacat brings Pollinations to Roblox creators with an OpenAI-compatible API powering 40+ models. Try it <!-- app -->
- 2026-07-05 โ€“ โšก Gemini Prompt Caching Send cache_control markers with your Gemini requests to cache large contexts. Deterministic hits, faster responses, and significantly cheaper repeated queries via the Unified API.
- 2026-07-05 โ€“ ๐ŸŒŸ Sprout A new community creation has landed in the Greenhouse directory. Try it <!-- app -->
- 2026-07-05 โ€“ ๐ŸŽจ /motion An open-source generative graphics studio for designing WebGL shader visuals and looping motion backgrounds. Try it <!-- app -->
- 2026-07-05 โ€“ ๐Ÿค– LLM Playground A new chat workspace supporting multiple models, custom AI characters, and team servers with per-member quotas. Try it <!-- app -->
- 2026-07-03 โ€“ ๐Ÿค– Flow Linnom A new multi-model chat interface joins the community directory. For when querying just one LLM isn't enough. Try it <!-- app -->
- 2026-07-02 โ€“ ๐Ÿš€ 3D Generation API Send a text prompt to /3d/{prompt}, get a downloadable GLB file back. Powered by Trellis 2 and Rodin 2.5. API Docs
- 2026-07-02 โ€“ โšก RTX 5090s for Flux Image generation now routes to a self-hosted 5090 pool. Median generation time for 1024x1024 is down to 2.25s. Try it
- 2026-07-02 โ€“ ๐Ÿ”— OAuth 2.1 Support Build apps that authenticate users without touching raw API keys. Standard authorization-code grant with PKCE is now live. Dashboard
- 2026-06-29 โ€“ ๐Ÿš€ Community Text Endpoints Bring your own brain. Register and monetize your own OpenAI-compatible models via the dashboard, or query the new decentralized registry of community-run AI at community/{username}/{model-id}.
---

๐ŸŒฑ Introduction

pollinations.ai is an open-source generative AI platform based in Berlin, powering 500+ community projects with accessible text, image, video, and audio generation APIs. We build in the open and keep AI accessible to everyoneโ€”thanks to our amazing supporters.

๐Ÿš€ Key Features

- ๐Ÿ”“ 100% Open Source โ€” code, decisions, roadmap all public
- ๐Ÿค Community-Built โ€” 500+ projects already using our APIs
- ๐ŸŒฑ Pollen Quests โ€” earn Pollen by completing Quests (in alpha)
- ๐Ÿ–ผ๏ธ Image Generation โ€” Flux, GPT Image, Seedream, Kontext
- ๐ŸŽฌ Video Generation โ€” Seedance, Veo (alpha)
- ๐ŸŽต Audio โ€” Text-to-speech and speech-to-text
- ๐ŸŽฃ _Easy-to-use Packages_ (Packages)

<a href="https://star-history.com/#pollinations/pollinations&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=pollinations/pollinations&type=Date&theme=dark" width="600" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=pollinations/pollinations&type=Date" width="600" />
Star History Chart
</picture>
</a>

Quick Start (3 Steps)

1๏ธโƒฃ Get your API key
Sign up at enter.pollinations.ai to generate your key.

2๏ธโƒฃ Choose what you want to generate
Pollinations supports:
- ๐Ÿ–ผ Images
- ๐Ÿ“ Text
- ๐Ÿ”Š Audio
- ๐ŸŽฌ Video

โ€ฆ

No reviews yet โ€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.

Videos about Model Context Protocol

Relevant YouTube tutorials, setups, and demos