What a procedure’s runs cost
curl --request GET \
--url https://guidinghand.ai/v1/agents/{agent_id}/procedures/{procedure_id}/costs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agents/{agent_id}/procedures/{procedure_id}/costs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/agents/{agent_id}/procedures/{procedure_id}/costs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "procedure_costs",
"procedure_id": "<string>",
"revisions": [
{
"revision": 123,
"saved_at": "2023-11-07T05:31:56Z",
"current": true,
"runs": 123,
"total_cents": 123,
"avg_cents": 123
}
],
"last_30_days": {
"runs": 123,
"total_cents": 123,
"avg_cents": 123,
"replies": {},
"tasks": {},
"qa": {},
"models": [
{}
]
}
}Procedures
What a procedure’s runs cost
At list price. A run is a conversation (or a task on its own) that got the procedure: the chat replies that read it, the tasks that followed it and its AI Review checks. revisions: each revision’s runs and average run (avg_cents null when none got it), oldest first. last_30_days: the last 30 days’ runs split by what for (replies, tasks, qa) and by model (tokens and price before each reply and task is rounded up to a whole cent).
GET
/
v1
/
agents
/
{agent_id}
/
procedures
/
{procedure_id}
/
costs
What a procedure’s runs cost
curl --request GET \
--url https://guidinghand.ai/v1/agents/{agent_id}/procedures/{procedure_id}/costs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/agents/{agent_id}/procedures/{procedure_id}/costs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/agents/{agent_id}/procedures/{procedure_id}/costs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "procedure_costs",
"procedure_id": "<string>",
"revisions": [
{
"revision": 123,
"saved_at": "2023-11-07T05:31:56Z",
"current": true,
"runs": 123,
"total_cents": 123,
"avg_cents": 123
}
],
"last_30_days": {
"runs": 123,
"total_cents": 123,
"avg_cents": 123,
"replies": {},
"tasks": {},
"qa": {},
"models": [
{}
]
}
}Authorizations
An org API key (gh_live_…) from Settings → API keys in the console.