---
title: "Container Rentals List"
method: GET
path: "/v1/containers"
tags: ["GPU Rentals"]
---

# Container Rentals List

`GET /v1/containers`

## Query parameters

- `state` 'active' | 'inactive' — whether to return active or inactive containers

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Response `200`

Successful Response

- ContainerRentalOut[]
  - `id` string, required
  - `name` string, required
  - `state` 'creating' | 'starting' | 'running' | 'shutting_down' | 'failed' | 'deleted', required
  - `start_ts` integer, required
  - `state_ts` integer, required
  - `stop_ts` integer, nullable, required
  - `ip` string, nullable, required
  - `gpu_config` string, required
  - `price_per_hour` number, required
  - `container_image` string, required
  - `fail_reason` string, nullable, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/versions/51b817b3f80f/schema)
