List tariff

Returns the platform's rate card: what a bill is made of, what each part costs, and the completion windows a request may ask for.

GET /v1/pricing/tariff

Addresshttps://api.hanzo.ai/v1/pricing/tariff
MethodGET
Operationget_pricing_tariff
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the platform's rate card: what a bill is made of, what each part costs, and the completion windows a request may ask for.

FOUR COMPONENTS, and every charge is one of them — model inference, computer, web tools and media generation. Two are quoted before they run, so an agent is refused before it breaches its budget; two are booked from what they used, because neither a provider's charge nor a render's cost is knowable in advance.

EVERY AMOUNT IS INTEGER MICRO-USD (1 USD = 1,000,000), stated once in unit, and each rate says what one unit of it is in per. The compute rates are per HOUR because that is the unit a span is priced in — rate × seconds / 3600 — and because a GiB-second is four and a half micro-USD, which no integer holds.

The rates are the ones the ledger books: each is resolved through the same authority the metering path reads, falling back to the same compiled floor. A rate of zero is a price and not an absence — a paused computer, a computer's creation, the interfaces and a seat all cost nothing by design.

Request

GET /v1/pricing/tariff takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200pricing.Cardok
defaultproblem-detailsrefused

200 body — 19 fields.

FieldInTypeAlwaysDescription
componentsbodypricing.Component[]—Components are the four things a bill is made of.
components[].basisbodystring—Basis is what it is metered by, in the fewest words that are true.
components[].namebodystring—Name is the component's name on the spend breakdown.
components[].notebodystring—Note is what the component means, in one sentence.
components[].quotedbodyboolean—Quoted says whether a call is priced BEFORE it runs.
components[].tiersbodystring[]—Tiers are the disjoint tiers this component meters in, where it has them.
components[].titlebodystring—Title is how it reads on a price list.
ratesbodypricing.Rate[]—Rates are the priced lines, each in micro-USD per its own unit.
rates[].componentbodystring—Component is which of the four this line bills under.
rates[].namebodystring—Name addresses the rate.
rates[].notebodystring—Note is what the line covers.
rates[].perbodystring—Per names one unit, so a reader never has to guess what the number is per.
rates[].rate_micro_usdbodyinteger (int64)—Micros is the price of ONE unit, in micro-USD.
rates[].titlebodystring—Title is how the line reads on a price list.
unitbodystring—Unit is the unit every amount on this card is stated in.
windowsbodypricing.Speed[]—Speeds are the completion speeds, dearest first.
windows[].namebodystring—Name is what a request asks for.
windows[].notebodystring—Note is what asking for this window buys.
windows[].rankbodyinteger (int64)—Rank orders the windows by price, 1 being the dearest.

Failure carries the platform error shape — see Errors.

Examples

hanzo pricing tariff
import { Configuration, PricingApi } from 'hanzoai';

const api = new PricingApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getPricingTariff();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import PricingApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = PricingApi(client).get_pricing_tariff()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.PricingAPI.GetPricingTariff(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, pricing_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = pricing_api::get_pricing_tariff(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.PricingApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new PricingApi(client).getPricingTariff();
curl https://api.hanzo.ai/v1/pricing/tariff \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool pricing, op get_pricing_tariff — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "pricing",
         "arguments": {
           "op": "get_pricing_tariff",
           "input": {}
         }
       }
     }'

Pricing API · All Hanzo APIs · Interactive reference

Was this page useful?