Nebula Block
  • Overview
  • Getting Started
    • Quickstart
    • Account Setup
    • Billing Information
    • Deploy Products
  • Core Services
    • Inference Models
      • Text Generation
      • Text Generation (Vision)
      • Image Generation
      • Embedding Generation
      • Model List
    • GPU Instances
      • Quickstart
    • Object Storage
      • Get Started
      • Tutorials
        • Linux/Mac
        • Windows
      • SDK
        • Golang
        • Python
        • Java
    • SSH Keys
      • Quickstart
  • API Reference
    • Platform API
      • Authentication
      • Instances
        • List Products
        • Create GPU Instance
        • List User Instances
        • List Deleted User Instances
        • User Instance Detail
        • Delete GPU Instance
        • Start GPU Instance
        • Stop GPU Instance
        • Reboot GPU Instance
      • SSH Keys
        • List SSH Keys
        • Rename SSH Key
        • Delete SSH Key
      • API Keys
        • List API Keys
        • Delete API Key
      • Billing
        • List Invoices
        • Download Invoice
        • Get Payment History
    • Inference API (OpenAI Compatible)
      • List Models
      • Generate Text
      • Generate Text (Vision)
      • Generate Images
      • Generate Embeddings
  • Team
  • Tier
  • Referral
  • Glossary
  • Contact Us
Powered by GitBook
On this page
  • HTTP Request
  • Body parameters
  • Response Attributes
  • Example
  1. API Reference
  2. Platform API
  3. Instances

Create GPU Instance

Create GPU Instances.

Create an instance with the specified custom configuration and features provided in the request body.

HTTP Request

POST {API_URL}/computing/instance

Body parameters

Parameters
Requirements
Type
Description

instance_name

Required

string

Name of the virtual machine being deployed.

product_id

Required

string

The unique identifier of products. The product_id comes from <List Products API>.

image_id

Required

string

The unique identifier of the operating system image to be installed on your virtual machine. Use the GET /images endpoint to retrieve a list of images offered by API.

ssh_key_id

Required

number

The unique identifier of the SSH keypair to be used in gaining secure access to the virtual machine.

NOTE: image_id and product_id must be from the same data center (dc_id) and region.

Response Attributes

message string

A description of the status of the request.

status string

Indicates the result of the request. success signifies success, while failed indicates an error.

Example

Request

curl -X POST '{API_URL}/computing/instance' \
-H 'Authorization: Bearer {TOKEN/KEY}' \
-H 'Content-Type: application/json' \
-d '{
    "instance_name":"testname",
    "product_id":"fcp66d566c43a9501001256",
    "image_id":"fcp66d566c93a95010012",
    "ssh_key_id":2
}'

Response

{
    "message": "Instances created successfully",
    "status": "success"
}
PreviousList ProductsNextList User Instances

Last updated 6 months ago