
AI ListModels
CertifiedList available Langdock models
AI ListModels
List available Langdock models
Calls Langdock's GET /models endpoint on the route selected by modelFamily, to discover the model IDs available to your workspace. Langdock does not publish a stable response schema for this endpoint, so the response is parsed leniently: only id is required per model, and provider-specific fields (created/owned_by on the OpenAI route, display_name/created_at on the Anthropic route) are kept when present.
type: io.kestra.plugin.ai.langdock.ListModelsExamples
List Langdock OpenAI-route models and use the first one in a chat completion
id: list_and_chat
namespace: company.ai
tasks:
- id: list_models
type: io.kestra.plugin.ai.langdock.ListModels
apiKey: "{{ secret('LANGDOCK_API_KEY') }}"
modelFamily: OPENAI
- id: chat_completion
type: io.kestra.plugin.ai.completion.ChatCompletion
provider:
type: io.kestra.plugin.ai.provider.Langdock
apiKey: "{{ secret('LANGDOCK_API_KEY') }}"
modelFamily: OPENAI
modelName: "{{ outputs.list_models.models[0].id }}"
messages:
- type: USER
content: Say hello in one short sentence.
Properties
apiKey *string
API Key
Langdock API key used to authenticate the request. Store it as a Kestra secret rather than inline. No default: this property is required.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150baseUrl string
Base URL
Custom base URL overriding the default Langdock endpoint, for dedicated deployments, proxies, or test doubles such as WireMock. Not set by default, in which case the URL is derived from region.
modelFamily string
OPENAIOPENAIANTHROPICModel family
Langdock Completion API route whose models are listed: OPENAI or ANTHROPIC. Defaults to OPENAI.
region string
EUEUUSRegion
Langdock region the models are listed from: EU or US. Defaults to EU. Ignored when baseUrl points at a dedicated deployment.
Outputs
count integer
Count
Number of models returned.
models array
Models
Models available on the selected Langdock route.
io.kestra.plugin.ai.langdock.ListModels-Model
date-timeCreated at
Timestamp at which the model was published, when the API reports it.
Display name
Human-readable model name. Returned only by the Anthropic route.
Model ID
Model identifier, to pass as modelName on the Langdock provider.
Owned by
Organization that owns the model. Returned only by the OpenAI route.