Optimize OpenRouter request latency and throughput. Use when performance is critical for your application. Trigger with phrases like 'openrouter performance', 'openrouter latency', 'openrouter speed', 'optimize openrouter'.
From openrouter-packnpx claudepluginhub nickloveinvesting/nick-love-plugins --plugin openrouter-packThis skill is limited to using the following tools:
references/batch-processing.mdreferences/best-practices-summary.mdreferences/caching-strategies.mdreferences/configuration-tuning.mdreferences/errors.mdreferences/examples.mdreferences/latency-optimization.mdreferences/model-selection-for-speed.mdreferences/monitoring-&-profiling.mdreferences/request-optimization.mdGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
This skill provides techniques for reducing latency, increasing throughput, and optimizing the performance of your OpenRouter integration.
stream: true to display tokens as they arrive, reducing perceived latency even if total time is unchangedgoogle/gemma-2-9b-it:free, anthropic/claude-3-haiku) have significantly lower latency than large reasoning modelsPromise.all or asyncio.gather instead of sequentially| Error | Cause | Fix |
|---|---|---|
| High TTFT (>5s) | Model is cold-starting or overloaded | Switch to a different provider of the same model; use streaming |
| Timeout errors | Request exceeded client timeout | Increase timeout for large completions; reduce max_tokens |
| Throughput bottleneck | Sequential request processing | Implement connection pooling and concurrent requests |
See ${CLAUDE_SKILL_DIR}/references/errors.md for full error reference.
See ${CLAUDE_SKILL_DIR}/references/examples.md for runnable code samples.