
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
baseUrl string
Base URL
Custom base URL to override the default endpoint (useful for local tests, WireMock, or dedicated deployments).
modelFamily string
OPENAIOPENAIANTHROPICModel family
Which Langdock Completion API route to list models from: OPENAI (default) or ANTHROPIC.
region string
EUEUUSRegion
The Langdock region to list models from. Ignored when a dedicated-deployment baseUrl is set.
Outputs
count integer
Count
The number of models returned.
models array
Models
The models available on the selected Langdock route.
io.kestra.plugin.ai.langdock.ListModels-Model
date-timeCreated at
Model creation timestamp, when provided by the API.
Display name
Human-readable model name, when provided by the Anthropic route.
Model ID
The model identifier to use as modelName on the Langdock provider.
Owned by
The organization that owns the model, when provided by the OpenAI route.