Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
retellai-cost-tuning - Skill - OpenSmartRoute
Skillv1.0.0
retellai-cost-tuning
Retell AI cost tuning — AI voice agent and phone call automation. Use when working with Retell AI for voice agents, phone calls, or telephony.
Imported from jeremylongshore/tons-of-skills-marketplace (skills/.curated/retellai-cost-tuning/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-cost-tuning. Copyright stays with the author (MIT).
Retell AI Cost Tuning
Overview
Implementation patterns for Retell AI cost tuning — voice agent and telephony platform.
Prerequisites
Completed retellai-install-auth setup
Instructions
Step 1: SDK Pattern
import Retell from 'retell-sdk';const retell = new Retell({ apiKey: process.env.RETELL_API_KEY! });const agents = await retell.agent.list();console.log(`Agents: ${agents.length}`);
Output
Retell AI integration for cost tuning
Error Handling
Error
Cause
Solution
401 Unauthorized
Invalid API key
Check RETELL_API_KEY
429 Rate Limited
Too many requests
Implement backoff
400 Bad Request
Invalid parameters
Check API documentation
Examples
Reduce cost without degrading a required human handoff
Measure average call duration, transfer rate, and failed-call retries for a
representative non-production sample before changing prompt length or model
settings. Trial the lower-cost configuration on a small canary, retaining the
existing agent version as rollback. Keep the human-handoff trigger unchanged
unless the service owner approves a new threshold; a shorter call is not a
saving if it silently increases unresolved customer requests.
Install retellai-cost-tuning and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "jeremylongshore-tons-of-skills-marketplace-retellai-cost-tuning",
"kind": "skill",
"name": "retellai-cost-tuning",
"description": "Retell AI cost tuning — AI voice agent and phone call automation. Use when working with Retell AI for voice agents, phone calls, or telephony. Trigger with phrases like \"retell cost tuning\", \"retellai-cost-tuning\", \"voice agent\".",
"publisher": "jeremylongshore",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"customer_support"
],
"tags": [
"skill-md",
"saas",
"retellai",
"voice",
"telephony",
"ai-agents",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Retell AI cost tuning — AI voice agent and phone call automation. Use when working with Retell AI for voice agents, phone calls, or telephony. Trigger with phrases like \"retell cost tuning\", \"retellai-cost-tuning\", \"voice agent\"."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
"path": "skills/.curated/retellai-cost-tuning/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/skills/.curated/retellai-cost-tuning/SKILL.md",
"key": "jeremylongshore/tons-of-skills-marketplace/skills/.curated/retellai-cost-tuning/SKILL.md"
},
"compatibility": "Designed for Claude Code",
"allowed_tools": [
"Read,",
"Write,",
"Edit,",
"Bash(npm:*),",
"Bash(curl:*),",
"Grep"
],
"license": "MIT"
},
"instructions": "# Retell AI Cost Tuning\n\n## Overview\n\nImplementation patterns for Retell AI cost tuning — voice agent and telephony platform.\n\n## Prerequisites\n\n- Completed `retellai-install-auth` setup\n\n## Instructions\n\n### Step 1: SDK Pattern\n\n```typescript\nimport Retell from 'retell-sdk';\nconst retell = new Retell({ apiKey: process.env.RETELL_API_KEY! });\n\nconst agents = await retell.agent.list();\nconsole.log(`Agents: ${agents.length}`);\n```\n\n## Output\n\n- Retell AI integration for cost tuning\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| 401 Unauthorized | Invalid API key | Check RETELL_API_KEY |\n| 429 Rate Limited | Too many requests | Implement backoff |\n| 400 Bad Request | Invalid parameters | Check API documentation |\n\n## Examples\n\n### Reduce cost without degrading a required human handoff\n\nMeasure average call duration, transfer rate, and failed-call retries for a\nrepresentative non-production sample before changing prompt length or model\nsettings. Trial the lower-cost configuration on a small canary, retaining the\nexisting agent version as rollback. Keep the human-handoff trigger unchanged\nunless the service owner approves a new threshold; a shorter call is not a\nsaving if it silently increases unresolved customer requests.\n\n## Resources\n\n- [Retell AI Documentation](https://docs.retellai.com)\n- [retell-sdk npm](https://www.npmjs.com/package/retell-sdk)\n\n## Next Steps\n\nSee related Retell AI skills for more workflows.",
"cost": {
"context_tokens": 366
}
}
Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-retellai-cost-tuning/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.