List GPU prices
curl --request GET \
--url https://api.gcore.com/cloud/public/v1/pricing/gpuimport requests
url = "https://api.gcore.com/cloud/public/v1/pricing/gpu"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.gcore.com/cloud/public/v1/pricing/gpu', 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.gcore.com/cloud/public/v1/pricing/gpu",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gcore.com/cloud/public/v1/pricing/gpu"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gcore.com/cloud/public/v1/pricing/gpu")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/cloud/public/v1/pricing/gpu")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"count": 1,
"generated_at": "2023-11-07T05:31:56Z",
"results": [
{
"currency": "EUR",
"deployment_type": "bare_metal",
"gpu_count": 8,
"gpu_model": "H100",
"price_per_gpu_hour": "2.27250000",
"price_per_hour": "18.18000000",
"pricing_detail": {
"flavor_names": [
"bm3-infrastructure-ai-h100-80-8",
"noib-ai-h100-80-8"
],
"sku": "h100-80-8",
"updated_at": "2023-11-07T05:31:56Z"
},
"region": "Luxembourg-2"
}
]
}Pricing
List GPU prices
Returns list prices for GPUs, bare metal and virtual, in EUR and USD.
The response has no pagination. The catalog is small. The list sorts by price per hour, from low to high.
GET
/
cloud
/
public
/
v1
/
pricing
/
gpu
List GPU prices
curl --request GET \
--url https://api.gcore.com/cloud/public/v1/pricing/gpuimport requests
url = "https://api.gcore.com/cloud/public/v1/pricing/gpu"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.gcore.com/cloud/public/v1/pricing/gpu', 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.gcore.com/cloud/public/v1/pricing/gpu",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gcore.com/cloud/public/v1/pricing/gpu"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gcore.com/cloud/public/v1/pricing/gpu")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/cloud/public/v1/pricing/gpu")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"count": 1,
"generated_at": "2023-11-07T05:31:56Z",
"results": [
{
"currency": "EUR",
"deployment_type": "bare_metal",
"gpu_count": 8,
"gpu_model": "H100",
"price_per_gpu_hour": "2.27250000",
"price_per_hour": "18.18000000",
"pricing_detail": {
"flavor_names": [
"bm3-infrastructure-ai-h100-80-8",
"noib-ai-h100-80-8"
],
"sku": "h100-80-8",
"updated_at": "2023-11-07T05:31:56Z"
},
"region": "Luxembourg-2"
}
]
}Was this page helpful?