model-management

- Update .env and secrets/env.json (sops) with credentials

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "model-management" with this command: npx skills add pollinations/pollinations/pollinations-pollinations-model-management

Checklist

  • Update .env and secrets/env.json (sops) with credentials

  • Update config/handler with model routing

  • Update registry with pricing and provider

  • Run tests (see Testing below)

⚠️ Pricing depends on BOTH model AND provider. Always verify pricing on the provider's website.

Files to Update

Text Models

File Purpose

text.pollinations.ai/.env

API keys, endpoints

text.pollinations.ai/secrets/env.json

Encrypted secrets (use sops)

text.pollinations.ai/configs/modelConfigs.ts

Model routing config

text.pollinations.ai/availableModels.ts

Service name → config mapping

shared/registry/text.ts

Pricing, provider, aliases, description

Image/Video Models

File Purpose

image.pollinations.ai/.env

API keys, endpoints

image.pollinations.ai/secrets/env.json

Encrypted secrets (use sops)

image.pollinations.ai/src/createAndReturnImages.ts

Model handlers

shared/registry/image.ts

Pricing, provider, aliases, description

Quick Actions

Action .env

Config/Handler Registry

New model ✅ ✅ ✅ (pricing!)

Change endpoint only ✅

Change provider ✅ ✅ ✅ (pricing!)

Make paid-only

✅ (paidOnly: true )

Disable model

✅ (remove) ✅ (remove)

Upgrade model ✅ (if provider changes) ✅ ✅ (pricing!)

Testing

After updating model files, run these tests from enter.pollinations.ai/ :

1. Alias resolution (fast, no network) — verifies aliases map to service IDs

npx vitest run test/aliases.test.ts

2. Integration tests for the specific model (uses VCR snapshots)

npx vitest run test/integration/text.test.ts --testNamePattern="<service-name> "

Notes:

  • VCR snapshots are auto-recorded on first run if the EC2 text service is reachable

  • Run npm run decrypt-vars first if you haven't already

Secrets (sops)

sops -d <service>/secrets/env.json > /tmp/plain.json

Edit with jq or manually

cp /tmp/plain.json <service>/secrets/env.json sops -e -i <service>/secrets/env.json rm /tmp/plain.json

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

pollinations-sketch-note

Generates AI-powered hand-drawn style sketch notes by auto-searching and summarizing topics from Wikipedia and Baidu Baike in three artistic styles.

Registry SourceRecently Updated
1510Profile unavailable
General

Model Switcher

Automatically switch between different AI models based on task complexity. Supports all available models in your OpenClaw setup. Triggers when detecting comp...

Registry SourceRecently Updated
5160Profile unavailable
Coding

code-formatting

No summary provided by upstream source.

Repository SourceNeeds Review
Research

web-research

No summary provided by upstream source.

Repository SourceNeeds Review