pollinations-sdk
БесплатноБез исполняемых скриптовНе проверенUse the official @pollinations/sdk npm package when writing JavaScript apps or scripts that call Pollinations. Covers installation, API-key authentication…
от pollinations★ 5 348 звёзд на GitHubОб этом скилле
Pollinations SDK quickstart
These examples use the published stable SDK 5.0.0, not the repository's
in-progress alpha API. Check the installed version's types before using other
helpers; methods on main may not exist in the published package.
Install and authenticate
npm install @pollinations/[email protected]
Get a key at https://enter.pollinations.ai/keys and set
POLLINATIONS_API_KEY in the process environment. Never print it or commit it.
Requests spend from the user's balance: confirm the intended model and budget before running.
Save this as example.mjs and run node example.mjs:
import { configure, generateText, generateImage } from "@pollinations/sdk";
configure({ apiKey: process.env.POLLINATIONS_API_KEY });
const text = await generateText("Write a short haiku about a garden.");
console.log(text);
const image = await generateImage("A small garden in watercolor.");
await image.saveToFile("garden.png");
Check that text is nonempty and garden.png is readable. The helpers return a
single result by default; n requests multiple results. saveToFile is Node-only.
Beyond the quickstart
- For current model IDs, query https://gen.pollinations.ai/models. Pass a chosen
ID through the helper's
{ model }option; do not invent model names. - For browser apps, use a publishable app key and Pollinations Pay rather than embedding a secret key. See the Pollinations Pay guide.
- For device authorization, React, streaming, editing, and other media, consult the 5.0.0 package docs and its installed type declarations. Verify signatures before copying examples from a newer release.
- If no npm package is needed, use the REST API guide.
Установить pollinations-sdk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pollinations-sdk?
Use the official @pollinations/sdk npm package when writing JavaScript apps or scripts that call Pollinations. Covers installation, API-key authentication, and a first text or image request.
Как установить скилл pollinations-sdk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pollinations-sdk запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic