docs cortecs
cortecs.aiModels
  • Getting started
    • Introduction
    • Quickstart
    • LLM Workers
  • Examples
    • Basics
    • Structured output
    • Batch jobs
    • Multi-agents
    • Realtime streams
  • cortecs-py
    • Python client
      • Objects
    • Integrations
  • API
    • Authentication
    • User
    • Instances
    • Models
    • Hardware Types
  • Discord
Powered by GitBook
On this page
  1. API

Hardware Types

PreviousModels

Last updated 5 months ago

Retrieve all hardware types

get

This endpoint retrieves information about all hardware types supported by cortecs.ai.

Responses
200
A list of available hardware types.
application/json
401
Unauthorized - Bearer token missing or invalid
500
Internal server error
get
GET /api/v1/hardware-types/ HTTP/1.1
Host: cortecs.ai
Accept: */*
{
  "hardware_types": [
    {
      "hardware_type_id": "NVIDIA_L40S_1",
      "price_info": {
        "price_per_hour": 1.2,
        "price_per_minute": 0.02,
        "currency": "EUR"
      },
      "hardware_info": {
        "gpu_type": "NVIDIA L40S",
        "num_gpus": 1,
        "gpu_ram_gb": 48
      }
    }
  ]
}

Retrieve information about a specific hardware type

get

This endpoint retrieves information about a specific hardware type.

Path parameters
hardware_type_idstringRequired

The unique identifier of the hardware type.

Example: NVIDIA_L40S_1
Responses
200
Successfully retrieved hardware type information.
application/json
401
Unauthorized - Bearer token missing or invalid.
404
Hardware type not found.
500
Internal server error.
get
GET /api/v1/hardware-types/{hardware_type_id} HTTP/1.1
Host: cortecs.ai
Accept: */*
{
  "hardware_type": {
    "hardware_type_id": "NVIDIA_L40S_1",
    "price_info": {
      "price_per_hour": 1.2,
      "price_per_minute": 0.02,
      "currency": "EUR"
    },
    "hardware_info": {
      "gpu_type": "NVIDIA L40S",
      "num_gpus": 1,
      "gpu_ram_gb": 48
    }
  }
}

Retrieve currently available hardware types

get

This endpoint retrieves all available hardware types.

Responses
200
Successfully retrieved available hardware types.
application/json
401
Unauthorized - Bearer token missing or invalid.
500
Internal server error.
get
GET /api/v1/hardware-types/available HTTP/1.1
Host: cortecs.ai
Accept: */*
{
  "hardware_types": [
    {
      "hardware_type_id": "NVIDIA_L40S_1",
      "price_info": {
        "price_per_hour": 1.2,
        "price_per_minute": 0.02,
        "currency": "EUR"
      },
      "hardware_info": {
        "gpu_type": "NVIDIA L40S",
        "num_gpus": 1,
        "gpu_ram_gb": 48
      }
    }
  ]
}
  • GETRetrieve all hardware types
  • GETRetrieve information about a specific hardware type
  • GETRetrieve currently available hardware types