Dispositions
Estimate Disposition Cost
Estimate a disposition’s cost before publishing it or backfilling past calls.
POST
/
v2
/
agents
/
{agent_id}
/
dispositions
/
{disposition_id}
/
estimates
Estimate Disposition Cost
curl --request POST \
--url https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"backfill": {}
}'import requests
url = "https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates"
payload = { "backfill": {} }
headers = {
"authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({backfill: {}})
};
fetch('https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'backfill' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates"
payload := strings.NewReader("{\n \"backfill\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates")
.header("authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"backfill\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"backfill\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "541b9cf3-77fa-4f99-95de-356e656c5670",
"dispositionId": "16fc16fe-92af-4e8b-9459-28e10b05f287",
"draftRevision": 3,
"perValue": [
{
"valueId": "91b9a987-ee08-4018-a433-5a7a5d03dade",
"executionPath": "Judge · Automatic Intelligence",
"usdPerCall": { "min": "0.0121", "expected": "0.0198", "max": "0.0312" }
},
{
"valueId": "a1756910-0ff1-48be-8eb9-635c8bdfd533",
"executionPath": "Structured extraction · Medium Intelligence + corrected transcript (once per call, shared)",
"usdPerCall": { "min": "0.0018", "expected": "0.0031", "max": "0.0049" }
}
],
"totalUsdPerCall": { "min": "0.0139", "expected": "0.0229", "max": "0.0361" },
"assumptions": {
"averageDurationSeconds": 254,
"timing": "immediate",
"modelCostRange": "usage_scenarios",
"customCode": {
"billingPolicy": "monthly_free_tier",
"monthlyFreeInvocations": 1000,
"listPriceUsdPerInvocation": "0.0010",
"freeTierScope": "organization"
}
},
"quoteConfigVersion": "v3-intelligence-routing"
},
"errors": null
}
{
"data": {
"estimate": {
"id": "541b9cf3-77fa-4f99-95de-356e656c5670",
"dispositionId": "16fc16fe-92af-4e8b-9459-28e10b05f287",
"draftRevision": 3,
"perValue": [
{
"valueId": "91b9a987-ee08-4018-a433-5a7a5d03dade",
"executionPath": "Judge · Automatic Intelligence",
"usdPerCall": {
"min": "0.0139",
"expected": "0.0229",
"max": "0.0361"
}
}
],
"totalUsdPerCall": {
"min": "0.0139",
"expected": "0.0229",
"max": "0.0361"
},
"assumptions": {
"averageDurationSeconds": 254,
"timing": "immediate",
"modelCostRange": "usage_scenarios",
"customCode": {
"billingPolicy": "monthly_free_tier",
"monthlyFreeInvocations": 1000,
"listPriceUsdPerInvocation": "0.0010",
"freeTierScope": "organization"
}
},
"quoteConfigVersion": "v3-intelligence-routing"
},
"backfill": {
"versionId": "2b2d0737-2ac5-418c-bf2f-b8e2f814e1f8",
"window": {
"start": "2026-08-01T00:00:00.000Z",
"end": "2026-09-01T00:00:00.000Z"
},
"sampling": 0.25,
"eligibleCalls": 1840,
"estimatedCostUsd": {
"min": "25.5760",
"expected": "42.1360",
"max": "66.4240"
},
"availableBalanceUsd": 118.5,
"committedByRunningJobsUsd": 0
}
},
"errors": null
}
{
"data": null,
"errors": [
{
"error": "SERVICE_UNAVAILABLE",
"message": "Disposition pricing is temporarily unavailable"
}
]
}
{
"data": null,
"errors": [
{
"error": "NOT_FOUND",
"message": "Disposition not found"
}
]
}
Overview
Dispositions are enabled per organization. If your organization does not have access, these endpoints return
404.id is a digest of the draft, its pinned dependencies, and the current pricing basis, so the same draft always yields the same id, and any change yields a new one. Pass the id as estimateId to Publish Disposition, which recomputes it and rejects a stale one.
Send backfill to price a backfill of past calls instead. Backfill estimates share the limit of 10 requests per hour with creating backfills.
Requires an admin, owner, operator, or prompter role.
Headers
Path Parameters
The agent’s unique identifier. Must be a UUID; otherwise returns
400 with the message agentId must be a valid UUID. Returns 404 Agent not found if the agent is not in your organization.The disposition’s unique identifier. Must be a UUID; otherwise returns
400 with the message dispositionId must be a valid UUID. Returns 404 Disposition not found if it does not belong to this agent.Body Parameters
The backfill to price. Takes the same fields as the body of Create Disposition Backfill, with the same limits and errors. It prices the version the backfill would run, not the draft. Returns
403 FORBIDDEN if backfills are off for your organization.Response
Withbackfill, the fields below move under data.estimate, and data.backfill holds the backfill’s count and cost.
All money fields are USD per processed call, formatted as decimal strings with four places (for example "0.0198", just under two cents). They include Bland’s margin. min, expected, and max are usage scenarios at 0.6x, 1x, and 1.6x of the assumed input and output volumes for a representative call; they are forecasts, not caps.
Deterministic estimate id, UUID-shaped. Identical for identical inputs. Pass it as
estimateId when publishing.The draft revision that was priced. Pass the same value as
expectedDraftRevision when publishing.One entry per value in the draft, in definition order.
Show per-value object
Show per-value object
Human-readable label of how the value is produced and billed, for example
Judge · Automatic Intelligence, Structured extraction · Medium Intelligence, Variable extraction · High Intelligence, or Custom code · metered invocation. When two values share one judge invocation, the second reads Judge · shared invocation already included and is priced at zero. The one value that carries the once-per-call corrected transcript pass has + corrected transcript (once per call, shared) appended.The fixed inputs behind the forecast.
Show assumptions object
Show assumptions object
Assumed call length in seconds, currently
254. Drives audio input volume and the corrected transcript charge.Always
usage_scenarios: min, expected, and max are 0.6x, 1x, and 1.6x of the assumed token volumes.How
custom_code values are billed. billingPolicy is monthly_free_tier (metered at list price after a free monthly allowance) or enterprise_included (included, quoted at zero). monthlyFreeInvocations is the allowance, currently 1000. listPriceUsdPerInvocation is the list price as a decimal string, currently "0.0010". freeTierScope is always organization. Under monthly_free_tier a code value’s min is 0.0000 and its expected and max equal the list price.Version tag of the pricing assumptions, currently
v3-intelligence-routing. Changes when the forecast model changes.Only present when you send
backfill.Show backfill object
Show backfill object
Your credit balance in USD, minus
committedByRunningJobsUsd. null if your organization does not pay from a credit balance.{
"data": {
"id": "541b9cf3-77fa-4f99-95de-356e656c5670",
"dispositionId": "16fc16fe-92af-4e8b-9459-28e10b05f287",
"draftRevision": 3,
"perValue": [
{
"valueId": "91b9a987-ee08-4018-a433-5a7a5d03dade",
"executionPath": "Judge · Automatic Intelligence",
"usdPerCall": { "min": "0.0121", "expected": "0.0198", "max": "0.0312" }
},
{
"valueId": "a1756910-0ff1-48be-8eb9-635c8bdfd533",
"executionPath": "Structured extraction · Medium Intelligence + corrected transcript (once per call, shared)",
"usdPerCall": { "min": "0.0018", "expected": "0.0031", "max": "0.0049" }
}
],
"totalUsdPerCall": { "min": "0.0139", "expected": "0.0229", "max": "0.0361" },
"assumptions": {
"averageDurationSeconds": 254,
"timing": "immediate",
"modelCostRange": "usage_scenarios",
"customCode": {
"billingPolicy": "monthly_free_tier",
"monthlyFreeInvocations": 1000,
"listPriceUsdPerInvocation": "0.0010",
"freeTierScope": "organization"
}
},
"quoteConfigVersion": "v3-intelligence-routing"
},
"errors": null
}
{
"data": {
"estimate": {
"id": "541b9cf3-77fa-4f99-95de-356e656c5670",
"dispositionId": "16fc16fe-92af-4e8b-9459-28e10b05f287",
"draftRevision": 3,
"perValue": [
{
"valueId": "91b9a987-ee08-4018-a433-5a7a5d03dade",
"executionPath": "Judge · Automatic Intelligence",
"usdPerCall": {
"min": "0.0139",
"expected": "0.0229",
"max": "0.0361"
}
}
],
"totalUsdPerCall": {
"min": "0.0139",
"expected": "0.0229",
"max": "0.0361"
},
"assumptions": {
"averageDurationSeconds": 254,
"timing": "immediate",
"modelCostRange": "usage_scenarios",
"customCode": {
"billingPolicy": "monthly_free_tier",
"monthlyFreeInvocations": 1000,
"listPriceUsdPerInvocation": "0.0010",
"freeTierScope": "organization"
}
},
"quoteConfigVersion": "v3-intelligence-routing"
},
"backfill": {
"versionId": "2b2d0737-2ac5-418c-bf2f-b8e2f814e1f8",
"window": {
"start": "2026-08-01T00:00:00.000Z",
"end": "2026-09-01T00:00:00.000Z"
},
"sampling": 0.25,
"eligibleCalls": 1840,
"estimatedCostUsd": {
"min": "25.5760",
"expected": "42.1360",
"max": "66.4240"
},
"availableBalanceUsd": 118.5,
"committedByRunningJobsUsd": 0
}
},
"errors": null
}
{
"data": null,
"errors": [
{
"error": "SERVICE_UNAVAILABLE",
"message": "Disposition pricing is temporarily unavailable"
}
]
}
{
"data": null,
"errors": [
{
"error": "NOT_FOUND",
"message": "Disposition not found"
}
]
}
Docs for agents: llms.txt
Was this page helpful?
⌘I
Estimate Disposition Cost
curl --request POST \
--url https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"backfill": {}
}'import requests
url = "https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates"
payload = { "backfill": {} }
headers = {
"authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({backfill: {}})
};
fetch('https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'backfill' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates"
payload := strings.NewReader("{\n \"backfill\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates")
.header("authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"backfill\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bland.ai/v2/agents/{agent_id}/dispositions/{disposition_id}/estimates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"backfill\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "541b9cf3-77fa-4f99-95de-356e656c5670",
"dispositionId": "16fc16fe-92af-4e8b-9459-28e10b05f287",
"draftRevision": 3,
"perValue": [
{
"valueId": "91b9a987-ee08-4018-a433-5a7a5d03dade",
"executionPath": "Judge · Automatic Intelligence",
"usdPerCall": { "min": "0.0121", "expected": "0.0198", "max": "0.0312" }
},
{
"valueId": "a1756910-0ff1-48be-8eb9-635c8bdfd533",
"executionPath": "Structured extraction · Medium Intelligence + corrected transcript (once per call, shared)",
"usdPerCall": { "min": "0.0018", "expected": "0.0031", "max": "0.0049" }
}
],
"totalUsdPerCall": { "min": "0.0139", "expected": "0.0229", "max": "0.0361" },
"assumptions": {
"averageDurationSeconds": 254,
"timing": "immediate",
"modelCostRange": "usage_scenarios",
"customCode": {
"billingPolicy": "monthly_free_tier",
"monthlyFreeInvocations": 1000,
"listPriceUsdPerInvocation": "0.0010",
"freeTierScope": "organization"
}
},
"quoteConfigVersion": "v3-intelligence-routing"
},
"errors": null
}
{
"data": {
"estimate": {
"id": "541b9cf3-77fa-4f99-95de-356e656c5670",
"dispositionId": "16fc16fe-92af-4e8b-9459-28e10b05f287",
"draftRevision": 3,
"perValue": [
{
"valueId": "91b9a987-ee08-4018-a433-5a7a5d03dade",
"executionPath": "Judge · Automatic Intelligence",
"usdPerCall": {
"min": "0.0139",
"expected": "0.0229",
"max": "0.0361"
}
}
],
"totalUsdPerCall": {
"min": "0.0139",
"expected": "0.0229",
"max": "0.0361"
},
"assumptions": {
"averageDurationSeconds": 254,
"timing": "immediate",
"modelCostRange": "usage_scenarios",
"customCode": {
"billingPolicy": "monthly_free_tier",
"monthlyFreeInvocations": 1000,
"listPriceUsdPerInvocation": "0.0010",
"freeTierScope": "organization"
}
},
"quoteConfigVersion": "v3-intelligence-routing"
},
"backfill": {
"versionId": "2b2d0737-2ac5-418c-bf2f-b8e2f814e1f8",
"window": {
"start": "2026-08-01T00:00:00.000Z",
"end": "2026-09-01T00:00:00.000Z"
},
"sampling": 0.25,
"eligibleCalls": 1840,
"estimatedCostUsd": {
"min": "25.5760",
"expected": "42.1360",
"max": "66.4240"
},
"availableBalanceUsd": 118.5,
"committedByRunningJobsUsd": 0
}
},
"errors": null
}
{
"data": null,
"errors": [
{
"error": "SERVICE_UNAVAILABLE",
"message": "Disposition pricing is temporarily unavailable"
}
]
}
{
"data": null,
"errors": [
{
"error": "NOT_FOUND",
"message": "Disposition not found"
}
]
}