pydo.dedicated_inferences.patch()
Generated on 3 Aug 2026
from pydo version
v0.40.0
Usage
client.dedicated_inferences.patch(
dedicated_inference_id="6b5c619c-359c-44ca-87e2-47e98170c01d",
body={
"spec": {...},
"access_tokens": {...},
},
)Description
Update an existing Dedicated Inference. Send a PATCH request to
/v2/dedicated-inferences/{dedicated_inference_id} with updated spec and/or
access_tokens. Status will move to updating and return to active when done.
Parameters
dedicated_inference_idstring requiredA unique identifier for a Dedicated Inference instance.
specobject optionalStructured configuration for a Dedicated Inference deployment.
Show child properties
versioninteger requiredExample:
1Spec version.
namestring requiredExample:
new-dedicated-inferenceName of the Dedicated Inference. Must be unique within the team.
regionstring requiredDigitalOcean region where the Dedicated Inference is hosted.
vpcobject requiredShow child properties
uuidstring requiredExample:
997615ce-132d-4bae-9270-9ee21b395e5dVPC UUID for the Dedicated Inference.
enable_public_endpointboolean requiredWhether to expose a public LLM endpoint.
model_deploymentsarray of objects requiredAt least one model deployment is required.
Show child properties
model_idstring optionalUsed to identify an existing deployment when updating; empty means create new.
model_slugstring optionalExample:
mistral/mistral-7b-instruct-v3Model identifier (e.g. Hugging Face slug).
model_providerstring optionalExample:
hugging_faceModel provider.
workload_configobject optionalWorkload-specific configuration (e.g. ISL/OSL in future).
acceleratorsarray of objects optionalAccelerator configuration for this deployment.
Show child properties
scaleinteger requiredExample:
1Number of accelerator instances.
typestring requiredExample:
prefill_decodeAccelerator type (e.g. prefill_decode).
accelerator_slugstring requiredExample:
gpu-mi300x1-192gbDigitalOcean GPU slug.
statusstring optional read-onlyCurrent state of the Accelerator.
access_tokensobject optionalProvider tokens for model access (e.g. gated Hugging Face models).
Show child properties
hugging_face_tokenstring optionalExample:
$HF_TOKENHugging Face token required for gated models.
Request Sample
Response Example
More Information
See /v2/dedicated-inferences/{dedicated_inference_id} in the API reference for additional detail on responses, headers, parameters, and more.