curl --location --request POST 'https://barrack.ai/api/pricing/?currency&gpu_count&gpu_model&resource_type&tier&volume_size_gb&volume_type' \
--header 'Content-Type: application/json' \
--data-raw '{
"tier": "legacy",
"currency": "USD",
"resource_type": "volumes",
"volume_size_gb": 100,
"volume_type": "SSD",
"gpu_model": "string",
"gpu_count": 1
}'{
"success": true,
"message": "Pricing information retrieved successfully",
"pricing_data": {
"volumes": {
"pricing": {
"legacy": {
"SSD": {
"prices": {
"USD": 0.1,
"EUR": 0.1,
"INR": 10
},
"unit": "per TB per hour"
}
},
"advanced": {
"HDD": {
"prices": {
"USD": 0.08,
"EUR": 0.1,
"INR": 8
},
"unit": "per TB per hour"
},
"NVMe": {
"prices": {
"USD": 0.3,
"EUR": 0.35,
"INR": 30
},
"unit": "per TB per hour"
}
}
},
"minimum_size_gb": 100,
"description": "Volume storage pricing based on tier and volume type"
},
"snapshots": {
"pricing": {
"legacy": {
"prices": {
"USD": 0.1,
"EUR": 0.1,
"INR": 10
},
"fixed_size_gb": 100,
"unit": "per hour (fixed 100GB)"
}
},
"description": "Snapshot pricing - fixed 100GB per snapshot, legacy tier only"
},
"gpus": {
"pricing": {
"legacy": {
"H100-PCIe-NVLink-80GB": {
"prices": {
"USD": 2.29,
"EUR": 2.39,
"INR": 199
},
"max_count": 8,
"unit": "per GPU per hour"
},
"RTX-A6000": {
"prices": {
"USD": 0.69,
"EUR": 0.75,
"INR": 49
},
"max_count": 4,
"unit": "per GPU per hour"
}
},
"advanced": {
"B300-262GB": {
"prices": {
"USD": 5.79,
"EUR": 5.99,
"INR": 499
},
"max_count": 8,
"unit": "per GPU per hour"
},
"H100-SXM5-80GB": {
"prices": {
"USD": 2.49,
"EUR": 2.69,
"INR": 209
},
"max_count": 8,
"unit": "per GPU per hour"
}
}
},
"description": "GPU pricing by model and tier"
},
"metadata": {
"supported_currencies": [
"USD",
"EUR",
"INR"
],
"supported_tiers": [
"legacy",
"advanced"
],
"volume_minimum_size_gb": 100,
"authenticated_user": "my_api_key",
"authentication_type": "api_key",
"timestamp": 1702234567
}
},
"request_id": "a1b2c3d4"
}