# StableDiffusionCppModelResource

- Module: [CommunityToolkit.Aspire.Hosting.StableDiffusionCpp](/reference/api/typescript/communitytoolkit.aspire.hosting.stablediffusioncpp.md)
- Version: `13.5.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1)

Represents a model hosted by stable-diffusion.cpp and downloaded from Hugging Face.

## Definition

```typescript
interface StableDiffusionCppModelResource
  extends IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithParent,
    StableDiffusionCppResource]],
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  readonly fileName: string;
  readonly parent: StableDiffusionCppResource;
  readonly repository: string;
  readonly revision: string;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the ConnectionStringExpression property
- `fileName`: `string` `get` -- Gets the model file path inside the Hugging Face repository.
- `parent`: [StableDiffusionCppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.stablediffusioncpp/stablediffusioncppresource.md) `get` -- Gets the parent stable-diffusion.cpp server.
- `repository`: `string` `get` -- Gets the Hugging Face repository identifier.
- `revision`: `string` `get` -- Gets the Hugging Face revision.
