Files
sdk/docs/InfrastructureApi.md
zeekayandHanzo Dev b55332704a feat: Hanzo Cloud SDK for Kotlin (generated from OpenAPI v8.0.0)
Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and
Android. Generated with openapi-generator kotlin (library=jvm-okhttp4,
useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-25 07:10:32 -07:00

6.4 KiB

InfrastructureApi

All URIs are relative to https://api.hanzo.ai

Method HTTP request Description
pricingGetComputePresets GET /v1/pricing/compute/presets Curated compute presets
pricingGetComputePricing GET /v1/pricing/compute Compute tiers
pricingGetFullPricing GET /v1/pricing Full pricing data
pricingListGpuTiers GET /v1/pricing/gpu GPU tier pricing
pricingListTools GET /v1/pricing/tools Tool pricing

pricingGetComputePresets

PricingGetComputePresets200Response pricingGetComputePresets()

Curated compute presets

Returns curated compute presets for the launch page.

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = InfrastructureApi()
try {
    val result : PricingGetComputePresets200Response = apiInstance.pricingGetComputePresets()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling InfrastructureApi#pricingGetComputePresets")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling InfrastructureApi#pricingGetComputePresets")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

PricingGetComputePresets200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

pricingGetComputePricing

kotlin.Any pricingGetComputePricing()

Compute tiers

Returns infrastructure compute tier pricing with DO-backed sizes.

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = InfrastructureApi()
try {
    val result : kotlin.Any = apiInstance.pricingGetComputePricing()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling InfrastructureApi#pricingGetComputePricing")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling InfrastructureApi#pricingGetComputePricing")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

pricingGetFullPricing

PricingFullPricingResponse pricingGetFullPricing()

Full pricing data

Returns the complete pricing dataset including all AI models, tools, infrastructure, and cloud plans. Large response (~500KB).

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = InfrastructureApi()
try {
    val result : PricingFullPricingResponse = apiInstance.pricingGetFullPricing()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling InfrastructureApi#pricingGetFullPricing")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling InfrastructureApi#pricingGetFullPricing")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

PricingFullPricingResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

pricingListGpuTiers

PricingGpuTiersResponse pricingListGpuTiers()

GPU tier pricing

Returns available GPU tiers with VRAM specs and hourly pricing. Currently offers H100 GPU configurations.

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = InfrastructureApi()
try {
    val result : PricingGpuTiersResponse = apiInstance.pricingListGpuTiers()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling InfrastructureApi#pricingListGpuTiers")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling InfrastructureApi#pricingListGpuTiers")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

PricingGpuTiersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

pricingListTools

PricingToolsResponse pricingListTools()

Tool pricing

Returns pricing for platform tools (Web Search, Code Interpreter, File Analysis, Image Generation, etc.).

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = InfrastructureApi()
try {
    val result : PricingToolsResponse = apiInstance.pricingListTools()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling InfrastructureApi#pricingListTools")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling InfrastructureApi#pricingListTools")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

PricingToolsResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json