{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To import a custom model, send a POST request to `/v2/gen-ai/custom_models/import`.","properties":{"body":{"$ref":"#/definitions/apiImportCustomModelInputPublic"}},"required":[],"additionalProperties":false,"definitions":{"apiImportCustomModelInputPublic":{"description":"Request to import a custom model (public)","properties":{"accept_hf_token_storage":{"description":"Whether the caller accepts storage of their HuggingFace token for gated model access","type":"boolean","examples":[true]},"accept_terms_and_conditions":{"description":"Whether the caller accepts the terms and conditions for importing this model","type":"boolean","examples":[true]},"description":{"description":"Description of the model","type":"string","examples":["Production model for customer support"]},"name":{"description":"Name for the imported model","type":"string","examples":["my-mistral-7b"]},"preferred_gpu_region":{"description":"Preferred GPU region for deployment","type":"string","examples":["nyc3"]},"source_ref":{"$ref":"#/definitions/CustomModelSourceRef"},"source_type":{"$ref":"#/definitions/CustomModelSourceType"},"tags":{"$ref":"#/definitions/CustomModelTags"}},"type":"object"},"CustomModelSourceRef":{"description":"Reference to the original source of the model","properties":{"access_type":{"$ref":"#/definitions/SourceRefAccessType"},"bucket":{"description":"Spaces bucket name","type":"string","examples":["example string"]},"commit_sha":{"description":"Git commit SHA of the model version","type":"string","examples":["example string"]},"hf_token":{"description":"User-provided HuggingFace token for gated/private models (not persisted in source_ref)","type":"string","examples":["example string"]},"prefix":{"description":"Object prefix path in the bucket","type":"string","examples":["example string"]},"region":{"description":"Spaces bucket region","type":"string","examples":["example string"]},"repo_id":{"description":"Huggingface repository identifier","type":"string","examples":["123e4567-e89b-12d3-a456-426614174000"]}},"type":"object"},"CustomModelSourceType":{"default":"SOURCE_TYPE_UNSPECIFIED","description":"Source from which the model was imported","enum":["SOURCE_TYPE_UNSPECIFIED","SOURCE_TYPE_HUGGINGFACE","SOURCE_TYPE_SPACES_BUCKET","SOURCE_TYPE_SDK_UPLOAD","SOURCE_TYPE_FINE_TUNING"],"type":"string","examples":["SOURCE_TYPE_UNSPECIFIED"]},"CustomModelTags":{"description":"User-defined tags for organizing models","properties":{"tags":{"description":"List of tag strings","items":{"type":"string","examples":["example string"]},"type":"array","examples":[["example string"]]}},"type":"object"},"SourceRefAccessType":{"default":"ACCESS_TYPE_UNSPECIFIED","description":"Access level required for the model repository","enum":["ACCESS_TYPE_UNSPECIFIED","ACCESS_TYPE_PUBLIC","ACCESS_TYPE_PRIVATE","ACCESS_TYPE_GATED"],"type":"string","examples":["ACCESS_TYPE_UNSPECIFIED"]}}},"name":"Import Custom Model","id":"digitalocean.genai_import_custom_model","example":{},"maxRequests":1,"summary":false}}