Marlon
09/05/2025, 8:11 PMAI Evy
09/05/2025, 8:11 PMAI Evy
09/05/2025, 8:11 PMmax_call_duration_ms setting that allows you to set a maximum duration limit for individual calls per agent [(1) ]() . This setting controls the maximum allowed length for each call and will force end the call if the limit is reached . The minimum value allowed is 60,000 ms (1 min) , and the maximum value allowed is 7,200,000 ms (2 hours) . By default, this is set to 3,600,000 ms (1 hour) .
You can configure this when creating an agent:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
voice_id: '11labs-Adrian',
max_call_duration_ms: 3600000
}) ;
However, this setting only controls individual call duration rather than cumulative minutes across multiple calls for a specific agent. For broader usage limits across multiple calls or clients, the available sources don't provide specific API parameters for setting such limits at the agent level.
From community discussions, there was mention of setting daily usage limits on minutes to prevent potential misuse [(2) ]() , and the response indicated you can set a maximum call duration for each call with a current maximum of 2 hours .Marlon
09/05/2025, 8:14 PMAI Evy
09/05/2025, 8:14 PMAI Evy
09/05/2025, 8:14 PMmax_call_duration_ms setting I mentioned earlier only controls individual call duration.
For implementing cumulative usage tracking and limits for your clients, you would likely need to build this functionality externally by:
- Tracking call durations and usage through webhooks or call analytics
- Implementing your own usage monitoring system
- Potentially disabling or restricting agent access when limits are reached
However, I don't have specific documentation on how to implement this type of usage control system.
Would you like me to try to provide a general approach based on my knowledge instead? Alternatively, for more detailed guidance on usage management and billing controls, I'd recommend reaching out to the Retell team directly:
- Visit [Contact Sales]()
- Check [)
They may have additional options or upcoming features for usage management that aren't documented in the current API references.AI Evy
09/05/2025, 8:14 PMAI Evy
09/05/2025, 8:14 PMMarlon
09/05/2025, 8:15 PMAI Evy
09/05/2025, 8:15 PMAI Evy
09/05/2025, 8:15 PMmax_call_duration_ms at the agent level to control individual call limits [(1) ]() [(2) ]() .
For external tracking implementation, you would need to work with the available agent configuration options. The sources show you can update agent settings using the Update Agent API [(2) ]() , which could potentially be used to disable or modify agent behavior when usage limits are reached.
The sources also indicate that Retell AI has concurrency limits - Pay-As-You-Go users get 20 concurrent calls by default [(3) ]() . This suggests the platform has built-in usage monitoring capabilities, though specific external tracking guidance isn't documented in the available sources.
For detailed recommendations on implementing external usage tracking and limit enforcement, I'd suggest reaching out to Retell AI support directly:
- Visit [Contact Sales]()
- Visit [)
Would you like me to try to provide a general approach based on my knowledge instead?AI Evy
09/05/2025, 8:15 PMAI Evy
09/05/2025, 8:15 PMMarlon
09/05/2025, 8:16 PMAI Evy
09/05/2025, 8:16 PMAI Evy
09/05/2025, 8:16 PMAI Evy
09/05/2025, 8:16 PMmax_call_duration_ms to a very low value (minimum 60,000 ms)
- Update the agent's response engine or configuration to indicate service suspension
- Implement a "quota exceeded" message
4. Preventive Measures
Consider implementing:
- Warning notifications at 80% usage
- Graduated limits (reduce max_call_duration_ms as usage approaches limits)
- Automatic reset schedules (daily/monthly)
This approach leverages Retell's existing agent configuration capabilities [(1) ]() [(2) ]() while building the cumulative tracking logic externally.AI Evy
09/05/2025, 8:16 PMwebhook_url parameter :
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', {
webhook_url: '<https://your-tracking-endpoint.com/webhooks'>
}) ;AI Evy
09/05/2025, 8:16 PMAI Evy
09/05/2025, 8:16 PMAI Evy
09/05/2025, 8:16 PM