bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 31쪽 중 30쪽
Field>
<ParamField type="integer">
Percentage of uptime during the job.
</ParamField>
<ParamField type="datetime string">
UTC timestamp when the job started.
</ParamField>
<ParamField type="datetime string">
UTC timestamp when the job ended.
</ParamField>
<ParamField type="string">
Job status (e.g., `pending`, `running`, `completed`).
</ParamField>
<ParamField type="string">
Cluster ID associated with the job.
</ParamField>
**Example**
```json theme={null}
{
"jobs": [
{
"compute_minutes_hired": 300,
"compute_minutes_served": 0,
"earned": 0,
"end_time": "2023-09-12 00:00:00",
"for": "e242cd76-9e65-4de1-b3ec-1cb8b002b38d",
"slashed": 0,
"start_time": "2023-09-12 00:00:00",
"status": "pending",
"total_hire_rate": 10.8,
"uptime_percent": 100
}
]
}
```
</Expandable>
</ParamField>
# PoW Summary
Source: https://io.net/docs/reference/io-explorer/pow-summary
openapi/io-explorer/pow-summary.json GET /v1/io-explorer/devices/{device_id}/pow-summary
This PoW Summary endpoint returns information about the Proof of Work challenges for a device.
# Create Sub-API Key
Source: https://io.net/docs/reference/sub-keys/create-sub-key
openapi/sub-keys/create-sub-key.json POST /v1/api-keys/sub-keys
Creates a new sub-API key scoped under an admin key, with optional model restrictions and per-key credit limits.
<Note>
The full key `value` is returned **only once** at creation time. Store it securely — it cannot be retrieved again. Only the truncated `display` string is stored and returned in subsequent list or usage calls.
</Note>
<Note>
Only admin API keys can create sub-keys. A sub-key cannot create further sub-keys. If you authenticate with a sub-key, the endpoint returns **403 Forbidden**.
</Note>
### Key fields
* `description` – A human-readable label to identify the key's purpose or owner.
* `allowed_models` – An optional list of model identifiers (e.g. `"meta-llama/Llama-3.3-70B-Instruct"`) that this sub-key is permitted to call. If omitted, all models available to the admin are accessible. Requests to unlisted models are rejected with **403 Forbidden**.
* `credit_limit` – Maximum IO Intelligence credits the sub-key may consume per refresh cycle. Once the limit is reached the key is automatically blocked until the cycle resets or the admin raises the limit via `PATCH`. Set to `null` to impose no per-key cap.
* `credit_refresh_cycle` – How often the usage counter resets: `"8h"`, `"daily"`, `"weekly"`, or `"monthly"` (default).
* `expires_at` – ISO 8601 date-time for key expiry, or the literal string `"never"` for a non-expiring key. Defaults to 180 days from creation when omitted.
* `key_prefix` – An optional lowercase slug (2–8 chars) prepended to the generated key value (e.g. `"acme"` produces `acme-v2-eyJ...`). Defaults to the standard `io-v2` prefix when omitted. Cannot start with `"io"` or contain version markers like `"-v2"`.
# Get All Sub-Keys Usage
Source: https://io.net/docs/reference/sub-keys/get-all-keys-usage
openapi/sub-keys/get-all-keys-usage.json GET /v1/api-keys/sub-keys/usage
Returns aggregated token usage and credit cost for every sub-key owned by the admin, broken down by model for today and all time.
This endpoint is designed for admin-level billing dashboards. It returns a breakdown per sub-key, with each entry showing:
* **`today`** — token consumption and credit cost since midnight UTC.
* **`all_time`** — cumulative consumption since the sub-key was created.
* **`totals`** — aggregate `today_credit_cost` and `all_time_credit_cost` across all sub-keys.
Each entry's `models` array shows which models were used and their individual costs, allowing you to see exactly where credits are being spent.
<Note>
This endpoint requires the Intelligence database to be reachable. It returns **503 Service Unavailable** if the intelligence database is temporarily unavailable.
</Note>
# Get Sub-Key Usage
Source: https://io.net/docs/reference/sub-keys/get-key-usage
openapi/sub-keys/get-key-usage.json GET /v1/api-keys/sub-keys/{key_id}/usage
Returns credit status for a specific sub-key: credits used in the current billing period, the configured limit, and remaining allowance.
Use this endpoint to monitor whether a specific sub-key is approaching or has exceeded its credit limit.
The `remaining_credit` field is `null` when no `credit_limit` has been configured for the key — in that case, the key is only bounded by the admin's overall account balance.
<Note>
Credit usage reflects **settled** payments processed by the billing pipeline. There may be a short lag (typically under a minute) between a completed inference call and the usage appearing here.
</Note>
# Get Own Usage (Sub-Key Self-Service)
Source: https://io.net/docs/reference/sub-keys/get-own-usage
openapi/sub-keys/get-own-usage.json GET /v1/api-keys/sub-keys/me/usage
Allows a sub-key to check its own credit status without exposing the admin key to the sub-key holder.
This endpoint is authenticated with the **sub-key itself**, not the admin key. It is intended for scenarios where sub-key holders need to monitor their own remaining credits programmatically.
<Note>
Authenticating with an admin key returns **403 Forbidden**. Use `GET /v1/api-keys/sub-keys/{key_id}/usage` with the admin key to inspect a specific sub-key's status.
</Note>
### Typical use case
A service that holds a sub-key can call this endpoint periodically to determine how much credit remains before being blocked:
```bash theme={null}
curl "https://api.io.solutions/v1/api-keys/sub-keys/me/usage" \
-H "x-api-key: $SUB_API_KEY"
```
```json theme={null}
{
"status": "succeeded",
"data": {
"key_id": "71775d2e-fbcc-4ef4-aa30-8aaeb82062c0",
"credit_used": 7.82,
"credit_limit": 10.0,
"remaining_credit": 2.18,
"credit_refresh_cycle": "monthly"
}
}
```
# List Sub-API Keys
Source: https://io.net/docs/reference/sub-keys/list-sub-keys
openapi/sub-keys/list-sub-keys.json GET /v1/api-keys/sub-keys
Returns all active sub-API keys owned by the authenticated admin key, including current-period credit usage for each key.
The response includes one entry per active sub-key with the following credit fields:
* `credit_limit` — the per-cycle cap configured for the key (`null` means no per-key cap).
* `credit_used` — credits consumed so far in the **current** billing period (resets according to `credit_refresh_cycle`).
<Note>
Expired or revoked keys are not included in this list.
</Note>
# Revoke Sub-API Key
Source: https://io.net/docs/reference/sub-keys/revoke-sub-key
openapi/sub-keys/revoke-sub-key.json DELETE /v1/api-keys/sub-keys/{key_id}
Immediately revokes a sub-API key. All subsequent requests using the revoked key receive 401 Unauthorized.
<Warning>
Revocation is **permanent and immediate**. Once revoked, the key cannot be restored. Issue a new sub-key if access needs to be reinstated.
</Warning>
Any in-flight request that was authenticated before revocation may still complete. Revocation takes effect for all new authentication attempts.
# Update Sub-API Key
Source: https://io.net/docs/reference/sub-keys/update-sub-key
openapi/sub-keys/update-sub-key.json PATCH /v1/api-keys/sub-keys/{key_id}
Updates one or more attributes of an existing sub-API key. Omitted fields are left unchanged.
All body fields are optional — only the fields you include will be updated.
### Unblocking an over-limit key
When a sub-key's `credit_used` exceeds its `credit_limit`, the key is automatically blocked (returns **429 Too Many Requests** on inference calls). To unblock it without waiting for the next cycle reset, raise the `credit_limit` via this endpoint:
```bash theme={null}
curl -X PATCH "https://api.io.solutions/v1/api-keys/sub-keys/{key_id}" \
-H "x-api-key: $ADMIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"credit_limit": 50.0}'
```
### Clearing model restrictions
Pass an empty array for `allowed_models` to remove all model restrictions, giving the sub-key access to all models available to the admin:
```json theme={null}
{ "allowed_models": [] }
```
# Deploy a VM
Source: https://io.net/docs/reference/vmaas/deploy-vms
openapi/vmaas/deploy-vms.json POST /enterprise/v1/io-cloud/vmaas/deploy
# Destroy Deployment
Source: https://io.net/docs/reference/vmaas/destroy-deployment
openapi/vmaas/destroy-deployment.json DELETE /enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}
Terminate and remove an existing deployment. All VMs and resources allocated to the deployment will be released.
<Note>
When deleting a deployment, charges are handled as follows;
* The first hour is **ALWAYS non-refundable**.
* After the first hour, charges are calculated **to the exact duration** the cluster was active (not rounded to whole hours).
* Any unused prepaid time is **refunded proportionally**.
Example: If you pre-paid for 3 hours and delete the deployment after 1.2 hours, you are charged for 1.2 hours and refunded the remaining 1.8 hours.
</Note>
# Cluster Deployment using APIs
Source: https://io.net/docs/reference/vmaas/example-deploying-using-APIs
Step-by-step guide for developers to deploy, price, and manage GPU clusters programmatically using io.net Cloud VMaaS APIs.
This page outlines the end-to-end flow for deploying a GPU cluster using [**io.net**](http://io.net) **Cloud VMaaS APIs**. It is intended to help you understand the steps you can take and API calls needed to provision, price, and manage a cluster programmatically.
### Workflow Summary
The cluster deployment process consists of the following steps:
1. **Retrieve available hardware**
Use the [**GET Hardware List**](/docs/reference/vmaas/get-hardware-list) endpoint to fetch all supported GPU hardware configurations, including available GPU counts, locations, and resource specifications.
2. **Select hardware and configuration**\
From the hardware list response, select the desired hardware type, number of GPUs per VM, and deployment region.
3. **Validate deployment pricing (optional)**\
Use the [**GET Deployment Price**](/docs/reference/vmaas/get-deployment-price) endpoint to calculate the expected cost for the selected hardware configuration and duration.
4. **Deploy the cluster**
Use the [**POST Deploy VM**](/docs/reference/vmaas/deploy-vms) endpoint to provision the cluster using the selected hardware, GPU count, location, and duration.
5. **Manage the cluster lifecycle**
After deployment, manage the cluster using one of the following endpoints:
* [**POST Extend Cluster**](/docs/reference/vmaas/extend-cluster) endpoint to increase the deployment duration.
* [**DELETE Destroy Deployment**](/docs/reference/vmaas/destroy-deployment) endpoint to terminate the cluster early.
<Note>
The first hour of usage is non-refundable.
</Note>
<Steps>
<Step title="Retrieving Available Hardware">
Using the [GET Hardware List](/docs/reference/vmaas/get-hardware-list) endpoint, retrieve all currently available GPU hardware configurations.
**Request Example**
```bash theme={null}
curl -X 'GET' \
'https://api.io.solutions/enterprise/v1/io-cloud/vmaas/hardware' \
-H 'accept: application/json' \
-H 'x-api-key: <api-key>'
```
<Accordion title="Response Example">
```json theme={null}
{
"data": {
"hardware": [
{
"id": "12__2",
"deploy_id": 12,
"name": "GeForce RTX 4090",
"num_cards": 2,
"supplier": "internal",
"sold_out": false,
"price": 0.6,
"vram_per_card": 24,
"interconnect": null,
"nvlink": false,
"storage": 1000,
"vcpu": 39,
"memory": 125,
"location": "US"
},
{
"id": "12__1",
"deploy_id": 12,
"name": "GeForce RTX 4090",
"num_cards": 1,
"supplier": "internal",
"sold_out": false,
"price": 0.3,
"vram_per_card": 24,
"interconnect": null,
"nvlink": false,
"storage": 500,
"vcpu": 39,
"memory": 125,
"location": "US"
},
{
"id": "B200_sxm6x8__US",
"deploy_id": "B200_sxm6x8",
"name": "B200",
"num_cards": 8,
"supplier": "external",
"sold_out": false,
"price": 39.92,
"vram_per_card": 192,
"interconnect": "sxm6",
"nvlink": false,
"storage": 22528,
"vcpu": 208,
"memory": 2900,
"location": "US"
},
{
"id": "B200_sxm6x8__AU",
"deploy_id": "B200_sxm6x8",
"name": "B200",
"num_cards": 8,
"supplier": "external",
"sold_out": false,
"price": 39.92,
"vram_per_card": 192,
"interconnect": "sxm6",
"nvlink": false,
"storage": 22528,
"vcpu": 208,
"memory": 2900,
"location": "AU"
}
]
}
}
```
</Accordion>
</Step>
<Step title="Selecting your Hardware and Configuration">
From the response of the [GET Hardware List](/docs/reference/vmaas/get-hardware-list) endpoint, select your chosen GPU and save the following values:
<ResponseField name="deploy_id" type="string/integer">
Hardware identifier used for pricing and deployment. Can be a string or integer.
</ResponseField>
<ResponseField name="num_cards" type="integer">
Number of GPUs per VM.
</ResponseField>
<ResponseField name="location" type="string">
Deployment region.
</ResponseField>
</Step>
<Step title="Validating your Deployment Price (Optional)">
Using the [GET Deployment Price](/docs/reference/vmaas/get-deployment-price) endpoint and the values you have saved, validate the price of your desired deployment before you deploy your cluster.
**Request Example**
```bash theme={null}
curl -X GET "https://api.io.solutions/enterprise/v1/io-cloud/vmaas/price" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "hardware_id=12" \
--data-urlencode "gpus_per_vm=1" \
--data-urlencode "replica_count=1" \
--data-urlencode "duration_hours=1" \
--data-urlencode "currency=usdc" \
--data-urlencode 'location_ids=["US"]'
```
Ensure that the following fields have been assigned a value:
<ResponseField name="hardware_id" type="string/integer">
Value of `deploy_id` from the Hardware List response.
</ResponseField>
<ResponseField name="gpus_per_vm" type="integer">
Number of GPUs per VM. Value of `num_cards` from the Hardware List response.
</ResponseField>
<ResponseField name="duration_hours" type="integer">
Duration of your deployment, in hours.
</ResponseField>
<ResponseField name="currency" type="string">
Pricing currency.
*Example:* `usdc`
</ResponseField>
<ResponseField name="location_ids" type="string">
URL-encoded JSON array of locations. Use `--data-urlencode` in your cURL request if you use a plain string.
*Example:* `%5B%22US%22%5D` = `["US"]`
</ResponseField>
</Step>
<Step title="Deploying your Cluster">
Using the POST Deploy VM enndpoint, deploy your selected hardware for the specified duration.
**Request Example**
```bash theme={null}
curl -X POST "https://api.io.solutions/enterprise/v1/io-cloud/vmaas/deploy" \
-H "Content-Type: application/json" \
-H 'x-api-key: <api-key>'
-d '{
"resource_private_name": "name of cluster",
"duration_hours": 1,
"gpus_per_vm": 1,
"hardware_id": 12,
"location_ids": ["US"],
"ssh_keys": {
"name of key": "<public-key>"
}
}'
```
Ensure that the following fields have been assigned a value:
<ResponseField name="resource_private_name" type="string">
The name of your cluster.
</ResponseField>
<ResponseField name="duration_hours" type="integer">
Duration of your deployment, in hours.
</ResponseField>
<ResponseField name="gpus_per_vm" type="integer">
Number of GPUs per VM. Value of `num_cards` from the Hardware List response.
</ResponseField>
<ResponseField name="hardware_id" type="string/integer">
Value of `deploy_id` from the Hardware List response.
</ResponseField>
<ResponseField name="location_ids" type="string">
Location of your chosen GPU.
</ResponseField>
<ResponseField name="ssh_keys" type="object">
Your public SSH key, use RSA, ECDSA, or ED25519.
*Format:* `"name of key": "<public-key>"`
</ResponseField>
</Step>
</Steps>
# Extend Cluster
Source: https://io.net/docs/reference/vmaas/extend-cluster
openapi/vmaas/extend-cluster.json POST /enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}/extend
Extend the lifetime or capacity of an existing deployment by adding more resources or increasing its duration.
# Get All Deployments
Source: https://io.net/docs/reference/vmaas/get-all-deployments
openapi/vmaas/get-all-deployments.json GET /enterprise/v1/io-cloud/vmaas/deployments
Retrieve a list of all VMaaS deployments associated with the enterprise account, including their status, configuration, and metadata.
# Get Deployment Details
Source: https://io.net/docs/reference/vmaas/get-deployment-details
openapi/vmaas/get-deployment-details.json GET /enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}
Fetch detailed information about a specific deployment by its ID, including cluster specifications, runtime status, and associated resources.
# Get Deployment Price
Source: https://io.net/docs/reference/vmaas/get-deployment-price
openapi/vmaas/get-deployment-price.json GET /enterprise/v1/io-cloud/vmaas/price
Calculate or retrieve the pricing details for a deployment based on selected resources (CPUs, GPUs, memory, and duration).
# Get Deployment VMs
Source: https://io.net/docs/reference/vmaas/get-deployment-vms
openapi/vmaas/get-deployment-vms.json GET /enterprise/v1/io-cloud/vmaas/deployment/{deployment_id}/vms
List all virtual machines running within a given deployment, along with their current state and hardware details.
# Get Hardware List
Source: https://io.net/docs/reference/vmaas/get-hardware-list
openapi/vmaas/get-hardware-list.json GET /enterprise/v1/io-cloud/vmaas/hardware
Retrieve a list of currently available GPUs and configurations.
# Getting Started with VMaaS API
Source: https://io.net/docs/reference/vmaas/get-started-with-vmaas-api
The **Virtual Machine as a Service (VMaaS) APIs** lets you programmatically deploy and manage virtual machines on io.net Cloud. Unlike CaaS (Containers as a Service), VMaaS provides full VM instances with CPU, GPU, memory, and storage resources — ideal for long-running workloads, custom environments, or GPU-intensive tasks.
## Generate an API key
You can obtain an API key for io.net Cloud to use VMaaS in two ways:
1. From the web interface.
2. By using a two-step process (first generate a JWT token, then request the API key using curl).
### Option 1: Generate an API Key via Web Interface
IO Clouds APIs authenticate requests using API keys. You can [generate API keys from your user](https://ai.io.net/ai/api-keys) account.\
**Note: When generating an API key, make sure to specify the associated IO Cloud project.**
<Warning>
Always treat your API key as a secret. Do not share it or expose it in client-side code (e.g., browsers or mobile apps). Instead, store it securely in an environment variable or a key management service in your backend server.
</Warning>
### Option 2: Generate an API Key Using a JWT Token
#### Step 1: Get a JWT Token
io.net APIs are built around [RESTful](https://en.wikipedia.org/wiki/REST) principles. You can use io.net APIs to gain insight into different elements of the network.
To use [io.net](http://io.net) APIs, you must provide a JWT token in the header of your request.
Follow the instructions below to generate a token:
1. Go to **io.net** > **IO ID** > **IO Clouds** tab.
2. In the UI, right-click and select **Inspect**.
3. In the Inspect tool, click **Network**.
4. Refresh the **IO Clouds** page.
5. In the list of elements, click **Devices**.
6. Scroll down to the **Request Headers** section.
7. Copy and store the token.
<Note>
This token is valid for 21 days.
</Note>
<img alt="Vmaas1 Jp" />
#### Step 2. Generate an API Key via `curl`
Use the **JWT token** to request your API key:
```curl theme={null}
curl -X POST 'https://api.io.solutions/v1/api-keys/' \
-H 'accept: application/json' \
-H 'token: $JWT_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"description": "API Key Name",
"expires_at": "2025-07-17T19:54:36.418Z",
"project": "io-cloud",
"scopes": ["all"]
}'
```
Use the returned key with the `X-API-KEY` header in your requests.
<Wa프로젝트로 돌아가기