curl "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/pricing" \
-H "Authorization: Bearer talq_your_environment_token_here"
const response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/pricing', {
headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }
});
const result = await response.json();
{
"success": true,
"data": {
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"currency": "USD",
"components": {
"voice_synthesis": {
"unit": "per_minute",
"price": 0.045,
"tier": "high_fidelity"
},
"transcription": {
"unit": "per_minute",
"price": 0.012
},
"language_model": {
"unit": "per_1k_tokens",
"input_price": 0.0015,
"output_price": 0.006
}
},
"transport": {
"outbound": {
"country_code": "US",
"unit": "per_minute",
"price": 0.018
},
"inbound": {
"country_code": "US",
"unit": "per_minute",
"price": 0.0085
}
},
"estimated_cost_per_minute": 0.0855,
"calculated_at": "2024-01-15T10:30:00Z"
}
}
Agentes
Obter Preços do Agente
Recuperar um detalhamento de preços para um agente
GET
/
api
/
v1
/
agents
/
{agent_id}
/
pricing
curl "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/pricing" \
-H "Authorization: Bearer talq_your_environment_token_here"
const response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/pricing', {
headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }
});
const result = await response.json();
{
"success": true,
"data": {
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"currency": "USD",
"components": {
"voice_synthesis": {
"unit": "per_minute",
"price": 0.045,
"tier": "high_fidelity"
},
"transcription": {
"unit": "per_minute",
"price": 0.012
},
"language_model": {
"unit": "per_1k_tokens",
"input_price": 0.0015,
"output_price": 0.006
}
},
"transport": {
"outbound": {
"country_code": "US",
"unit": "per_minute",
"price": 0.018
},
"inbound": {
"country_code": "US",
"unit": "per_minute",
"price": 0.0085
}
},
"estimated_cost_per_minute": 0.0855,
"calculated_at": "2024-01-15T10:30:00Z"
}
}
Obter Preços do Agente
Recuperar um detalhamento de custos para um agente — síntese de voz, transcrição, modelo de linguagem e componentes de transporte — com base na configuração atual do agente e no plano do seu ambiente.Endpoint
GET /api/v1/agents/{agent_id}/pricing
Parâmetros de caminho
string
obrigatório
UUID do agente.
Cabeçalhos da requisição
string
obrigatório
Token Bearer para autenticação. Formato:
Bearer talq_your_environment_token_hereExemplos
curl "https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/pricing" \
-H "Authorization: Bearer talq_your_environment_token_here"
const response = await fetch('https://app.talkover.ai/api/v1/agents/550e8400-e29b-41d4-a716-446655440000/pricing', {
headers: { 'Authorization': 'Bearer talq_your_environment_token_here' }
});
const result = await response.json();
Resposta
{
"success": true,
"data": {
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"currency": "USD",
"components": {
"voice_synthesis": {
"unit": "per_minute",
"price": 0.045,
"tier": "high_fidelity"
},
"transcription": {
"unit": "per_minute",
"price": 0.012
},
"language_model": {
"unit": "per_1k_tokens",
"input_price": 0.0015,
"output_price": 0.006
}
},
"transport": {
"outbound": {
"country_code": "US",
"unit": "per_minute",
"price": 0.018
},
"inbound": {
"country_code": "US",
"unit": "per_minute",
"price": 0.0085
}
},
"estimated_cost_per_minute": 0.0855,
"calculated_at": "2024-01-15T10:30:00Z"
}
}
Observações
- Os preços refletem o plano atual e a configuração de voz/transporte do agente. Eles serão alterados se você atualizar o seu plano ou alterar o modelo de voz do agente.
- Para um resumo de nível superior, use Obter Resumo de Preços do Agente.
- Use Verificar Elegibilidade para Custos Otimizados para ver se o seu agente se qualifica para preços com cache.
Esta página foi útil?