Skip to main content
GET
Lists the available models
⚠️ Using our API via a dedicated deployment? Just replace api.langdock.com with your deployment’s base URL: <deployment-url>/api/public
This is the new Agents API with native Vercel AI SDK compatibility. If you’re using the legacy Assistants API, see the migration guide.
Retrieve the list of models and their ids, available for use with the Agent API. This endpoint is useful when you want to see which models you can use when creating a temporary agent.

Example Request

Response Format

The API returns a list of available models in the following format:

Response Fields

string
Always ‘list’, indicating the top-level JSON object type.
array<Model>
Array containing available model objects.
string
Model ID to use when creating or updating agents (e.g., “gpt-5”).
string
Always ‘model’, indicating the object type.
integer
Unix timestamp (ms) when the model was created.
string
Region where the model is available (e.g., “eu”, “us”, “global”).
boolean
Whether this model supports extended thinking mode.
Example response

Error Handling

You can use any of these model IDs when creating a temporary agent through the Agent API. Simply specify the model ID in the model field of your agent configuration:
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Response

200 - application/json

List of available models

object
enum<string>
required
Available options:
list
data
object[]
required