Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pollinations-sdk

БесплатноБез исполняемых скриптовНе проверен

Use the official @pollinations/sdk npm package when writing JavaScript apps or scripts that call Pollinations. Covers installation, API-key authentication…

pollinationsот 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), без исполняемых скриптов.

Похожие скиллы

Сравнить pollinations-sdk с