> For the complete documentation index, see [llms.txt](https://netmind-power.gitbook.io/netmind-power-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://netmind-power.gitbook.io/netmind-power-documentation/api/gpu-clusters/create-your-first-environment.md).

# Create Your First Environment

Next, you can create a environment by specifying the "**authentication ID"**, "**image ID"** and **"instance node name"**. You can configure additional resources such as CPU, memory, and storage,  After the request is submitted, the user must wait for some time, and the instance creation progress can be monitored through a separate query API.

**Example Request:**

{% hint style="info" %}
Replace `{{API_TOKEN}}` with your actual token.

For the "payment\_type" parameter, there are three options:

* `1` represents USD
* `2` represents NMT
* `3` represents CNY
  {% endhint %}

{% tabs %}
{% tab title="Curl" %}

```bash
curl --location 'https://api.netmind.ai/v1/rentgpu/containers' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_TOKEN}}' \
--data '
{
  "name": "demo_test",
  "auth_id": 0,
  "gpu": 1,
  "node_name": "...",
  "image_template_id": 1,
  "payment_type": 0
}'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
import json

url = "https://api.netmind.ai/v1/rentgpu/containers"

payload = json.dumps({
  "name": "demo_test",
  "auth_id": 0,
  "gpu": 1,
  "node_name": "...",
  "image_template_id": 0,
  "payment_type": 0
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer {{API_TOKEN}}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

{% endtab %}
{% endtabs %}

**Example Response:**

```json
{
    "name": "demo_test",
    "auth_id": 0,
    "gpu": 1,
    "node_name": "...",
    "type": 0,
    "image_template_id": 1,
    "enable_vscode": false,
    "enable_jupyter": false,
    "cpu": 20,
    "disk_size": 300,
    "memory": 40,
    "gpu_name": "NVIDIA_GeForce_RTX_3090",
    "id": 0,
    "ssh": null,
    "status": "PENDING",
    "exposed_service": null,
    "vscode_service": null,
    "jupyter_service": null
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://netmind-power.gitbook.io/netmind-power-documentation/api/gpu-clusters/create-your-first-environment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
