Before You Start
- Legacy Assistants API: This is the new Agents API with native Vercel AI SDK compatibility. If you’re using the legacy Assistants API, see the migration guide.
Base URL
Example Request
Response Format
The API returns a list of available models in the following format:Response Fields
Model object fields
Model object fields
Value to send as
model on create, update, and completions. When the deployment name maps to one accessible row, id is that name (for example gpt-5). When several rows share the name, id is that row’s model UUID.Example response
Error Handling
id in the model field when you create a temporary agent. Completions rejects a deployment name that maps to more than one accessible row. Unique names and existing Anthropic aliases still work.
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.