AI ListModels

AI ListModels

Certified

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.

yaml
type: io.kestra.plugin.ai.langdock.ListModels

List Langdock OpenAI-route models and use the first one in a chat completion

yaml
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

API Key

Base URL

Custom base URL to override the default endpoint (useful for local tests, WireMock, or dedicated deployments).

DefaultOPENAI
Possible Values
OPENAIANTHROPIC

Model family

Which Langdock Completion API route to list models from: OPENAI (default) or ANTHROPIC.

DefaultEU
Possible Values
EUUS

Region

The Langdock region to list models from. Ignored when a dedicated-deployment baseUrl is set.

Count

The number of models returned.

Models

The models available on the selected Langdock route.

Definitions
createdAtstring
Formatdate-time

Created at

Model creation timestamp, when provided by the API.

displayNamestring

Display name

Human-readable model name, when provided by the Anthropic route.

idstring

Model ID

The model identifier to use as modelName on the Langdock provider.

ownedBystring

Owned by

The organization that owns the model, when provided by the OpenAI route.