---
title: "AsposeLLMApi.Create"
url: "https://reference.aspose.com/llm/net/aspose.llm/asposellmapi/create/"
product: "Aspose.LLM for .NET API Reference"
description: "AsposeLLMApi method. Creates a new AsposeLLMApi instance using the provided preset. Equivalent to new AsposeLLMApipreset logger preserved for fluent / factorystyle call sites"
---

## AsposeLLMApi.Create method

Creates a new AsposeLLMApi instance using the provided preset. Equivalent to `new AsposeLLMApi(preset, logger)`; preserved for fluent / factory-style call sites.

```csharp
public static AsposeLLMApi Create(PresetCoreBase preset, ILogger? logger = null)
```

| Parameter | Type | Description |
| --- | --- | --- |
| preset | PresetCoreBase | Preset instance that provides default parameters. |
| logger | ILogger | Optional logger instance. |

### Return Value

New [`AsposeLLMApi`](../) instance.

### Exceptions

| exception | condition |
| --- | --- |
| InvalidOperationException | Thrown when another [`AsposeLLMApi`](../) instance is already live in the process. |

## Remarks

The preset carries configuration only, never a model. The model file it points at is obtained separately on your machine and is governed by the model publisher's license, which you are responsible for complying with.

### See Also

* class [AsposeLLMApi](../)
* namespace [Aspose.LLM](../../asposellmapi/)
* assembly [Aspose.LLM](../../../)


