1. Registry
  2. Packages
  3. CAST AI
  4. API Docs
  5. AiOptimizerModelSpecs
Viewing docs for CAST AI v8.60.0
published on Wednesday, Aug 19, 2026 by CAST AI
castai logo
Viewing docs for CAST AI v8.60.0
published on Wednesday, Aug 19, 2026 by CAST AI

    Create AiOptimizerModelSpecs Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AiOptimizerModelSpecs(name: string, args: AiOptimizerModelSpecsArgs, opts?: CustomResourceOptions);
    @overload
    def AiOptimizerModelSpecs(resource_name: str,
                              args: AiOptimizerModelSpecsArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def AiOptimizerModelSpecs(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              model: Optional[str] = None,
                              registry_type: Optional[str] = None,
                              description: Optional[str] = None,
                              huggingface: Optional[AiOptimizerModelSpecsHuggingfaceArgs] = None,
                              private_registry: Optional[AiOptimizerModelSpecsPrivateRegistryArgs] = None,
                              routable: Optional[bool] = None,
                              type: Optional[str] = None)
    func NewAiOptimizerModelSpecs(ctx *Context, name string, args AiOptimizerModelSpecsArgs, opts ...ResourceOption) (*AiOptimizerModelSpecs, error)
    public AiOptimizerModelSpecs(string name, AiOptimizerModelSpecsArgs args, CustomResourceOptions? opts = null)
    public AiOptimizerModelSpecs(String name, AiOptimizerModelSpecsArgs args)
    public AiOptimizerModelSpecs(String name, AiOptimizerModelSpecsArgs args, CustomResourceOptions options)
    
    type: castai:index/aiOptimizer:AiOptimizerModelSpecs
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "castai_ai_optimizer_model_specs" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AiOptimizerModelSpecsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AiOptimizerModelSpecsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AiOptimizerModelSpecsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AiOptimizerModelSpecsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AiOptimizerModelSpecsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AiOptimizerModelSpecs Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AiOptimizerModelSpecs resource accepts the following input properties:

    Model string
    Model name.
    RegistryType string
    Registry type: HUGGING_FACE or PRIVATE.
    Description string
    Model description.
    Huggingface Pulumi.CastAI.Inputs.AiOptimizerModelSpecsHuggingface
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    PrivateRegistry Pulumi.CastAI.Inputs.AiOptimizerModelSpecsPrivateRegistry
    Private registry configuration. Required when registryType is PRIVATE.
    Routable bool
    Whether the model is routable.
    Type string
    Model type (chat, embeddings, completion, etc.).
    Model string
    Model name.
    RegistryType string
    Registry type: HUGGING_FACE or PRIVATE.
    Description string
    Model description.
    Huggingface AiOptimizerModelSpecsHuggingfaceArgs
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    PrivateRegistry AiOptimizerModelSpecsPrivateRegistryArgs
    Private registry configuration. Required when registryType is PRIVATE.
    Routable bool
    Whether the model is routable.
    Type string
    Model type (chat, embeddings, completion, etc.).
    model string
    Model name.
    registry_type string
    Registry type: HUGGING_FACE or PRIVATE.
    description string
    Model description.
    huggingface object
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    private_registry object
    Private registry configuration. Required when registryType is PRIVATE.
    routable bool
    Whether the model is routable.
    type string
    Model type (chat, embeddings, completion, etc.).
    model String
    Model name.
    registryType String
    Registry type: HUGGING_FACE or PRIVATE.
    description String
    Model description.
    huggingface AiOptimizerModelSpecsHuggingface
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    privateRegistry AiOptimizerModelSpecsPrivateRegistry
    Private registry configuration. Required when registryType is PRIVATE.
    routable Boolean
    Whether the model is routable.
    type String
    Model type (chat, embeddings, completion, etc.).
    model string
    Model name.
    registryType string
    Registry type: HUGGING_FACE or PRIVATE.
    description string
    Model description.
    huggingface AiOptimizerModelSpecsHuggingface
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    privateRegistry AiOptimizerModelSpecsPrivateRegistry
    Private registry configuration. Required when registryType is PRIVATE.
    routable boolean
    Whether the model is routable.
    type string
    Model type (chat, embeddings, completion, etc.).
    model str
    Model name.
    registry_type str
    Registry type: HUGGING_FACE or PRIVATE.
    description str
    Model description.
    huggingface AiOptimizerModelSpecsHuggingfaceArgs
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    private_registry AiOptimizerModelSpecsPrivateRegistryArgs
    Private registry configuration. Required when registryType is PRIVATE.
    routable bool
    Whether the model is routable.
    type str
    Model type (chat, embeddings, completion, etc.).
    model String
    Model name.
    registryType String
    Registry type: HUGGING_FACE or PRIVATE.
    description String
    Model description.
    huggingface Property Map
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    privateRegistry Property Map
    Private registry configuration. Required when registryType is PRIVATE.
    routable Boolean
    Whether the model is routable.
    type String
    Model type (chat, embeddings, completion, etc.).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AiOptimizerModelSpecs resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AiOptimizerModelSpecs Resource

    Get an existing AiOptimizerModelSpecs resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AiOptimizerModelSpecsState, opts?: CustomResourceOptions): AiOptimizerModelSpecs
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            huggingface: Optional[AiOptimizerModelSpecsHuggingfaceArgs] = None,
            model: Optional[str] = None,
            private_registry: Optional[AiOptimizerModelSpecsPrivateRegistryArgs] = None,
            registry_type: Optional[str] = None,
            routable: Optional[bool] = None,
            type: Optional[str] = None) -> AiOptimizerModelSpecs
    func GetAiOptimizerModelSpecs(ctx *Context, name string, id IDInput, state *AiOptimizerModelSpecsState, opts ...ResourceOption) (*AiOptimizerModelSpecs, error)
    public static AiOptimizerModelSpecs Get(string name, Input<string> id, AiOptimizerModelSpecsState? state, CustomResourceOptions? opts = null)
    public static AiOptimizerModelSpecs get(String name, Output<String> id, AiOptimizerModelSpecsState state, CustomResourceOptions options)
    resources:  _:    type: castai:index/aiOptimizer:AiOptimizerModelSpecs    get:      id: ${id}
    import {
      to = castai_ai_optimizer_model_specs.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    Model description.
    Huggingface Pulumi.CastAI.Inputs.AiOptimizerModelSpecsHuggingface
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    Model string
    Model name.
    PrivateRegistry Pulumi.CastAI.Inputs.AiOptimizerModelSpecsPrivateRegistry
    Private registry configuration. Required when registryType is PRIVATE.
    RegistryType string
    Registry type: HUGGING_FACE or PRIVATE.
    Routable bool
    Whether the model is routable.
    Type string
    Model type (chat, embeddings, completion, etc.).
    Description string
    Model description.
    Huggingface AiOptimizerModelSpecsHuggingfaceArgs
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    Model string
    Model name.
    PrivateRegistry AiOptimizerModelSpecsPrivateRegistryArgs
    Private registry configuration. Required when registryType is PRIVATE.
    RegistryType string
    Registry type: HUGGING_FACE or PRIVATE.
    Routable bool
    Whether the model is routable.
    Type string
    Model type (chat, embeddings, completion, etc.).
    description string
    Model description.
    huggingface object
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    model string
    Model name.
    private_registry object
    Private registry configuration. Required when registryType is PRIVATE.
    registry_type string
    Registry type: HUGGING_FACE or PRIVATE.
    routable bool
    Whether the model is routable.
    type string
    Model type (chat, embeddings, completion, etc.).
    description String
    Model description.
    huggingface AiOptimizerModelSpecsHuggingface
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    model String
    Model name.
    privateRegistry AiOptimizerModelSpecsPrivateRegistry
    Private registry configuration. Required when registryType is PRIVATE.
    registryType String
    Registry type: HUGGING_FACE or PRIVATE.
    routable Boolean
    Whether the model is routable.
    type String
    Model type (chat, embeddings, completion, etc.).
    description string
    Model description.
    huggingface AiOptimizerModelSpecsHuggingface
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    model string
    Model name.
    privateRegistry AiOptimizerModelSpecsPrivateRegistry
    Private registry configuration. Required when registryType is PRIVATE.
    registryType string
    Registry type: HUGGING_FACE or PRIVATE.
    routable boolean
    Whether the model is routable.
    type string
    Model type (chat, embeddings, completion, etc.).
    description str
    Model description.
    huggingface AiOptimizerModelSpecsHuggingfaceArgs
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    model str
    Model name.
    private_registry AiOptimizerModelSpecsPrivateRegistryArgs
    Private registry configuration. Required when registryType is PRIVATE.
    registry_type str
    Registry type: HUGGING_FACE or PRIVATE.
    routable bool
    Whether the model is routable.
    type str
    Model type (chat, embeddings, completion, etc.).
    description String
    Model description.
    huggingface Property Map
    HuggingFace registry configuration. Required when registryType is HUGGING_FACE.
    model String
    Model name.
    privateRegistry Property Map
    Private registry configuration. Required when registryType is PRIVATE.
    registryType String
    Registry type: HUGGING_FACE or PRIVATE.
    routable Boolean
    Whether the model is routable.
    type String
    Model type (chat, embeddings, completion, etc.).

    Supporting Types

    AiOptimizerModelSpecsHuggingface, AiOptimizerModelSpecsHuggingfaceArgs

    ModelName string
    HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
    ModelName string
    HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
    model_name string
    HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
    modelName String
    HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
    modelName string
    HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
    model_name str
    HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).
    modelName String
    HuggingFace model name (e.g. meta-llama/Llama-3.1-8B-Instruct).

    AiOptimizerModelSpecsPrivateRegistry, AiOptimizerModelSpecsPrivateRegistryArgs

    BaseModelId string
    Base model identifier.
    RegistryId string
    ID of the castai.AiOptimizerModelRegistry resource.
    BaseModelId string
    Base model identifier.
    RegistryId string
    ID of the castai.AiOptimizerModelRegistry resource.
    base_model_id string
    Base model identifier.
    registry_id string
    ID of the castai.AiOptimizerModelRegistry resource.
    baseModelId String
    Base model identifier.
    registryId String
    ID of the castai.AiOptimizerModelRegistry resource.
    baseModelId string
    Base model identifier.
    registryId string
    ID of the castai.AiOptimizerModelRegistry resource.
    base_model_id str
    Base model identifier.
    registry_id str
    ID of the castai.AiOptimizerModelRegistry resource.
    baseModelId String
    Base model identifier.
    registryId String
    ID of the castai.AiOptimizerModelRegistry resource.

    Package Details

    Repository
    castai castai/pulumi-castai
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the castai Terraform Provider.
    castai logo
    Viewing docs for CAST AI v8.60.0
    published on Wednesday, Aug 19, 2026 by CAST AI

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial