---
title: "List Datacenter Regions"
method: GET
path: "/v2/gen-ai/regions"
tags: ["DigitalOcean-public.v2-new_GradientAI Platform"]
---

# List Datacenter Regions

`GET /v2/gen-ai/regions`

To list all datacenter regions, send a GET request to `/v2/gen-ai/regions`.

## Query parameters

- `serves_inference` boolean
- `serves_batch` boolean

## Response `200`

A successful response.

- ApiListRegionsOutput — Region Codes
  - `regions` GenaiapiRegion[] — Region code
    - `inference_url` string — Url for inference server
    - `region` string — Region code
    - `serves_batch` boolean — This datacenter is capable of running batch jobs
    - `serves_inference` boolean — This datacenter is capable of serving inference
    - `stream_inference_url` string — The url for the inference streaming server

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

## Changes

- **2025-10-16** `cb3bf9b21459` — 2 info
  - api tag `DigitalOcean-public.v2-new_GradientAI Platform` added
  - api tag `GradientAI Platform` removed
- **2025-07-18** `f8e8c290636c` — 8 info
  - api operation id `list_datacenter_regions` removed and replaced with `genai_list_datacenter_regions`
  - the endpoint scheme security `bearer_auth` was added to the API
  - api tag `GradientAI Platform` added
  - api tag `GenAIAPI` removed
  - …4 more
- **2025-07-17** `5fc9af728e82` — 3 warning, 8 info
  - the optional response header `ratelimit-limit` removed for the status `200`
  - the optional response header `ratelimit-remaining` removed for the status `200`
  - the optional response header `ratelimit-reset` removed for the status `200`
  - api operation id `genai_list_datacenter_regions` removed and replaced with `list_datacenter_regions`
  - …7 more
- **2025-07-17** `f8e8c290636c` — 8 info
  - api operation id `list_datacenter_regions` removed and replaced with `genai_list_datacenter_regions`
  - the endpoint scheme security `bearer_auth` was added to the API
  - api tag `GradientAI Platform` added
  - api tag `GenAIAPI` removed
  - …4 more

[Change history](https://skmtc.dev/digitalocean/apis/digitalocean-api/changes/v2/gen-ai/regions/get.md)

---

[API](https://skmtc.dev/digitalocean/apis/digitalocean-api.md) · [All operations](https://skmtc.dev/digitalocean/apis/digitalocean-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/digitalocean/digitalocean-api/revisions/cb3bf9b21459/schema)
