pydo.dedicated_inferences.create()
Generated on 3 Aug 2026
from pydo version
v0.40.0
Usage
client.dedicated_inferences.create(
body={
"spec": {...},
"access_tokens": {...},
},
)Description
Create a new Dedicated Inference for your team. Send a POST request to
/v2/dedicated-inferences with a spec object (version, name, region, vpc,
enable_public_endpoint, model_deployments) and optional access_tokens (e.g.
hugging_face_token for gated models). The response code 202 Accepted indicates
the request was accepted for processing; it does not indicate success or failure.
The token value is returned only on create; store it securely.
Parameters
specobject requiredStructured 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 optionalExample:
{'hugging_face_token': '$HF_TOKEN'}Key-value pairs for provider tokens (e.g. Hugging Face).
Request Sample
Response Example
More Information
See /v2/dedicated-inferences in the API reference for additional detail on responses, headers, parameters, and more.