pydo.genai.import_custom_model()
Generated on 3 Aug 2026
from pydo version
v0.40.0
Usage
client.genai.import_custom_model(
body={
"accept_hf_token_storage": True,
"accept_terms_and_conditions": True,
"description": "Production model for customer support",
...,
},
)Description
To import a custom model, send a POST request to /v2/gen-ai/custom_models/import.
Parameters
accept_hf_token_storageboolean optionalExample:
TrueWhether the caller accepts storage of their HuggingFace token for gated model access
accept_terms_and_conditionsboolean optionalExample:
TrueWhether the caller accepts the terms and conditions for importing this model
descriptionstring optionalExample:
Production model for customer supportDescription of the model
namestring optionalExample:
my-mistral-7bName for the imported model
preferred_gpu_regionstring optionalExample:
nyc3Preferred GPU region for deployment
source_refobject optionalReference to the original source of the model
Show child properties
access_typestring optionalAccess level required for the model repository
bucketstring optionalExample:
example stringSpaces bucket name
commit_shastring optionalExample:
example stringGit commit SHA of the model version
hf_tokenstring optionalExample:
example stringUser-provided HuggingFace token for gated/private models (not persisted in source_ref)
prefixstring optionalExample:
example stringObject prefix path in the bucket
regionstring optionalExample:
example stringSpaces bucket region
repo_idstring optionalExample:
123e4567-e89b-12d3-a456-426614174000Huggingface repository identifier
source_typestring optionalSource from which the model was imported
tagsobject optionalUser-defined tags for organizing models
Show child properties
tagsarray of strings optionalExample:
['example string']List of tag strings
Request Sample
Response Example
More Information
See /v2/gen-ai/custom_models/import in the API reference for additional detail on responses, headers, parameters, and more.