polloaiofficial/pollo-skills / skills/pollo-ai-video-generator
pollo-ai-video-generator
UnverifiedGenerate AI videos using the Pollo AI API. Supports 13 leading models (Kling, Sora, Runway, Veo, Pixverse, Hailuo, Vidu, Luma, Pika, Wan, Seedance, Hunyuan, Pollo) with 50+ versions. It also supports task polling, credit cost estimation, and credit balance checks. Use this skill whenever the user wants to generate an AI video from text or image, use any AI video model, check Pollo credits, or mentions Pollo AI, pollo.ai, or any of the supported model names. Even if the user just says "generate a video" or "make me a short clip" without mentioning Pollo, this skill should be used.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 15.5 KB |
| agents/openai.yaml | config | 310 B |
| references/brands/bytedance.md | markdown | 6.7 KB |
| references/brands/google.md | markdown | 9.1 KB |
| references/brands/hunyuan.md | markdown | 1.2 KB |
| references/brands/kling-ai.md | markdown | 13.4 KB |
| references/brands/luma.md | markdown | 4.2 KB |
| references/brands/minimax.md | markdown | 4.4 KB |
| references/brands/pika.md | markdown | 2.8 KB |
| references/brands/pixverse.md | markdown | 10.8 KB |
| references/brands/pollo.md | markdown | 4.2 KB |
| references/brands/runway.md | markdown | 1.8 KB |
| references/brands/sora.md | markdown | 2.4 KB |
| references/brands/vidu.md | markdown | 8.1 KB |
| references/brands/wanx.md | markdown | 7.4 KB |
| references/common.md | markdown | 3.1 KB |
| references/models-index.md | markdown | 4.8 KB |
| scripts/poll_task.py | script | 5.7 KB |
| scripts/pollo_api.py | script | 3.8 KB |
| scripts/pollo_config.py | script | 3.0 KB |
| scripts/pollo_setup.py | script | 4.1 KB |
scripts/pollo_config.py
View on GitHub#!/usr/bin/env python3
"""
Shared config module for Pollo AI scripts.
Reads API key and base URL from ~/.pollo/config.toml.
Uses a minimal TOML parser — no external dependencies.
"""
import os
import re
import sys
from pathlib import Path
CONFIG_PATH = Path.home() / ".pollo" / "config.toml"
DEFAULT_BASE_URL = "https://pollo.ai/api/platform"
def parse_toml_simple(text: str) -> dict:
"""Minimal TOML parser supporting [section] and key = "value" pairs."""
result = {}
current_section = None
for line in text.splitlines():
line = line.strip()
if not line or line.startswith("#"):
continue
section_match = re.match(r"^\[([a-zA-Z0-9_.-]+)\]$", line)
if section_match:
current_section = section_match.group(1)
result.setdefault(current_section, {})
continue
kv_match = re.match(r'^([a-zA-Z0-9_-]+)\s*=\s*"((?:[^"\\]|\\.)*)"$', line)
if not kv_match:
kv_match = re.match(r"^([a-zA-Z0-9_-]+)\s*=\s*'((?:[^'\\]|\\.)*)'$", line)
if kv_match:
key, value = kv_match.group(1), kv_match.group(2)
value = value.replace('\\"', '"').replace("\\'", "'")
if current_section:
result[current_section][key] = value
else:
result[key] = value
return result
def load_config() -> dict:
"""Load config from env vars or ~/.pollo/config.toml. Returns dict with api_key and base_url."""
# Priority 1: Environment variable
env_key = os.environ.get("POLLO_API_KEY", "").strip()
if env_key:
base_url = os.environ.get("POLLO_BASE_URL", DEFAULT_BASE_URL).strip()
return {"api_key": env_key, "base_url": base_url, "source": "env"}
# Priority 2: Config file
if not CONFIG_PATH.exists():
raise FileNotFoundError(
f"Config not found at {CONFIG_PATH}\n"
f"Run: python3 scripts/pollo_setup.py"
)
text = CONFIG_PATH.read_text(encoding="utf-8")
parsed = parse_toml_simple(text)
api_section = parsed.get("api", {})
api_key = api_section.get("key", "")
base_url = api_section.get("base_url", DEFAULT_BASE_URL)
if not api_key:
raise ValueError(
f"No API key found in {CONFIG_PATH}\n"
f"Run: python3 scripts/pollo_setup.py"
)
return {"api_key": api_key, "base_url": base_url}
def get_api_key() -> str:
"""Convenience: return just the API key string."""
return load_config()["api_key"]
if __name__ == "__main__":
try:
config = load_config()
source = config.get("source", "file")
if source == "env":
print("Config loaded from environment variable POLLO_API_KEY")
else:
print(f"Config loaded from {CONFIG_PATH}")
print(f" base_url: {config['base_url']}")
print(f" api_key: {config['api_key'][:8]}...{config['api_key'][-4:]}")
except (FileNotFoundError, ValueError) as e:
print(f"Error: {e}", file=sys.stderr)
sys.exit(2)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |