Images
List images
Returns the images of one type. Each item carries type, so you can
give its id and type together when you launch an instance.
type=vm returns every virtual machine image available to your
account, in one page (Windows images are listed, but cannot be
created through the API in this release): pagination.next is always null, pagination.size is
the number of images, and cursor, size and mine=true are refused.
An image is left out when no location your account can use allows its
operating system family.
type=container returns a cursor-paginated list. By default it is the
Hive catalogue. With mine=true it is the templates you saved
yourself. Templates belong to one user, so a teammate’s templates are
never listed.
GET
/
images
List images
curl --request GET \
--url https://api.hivecompute.ai/v1/images \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hivecompute.ai/v1/images', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hivecompute.ai/v1/images"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"type": "vm",
"id": "ubuntu24.04",
"name": "Ubuntu 24.04 LTS",
"os_family": "LINUX",
"gpu_supported": true,
"login_user": "ubuntu",
"min_disk_gb": 123,
"min_memory_gb": 123,
"secure_boot": true,
"tpm": true
}
],
"pagination": {
"next": "eyJ0IjoiMjAyNi0wNy0yOVQxMDowMDowMFoiLCJpIjoiNDkyMzBkZWQtYWI5OS00ZDAyLWI1NmMtZDUwNzBjY2U2MzgzIn0=",
"size": 50
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "[{\"property\":\"size\",\"constraints\":[\"size must not be greater than 200\"]}]",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing API token",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "You do not have access to this resource.",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Too Many Requests",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred.",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}Authorizations
Query Parameters
Was this page helpful?
⌘I
List images
curl --request GET \
--url https://api.hivecompute.ai/v1/images \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hivecompute.ai/v1/images', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hivecompute.ai/v1/images"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"type": "vm",
"id": "ubuntu24.04",
"name": "Ubuntu 24.04 LTS",
"os_family": "LINUX",
"gpu_supported": true,
"login_user": "ubuntu",
"min_disk_gb": 123,
"min_memory_gb": 123,
"secure_boot": true,
"tpm": true
}
],
"pagination": {
"next": "eyJ0IjoiMjAyNi0wNy0yOVQxMDowMDowMFoiLCJpIjoiNDkyMzBkZWQtYWI5OS00ZDAyLWI1NmMtZDUwNzBjY2U2MzgzIn0=",
"size": 50
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "[{\"property\":\"size\",\"constraints\":[\"size must not be greater than 200\"]}]",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing API token",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "You do not have access to this resource.",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Too Many Requests",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred.",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}