The AI LLM interface type defines the connection to a Large Language Model (LLM) provider. Like any other Fabric interface, it is a Shared Object: the provider endpoint, the model and the API credentials are defined once, in the project, and are then used by every Fabric component that needs an LLM.
An AI LLM interface is consumed by:
llm://<tag>.LLM provider connectors are delivered as K2exchange extensions. Examples of supported providers are OpenAI, Anthropic, AWS Bedrock and Google Vertex AI.
Note: as with any installed extension, add its files to your project's Git repository.
Go to Project Tree > Shared Objects, right click Interfaces, select New Interface and then select AI LLM from the Interface Type dropdown menu. Populate the connection settings and click Save.
Go to Project Tree > Implementation > Shared Objects, right click Interfaces and select New Interface. Or: Go to the Top Menu, then select > Fabric > New Interface
Select an AI LLM from the AI section, enter a name for the interface and click Create. Populate the connection settings and click Save.
A project can hold several AI LLM interfaces - for example a lighter model for simple tasks and a stronger model for complex reasoning, or a secondary provider used as a fallback. Consumers select one by name or by tag, and Fabric resolves the reference in the following order:
In a Broadway flow, set the LLM Actor's interface parameter to llm://<tag>, for example llm://sql-generator.
When an LLM task is triggered, Fabric looks up the configured AI LLM interface and uses it to communicate with the underlying model, using the credentials defined in that interface. Tagging separate interfaces per task - for example a sql-generator interface alongside the default one - is what lets an implementation choose a different model for each of these steps.
The GenAI Data Fusion agent framework invokes LLMs at several points in the agent workflow:
When an LLM task is triggered, Fabric looks up the configured AI LLM interface and uses it to communicate with the underlying model, using the credentials defined in that interface. Tagging separate interfaces per task - for example a sql-generator interface alongside the default one - is what lets an implementation choose a different model for each of these steps.
Starting from V8.5.1, Fabric exposes its configured AI LLM interfaces through an OpenAI-compatible REST endpoint. Any client that can talk to the OpenAI chat completions API - including the Studio AI assistant - can therefore point at Fabric instead of at a foundation model provider.
This means that:
The base URL is the Fabric web services URL, followed by /api/v1, for example http://<fabric-host>:3213/api/v1.
The model field of the request selects the interface: use default for the default LLM engine, or the name or tag of a specific AI LLM interface.
Requests are authenticated with a Fabric user or API token, passed in the standard Authorization: Bearer header, and require the LLM_INVOKE permission (or ALL):
GRANT LLM_INVOKE ON * TO <role>;
For more information about roles and permissions, see Fabric Authorization Commands.
curl -s -X POST http://localhost:3213/api/v1/chat/completions \
-H "Authorization: Bearer <fabric-token>" \
-H "Content-Type: application/json" \
-d '{"model":"default","messages":[{"role":"user","content":"Say hi in three words."}],"stream":false}'
Any client that speaks the OpenAI chat completions API can be pointed at this endpoint by setting its base URL to the Fabric /api/v1 URL and leaving its API key empty.
For the Fabric Studio AI assistant, see Custom LLM Providers.
The AI LLM interface type defines the connection to a Large Language Model (LLM) provider. Like any other Fabric interface, it is a Shared Object: the provider endpoint, the model and the API credentials are defined once, in the project, and are then used by every Fabric component that needs an LLM.
An AI LLM interface is consumed by:
llm://<tag>.LLM provider connectors are delivered as K2exchange extensions. Examples of supported providers are OpenAI, Anthropic, AWS Bedrock and Google Vertex AI.
Note: as with any installed extension, add its files to your project's Git repository.
Go to Project Tree > Shared Objects, right click Interfaces, select New Interface and then select AI LLM from the Interface Type dropdown menu. Populate the connection settings and click Save.
Go to Project Tree > Implementation > Shared Objects, right click Interfaces and select New Interface. Or: Go to the Top Menu, then select > Fabric > New Interface
Select an AI LLM from the AI section, enter a name for the interface and click Create. Populate the connection settings and click Save.
A project can hold several AI LLM interfaces - for example a lighter model for simple tasks and a stronger model for complex reasoning, or a secondary provider used as a fallback. Consumers select one by name or by tag, and Fabric resolves the reference in the following order:
In a Broadway flow, set the LLM Actor's interface parameter to llm://<tag>, for example llm://sql-generator.
When an LLM task is triggered, Fabric looks up the configured AI LLM interface and uses it to communicate with the underlying model, using the credentials defined in that interface. Tagging separate interfaces per task - for example a sql-generator interface alongside the default one - is what lets an implementation choose a different model for each of these steps.
The GenAI Data Fusion agent framework invokes LLMs at several points in the agent workflow:
When an LLM task is triggered, Fabric looks up the configured AI LLM interface and uses it to communicate with the underlying model, using the credentials defined in that interface. Tagging separate interfaces per task - for example a sql-generator interface alongside the default one - is what lets an implementation choose a different model for each of these steps.
Starting from V8.5.1, Fabric exposes its configured AI LLM interfaces through an OpenAI-compatible REST endpoint. Any client that can talk to the OpenAI chat completions API - including the Studio AI assistant - can therefore point at Fabric instead of at a foundation model provider.
This means that:
The base URL is the Fabric web services URL, followed by /api/v1, for example http://<fabric-host>:3213/api/v1.
The model field of the request selects the interface: use default for the default LLM engine, or the name or tag of a specific AI LLM interface.
Requests are authenticated with a Fabric user or API token, passed in the standard Authorization: Bearer header, and require the LLM_INVOKE permission (or ALL):
GRANT LLM_INVOKE ON * TO <role>;
For more information about roles and permissions, see Fabric Authorization Commands.
curl -s -X POST http://localhost:3213/api/v1/chat/completions \
-H "Authorization: Bearer <fabric-token>" \
-H "Content-Type: application/json" \
-d '{"model":"default","messages":[{"role":"user","content":"Say hi in three words."}],"stream":false}'
Any client that speaks the OpenAI chat completions API can be pointed at this endpoint by setting its base URL to the Fabric /api/v1 URL and leaving its API key empty.
For the Fabric Studio AI assistant, see Custom LLM Providers.