# Stop GPU instace

To stop the instance, provide the **ID** from the previously created environment. Once the environment is stopped, credit deductions for the instance will cease, helping you manage costs when the GPU is not in active use.

{% hint style="warning" %}
Stopped environments may not be recoverable, as the resources could be allocated to other users during the stopped period.
{% endhint %}

**Example Request:**

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

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

```bash
curl --location --request POST 'https://api.netmind.ai/v1/rentgpu/containers/1547/stop' \
--header 'Authorization: Bearer {{API_TOKEN}}'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

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

payload = {}
headers = {
  'Authorization': 'Bearer {{API_TOKEN}}'
}

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

print(response.text)

```

{% endtab %}
{% endtabs %}

**Example Response:**

```json
{
    "created_at": "2024-10-31T09:31:22",
    "name": "demo_test",
    "auth_id": 0,
    "gpu": 1,
    "node_name": "...",
    "type": 0,
    "image_template_id": 0,
    "rental_type": 1,
    "enable_vscode": false,
    "enable_jupyter": false,
    "cpu": 20,
    "disk_size": 300,
    "memory": 40,
    "gpu_name": "NVIDIA_GeForce_RTX_3090",
    "id": 0,
    "ssh": "ssh root@rent-gpus2.netmind.ai -p 5034",
    "status": "EXPIRED",
    "exposed_service": null,
    "vscode_service": null,
    "jupyter_service": null
}
```
