Call LLM APIs from PinMe Workers
pinme-llmskillsetup L2★3,623
glitternetwork/pinme ↗What it does
Use this skill when a PinMe project (Worker TypeScript) needs to call OpenRouter-backed LLM APIs, including models, chat/completions, streaming, or OpenRouter web search. Guides AI to generate correct Worker TS code.
Best for
Calling LLMs with web search capability from Workers without managing OpenRouter credentials
Inputs
- · Model ID
- · Message array
- · Optional tools array with web_search
Outputs
- · LLM response as text or streaming SSE
Requires
- · HTTP API
- · Cloudflare Workers
- · D1 SQLite
- · OpenRouter LLM API
- · PinMe platform
Preconditions
Worker with env.API_KEY and env.PROJECT_NAME; OpenRouter key configured in PinMe
Failure modes
- · 401 - Invalid API key
- · 403 - Insufficient balance
- · 413 - Request body > 1MB
- · 502 - LLM service unavailable
Trust signals
- · Response format documented
- · Error pass-through behavior specified
- · Web search integration example