Digital Ocean Dedicated Inferences API

The Dedicated Inferences API from Digital Ocean — 9 operation(s) for dedicated inferences.

GitHub OpenAPI

Operations 13

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/dedicated-inferences/{dedicated_inference_id} Get a dedicated inference instance · Get dedicated inferences by dedicated inference id #
Ask an LLM
“How do I check the status of one of my dedicated inference instances?”
“What GPU and size does a specific dedicated inference use?”
Tell an agent
Show dedicated inference {inference}.
Get the status of dedicated inference instance {inference}.
PATCH /v2/dedicated-inferences/{dedicated_inference_id} Update a dedicated inference instance · Update dedicated inferences by dedicated inference id #
Ask an LLM
“Can I change the size of an existing dedicated inference instance?”
“How do I update a dedicated inference instance's settings?”
Tell an agent
Update dedicated inference {inference}.
Resize existing dedicated inference instance {inference}.
DELETE /v2/dedicated-inferences/{dedicated_inference_id} Delete a dedicated inference instance · Delete dedicated inferences by dedicated inference id #
Ask an LLM
“How do I tear down a dedicated inference instance I no longer need?”
“Can I delete a dedicated inference by its ID?”
Tell an agent destructive · confirm first
Delete dedicated inference {inference}.
Tear down the dedicated inference instance {inference}.
GET /v2/dedicated-inferences List dedicated inference instances · Get dedicated inferences #
Ask an LLM
“Which dedicated inference instances do I have running?”
“Can I list all my dedicated inference instances?”
Tell an agent
List my dedicated inference instances.
Show every dedicated inference instance I own.
POST /v2/dedicated-inferences Create a dedicated inference instance · Create dedicated inferences #
Ask an LLM
“How do I spin up a new dedicated inference instance for running models?”
“Can I create a dedicated inference instance with a specific GPU size?”
Tell an agent
Create a dedicated inference instance.
Spin up a new dedicated inference instance for model serving.
GET /v2/dedicated-inferences/{dedicated_inference_id}/accelerators List accelerators on a dedicated inference · Get dedicated inferences by dedicated inference id accelerators #
Ask an LLM
“Which accelerators are attached to a dedicated inference instance?”
“Can I see the accelerator cards on one of my inferences?”
Tell an agent
List the accelerators on dedicated inference {inference}.
Show which accelerator cards {inference} uses.
GET /v2/dedicated-inferences/{dedicated_inference_id}/accelerators/{accelerator_id} Get one accelerator on a dedicated inference · Get dedicated inferences by dedicated inference id accelerators by accelerator… #
Ask an LLM
“How do I check the details of a single accelerator on a dedicated inference?”
“Can I look up one accelerator card by its ID?”
Tell an agent
Show accelerator {accelerator} on dedicated inference {inference}.
Get details of accelerator card {accelerator} on {inference}.
GET /v2/dedicated-inferences/{dedicated_inference_id}/ca Get the certificate authority for a dedicated inference · Get dedicated inferences by dedicated inference id ca #
Ask an LLM
“Where do I get the certificate authority certificate for a dedicated inference?”
“Can I fetch the CA cert used by a specific inference instance?”
Tell an agent
Get the certificate authority for dedicated inference {inference}.
Download the CA certificate of {inference}.
GET /v2/dedicated-inferences/{dedicated_inference_id}/tokens List API tokens for a dedicated inference · Get dedicated inferences by dedicated inference id tokens #
Ask an LLM
“Which API tokens are tied to a dedicated inference instance?”
“Can I list the tokens I've issued for an inference?”
Tell an agent
List the API tokens for dedicated inference {inference}.
Show every token issued for {inference}.
POST /v2/dedicated-inferences/{dedicated_inference_id}/tokens Create an API token for a dedicated inference · Create dedicated inferences by dedicated inference id tokens #
Ask an LLM
“How do I generate a new API token for a dedicated inference instance?”
“Can I issue a fresh token for an existing inference?”
Tell an agent
Create an API token for dedicated inference {inference}.
Issue a new token for {inference}.
DELETE /v2/dedicated-inferences/{dedicated_inference_id}/tokens/{token_id} Revoke an API token from a dedicated inference · Delete dedicated inferences by dedicated inference id tokens by token id #
Ask an LLM
“How do I revoke a leaked API token from a dedicated inference?”
“Can I delete one token from an inference instance?”
Tell an agent destructive · confirm first
Delete token {token} from dedicated inference {inference}.
Revoke token {token} on {inference}.
GET /v2/dedicated-inferences/sizes List sizes available for dedicated inferences · Get dedicated inferences sizes #
Ask an LLM
“What GPU sizes can I choose when creating a dedicated inference?”
“Which instance sizes are available for dedicated inferences?”
Tell an agent
List the sizes available for dedicated inferences.
Show every GPU size I can use for a dedicated inference.
GET /v2/dedicated-inferences/gpu-model-config Get the GPU model config for dedicated inferences · Get dedicated inferences gpu model config #
Ask an LLM
“Which GPU models does the dedicated inference service support?”
“What model config should I use when creating a dedicated inference?”
Tell an agent
Get the GPU model config for dedicated inferences.
Show the supported GPU models for dedicated inference instances.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/digital-ocean:digital-ocean-dedicated-inferences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

digital-ocean-dedicated-inferences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Dedicated Inferences API
  version: '2.0'
  description: ''
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  contact:
    name: DigitalOcean API Team
    email: api-engineering@digitalocean.com
  termsOfService: https://www.digitalocean.com/legal/terms-of-service-agreement/
servers:
- url: https://api.digitalocean.com
  description: production
security:
- bearer_auth: []
tags:
- name: Dedicated Inferences
paths:
  /v2/dedicated-inferences/{dedicated_inference_id}:
    get:
      $ref: resources/dedicated_inferences/dedicated_inferences_get.yml
      tags:
      - Dedicated Inferences
      summary: Get dedicated inferences by dedicated inference id
      x-summary-source: derived
      operationId: getV2DedicatedInferencesByDedicatedInferenceId
      x-operation-id-source: derived
    patch:
      $ref: resources/dedicated_inferences/dedicated_inferences_update.yml
      tags:
      - Dedicated Inferences
      summary: Update dedicated inferences by dedicated inference id
      x-summary-source: derived
      operationId: patchV2DedicatedInferencesByDedicatedInferenceId
      x-operation-id-source: derived
    delete:
      $ref: resources/dedicated_inferences/dedicated_inferences_delete.yml
      tags:
      - Dedicated Inferences
      summary: Delete dedicated inferences by dedicated inference id
      x-summary-source: derived
      operationId: deleteV2DedicatedInferencesByDedicatedInferenceId
      x-operation-id-source: derived
  /v2/dedicated-inferences:
    get:
      $ref: resources/dedicated_inferences/dedicated_inferences_list.yml
      tags:
      - Dedicated Inferences
      summary: Get dedicated inferences
      x-summary-source: derived
      operationId: getV2DedicatedInferences
      x-operation-id-source: derived
    post:
      $ref: resources/dedicated_inferences/dedicated_inferences_create.yml
      tags:
      - Dedicated Inferences
      summary: Create dedicated inferences
      x-summary-source: derived
      operationId: postV2DedicatedInferences
      x-operation-id-source: derived
  /v2/dedicated-inferences/{dedicated_inference_id}/accelerators:
    get:
      $ref: resources/dedicated_inferences/dedicated_inferences_accelerators_list.yml
      tags:
      - Dedicated Inferences
      summary: Get dedicated inferences by dedicated inference id accelerators
      x-summary-source: derived
      operationId: getV2DedicatedInferencesByDedicatedInferenceIdAccelerators
      x-operation-id-source: derived
  /v2/dedicated-inferences/{dedicated_inference_id}/accelerators/{accelerator_id}:
    get:
      $ref: resources/dedicated_inferences/dedicated_inferences_accelerators_get.yml
      tags:
      - Dedicated Inferences
      summary: Get dedicated inferences by dedicated inference id accelerators by accelerator…
      x-summary-source: derived
      operationId: getV2DedicatedInferencesByDedicatedInferenceIdAcceleratorsByAcceleratorId
      x-operation-id-source: derived
  /v2/dedicated-inferences/{dedicated_inference_id}/ca:
    get:
      $ref: resources/dedicated_inferences/dedicated_inferences_ca_get.yml
      tags:
      - Dedicated Inferences
      summary: Get dedicated inferences by dedicated inference id ca
      x-summary-source: derived
      operationId: getV2DedicatedInferencesByDedicatedInferenceIdCa
      x-operation-id-source: derived
  /v2/dedicated-inferences/{dedicated_inference_id}/tokens:
    get:
      $ref: resources/dedicated_inferences/dedicated_inferences_tokens_list.yml
      tags:
      - Dedicated Inferences
      summary: Get dedicated inferences by dedicated inference id tokens
      x-summary-source: derived
      operationId: getV2DedicatedInferencesByDedicatedInferenceIdTokens
      x-operation-id-source: derived
    post:
      $ref: resources/dedicated_inferences/dedicated_inferences_tokens_create.yml
      tags:
      - Dedicated Inferences
      summary: Create dedicated inferences by dedicated inference id tokens
      x-summary-source: derived
      operationId: postV2DedicatedInferencesByDedicatedInferenceIdTokens
      x-operation-id-source: derived
  /v2/dedicated-inferences/{dedicated_inference_id}/tokens/{token_id}:
    delete:
      $ref: resources/dedicated_inferences/dedicated_inferences_tokens_delete.yml
      tags:
      - Dedicated Inferences
      summary: Delete dedicated inferences by dedicated inference id tokens by token id
      x-summary-source: derived
      operationId: deleteV2DedicatedInferencesByDedicatedInferenceIdTokensByTokenId
      x-operation-id-source: derived
  /v2/dedicated-inferences/sizes:
    get:
      $ref: resources/dedicated_inferences/dedicated_inferences_sizes_list.yml
      tags:
      - Dedicated Inferences
      summary: Get dedicated inferences sizes
      x-summary-source: derived
      operationId: getV2DedicatedInferencesSizes
      x-operation-id-source: derived
  /v2/dedicated-inferences/gpu-model-config:
    get:
      $ref: resources/dedicated_inferences/dedicated_inferences_gpu_model_config_get.yml
      tags:
      - Dedicated Inferences
      summary: Get dedicated inferences gpu model config
      x-summary-source: derived
      operationId: getV2DedicatedInferencesGpuModelConfig
      x-operation-id-source: derived
components:
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: '## OAuth Authentication


        In order to interact with the DigitalOcean API, you or your application must

        authenticate.


        The DigitalOcean API handles this through OAuth, an open standard for

        authorization. OAuth allows you to delegate access to your account.

        Scopes can be used to grant full access, read-only access, or access to

        a specific set of endpoints.


        You can generate an OAuth token by visiting the [Apps & API](https://cloud.digitalocean.com/account/api/tokens)

        section of the DigitalOcean control panel for your account.


        An OAuth token functions as a complete authentication request. In effect, it

        acts as a substitute for a username and password pair.


        Because of this, it is absolutely **essential** that you keep your OAuth

        tokens secure. In fact, upon generation, the web interface will only display

        each token a single time in order to prevent the token from being compromised.


        DigitalOcean access tokens begin with an identifiable prefix in order to

        distinguish them from other similar tokens.


        - `dop_v1_` for personal access tokens generated in the control panel

        - `doo_v1_` for tokens generated by applications using [the OAuth flow](https://docs.digitalocean.com/reference/api/oauth-api/)

        - `dor_v1_` for OAuth refresh tokens


        ### Scopes


        Scopes act like permissions assigned to an API token. These permissions

        determine what actions the token can perform. You can create API

        tokens that grant read-only access, full access, or limited access to

        specific endpoints by using custom scopes.


        Generally, scopes are designed to match HTTP verbs and common CRUD

        operations (Create, Read, Update, Delete).


        | HTTP Verb | CRUD Operation | Scope |

        |---|---|---|

        | GET | Read | `<resource>:read` |

        | POST | Create | `<resource>:create` |

        | PUT/PATCH | Update | `<resource>:update` |

        | DELETE | Delete | `<resource>:delete` |


        For example, creating a new Droplet by making a `POST` request to the

        `/v2/droplets` endpoint requires the `droplet:create` scope while

        listing Droplets by making a `GET` request to the `/v2/droplets`

        endpoint requires the `droplet:read` scope.


        Each endpoint below specifies which scope is required to access it when

        using custom scopes.


        ### How to Authenticate with OAuth


        In order to make an authenticated request, include a bearer-type

        `Authorization` header containing your OAuth token. All requests must be

        made over HTTPS.


        ### Authenticate with a Bearer Authorization Header


        ```

        curl -X $HTTP_METHOD -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/$OBJECT"

        ```

        '
    inference_bearer_auth:
      type: http
      scheme: bearer
      description: '## OAuth Authentication


        In order to interact with the DigitalOcean API, you or your application must

        authenticate.


        The DigitalOcean API handles this through OAuth, an open standard for

        authorization. OAuth allows you to delegate access to your account.

        Scopes can be used to grant full access, read-only access, or access to

        a specific set of endpoints.


        You can generate an OAuth token by visiting the [Apps & API](https://cloud.digitalocean.com/account/api/tokens)

        section of the DigitalOcean control panel for your account.


        An OAuth token functions as a complete authentication request. In effect, it

        acts as a substitute for a username and password pair.


        Because of this, it is absolutely **essential** that you keep your OAuth

        tokens secure. In fact, upon generation, the web interface will only display

        each token a single time in order to prevent the token from being compromised.


        DigitalOcean access tokens begin with an identifiable prefix in order to

        distinguish them from other similar tokens.


        - `dop_v1_` for personal access tokens generated in the control panel

        - `doo_v1_` for tokens generated by applications using [the OAuth flow](https://docs.digitalocean.com/reference/api/oauth-api/)

        - `dor_v1_` for OAuth refresh tokens


        ### Authenticate with a Bearer Authorization Header


        **Serverless Inference:**


        ```

        curl -X POST -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://inference.do-ai.run/v1/chat/completions"

        ```


        **Agent Inference:**


        ```

        curl -X POST -H "Authorization: Bearer $AGENT_ACCESS_KEY" "https://{your-agent-url}.agents.do-ai.run/v1/chat/completions?agent=true"

        ```


        **Note:** Agent Inference APIs use an `agent_access_key` (endpoint access

        key) instead of a DigitalOcean OAuth token. The `agent_access_key` is

        provided when you provision an agent endpoint and is scoped to that

        specific agent. It is not interchangeable with DigitalOcean OAuth tokens

        (`dop_v1_*`, `doo_v1_*`, `dor_v1_*`), which are used with Serverless

        Inference and the control-plane API at `https://api.digitalocean.com`.

        '
x-tagGroups:
- name: Public APIs
  tags:
  - Public APIs Introduction
  - 1-Click Applications
  - Account
  - Actions
  - Add-Ons
  - Action Gateway
  - Action Gateway Data Plane
  - Agent Platform API
  - Apps
  - Billing
  - Block Storage
  - Block Storage Actions
  - BYOIP Prefixes
  - CDN Endpoints
  - Certificates
  - Container Registry
  - Container Registries
  - Databases
  - Dedicated Inference
  - Domain Records
  - Domains
  - Droplet Actions
  - Droplets
  - Droplet Autoscale Pools
  - Firewalls
  - Floating IP Actions
  - Floating IPs
  - Functions
  - Harness Runtime
  - Image Actions
  - Images
  - Insights
  - Kubernetes
  - Load Balancers
  - MicroVMs [Public Preview]
  - Monitoring
  - NFS
  - NFS Actions
  - Organizations
  - Partner Network Connect
  - Project Resources
  - Projects
  - Regions
  - Reserved IP Actions
  - Reserved IPs
  - Reserved IPv6
  - Reserved IPv6 Actions
  - Security
  - Signals
  - Sizes
  - Snapshots
  - Spaces Keys
  - SSH Keys
  - Tags
  - Uptime
  - Vector Databases
  - VPC NAT Gateways
  - VPC Peerings
  - VPC Routes [Public Preview]
  - VPC Subnets [Public Preview]
  - VPCs
- name: Inference APIs
  tags:
  - Inference Introduction
  - Agent Inference
  - Batch Inference
  - Embeddings
  - Serverless Inference