OpenRouter provides a unified API to access hundreds of LLM models from different providers (OpenAI, Anthropic, Google, Meta, and more) with automatic routing, cost tracking, and performance monitoring. Use this skill to make API calls to any OpenRouter model, compare responses across models, track costs and latency, and optimize model selection.
The scripts/callopenrouter.sh script provides a flexible CLI interface:
Example: If a model costs $0.0000025/token for prompts and $0.000002/token for completions, and uses 14 prompt + 277 completion tokens:
Utilizza questa competenza quando l'utente desidera chiamare diversi modelli LLM tramite l'API unificata di OpenRouter, confrontare le risposte dei modelli, tenere traccia dei costi e dei tempi di risposta o trovare il modello migliore per un'attività. I trigger includono richieste di testare modelli, confrontare prestazioni, utilizzare fornitori specifici (OpenAI, Anthropic, Google, ecc.) o ottimizzare velocità/costi. Fonte: rawwerks/raygent-skills.