List rates

Publishes what every call on this surface costs.

GET /v1/seo/rates

Addresshttps://api.hanzo.ai/v1/seo/rates
MethodGET
OperationseoRate
AuthAuthorization: Bearer $HANZO_API_KEY

Publishes what every call on this surface costs.

The numbers are read from the upstream's own published price list, not from a table kept here, so a price change on their side moves this card within the hour and moves what is debited with it. That is the whole of the pricing model: this surface resells at cost, and the cost is theirs to state.

A row has two numbers because a call has two costs: a flat charge for asking, and a charge per row returned. An op priced per request reports zero for the second, and for one priced per row the total is request + result x limit — which is the amount your balance is authorized against before the call, and roughly what you will be debited after it.

It is a read and it is free: asking what something costs must not require the balance that would pay for it. If the upstream cannot be reached the card comes back empty rather than stale — a price nobody can confirm is not a price.

Request

GET /v1/seo/rates takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200seo.seoRateOutok
defaultproblem-detailsrefused

200 body — 4 fields.

FieldInTypeAlwaysDescription
ratesbodyseo.seoCharge[]—Rates is one row per op on this surface.
rates[].opbodystring—Op is the operation id — seoKeyword, seoRank — so a line here and a tool in a model's list are the same name.
rates[].requestbodystring—Request is the flat charge for making the call, in USD, as an exact decimal string.
rates[].resultbodystring—Result is the charge for each row returned, in USD, as an exact decimal string.

Failure carries the platform error shape — see Errors.

Examples

hanzo seo rates
import { Configuration, SeoApi } from 'hanzoai';

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

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

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

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

let result = seo_api::seo_rate(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.SeoApi;

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

var result = new SeoApi(client).seoRate();
curl https://api.hanzo.ai/v1/seo/rates \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool seo, op seoRate — 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": "seo",
         "arguments": {
           "op": "seoRate",
           "input": {}
         }
       }
     }'

SEO API · All Hanzo APIs · Interactive reference

Was this page useful?