Skip to main content
Creates a code completion using the Codestral model from Mistral.

Before You Start

  • API key: Create a personal API key or ask your workspace admin for a workspace API key with the Completion API scope.
  • Model availability: There are currently no Mistral models available for the API. Check back later for updates.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Parameters

All parameters from the Mistral fill-in-the-middle Completion endpoint are supported according to the Mistral specifications.

Rate limits

The default limits are 500 RPM (requests per minute) and 150,000 TPM (tokens per minute).
  • RPM is enforced per workspace, model, and API key.
  • TPM is shared by all API keys using the same model in a workspace.
  • On Langdock Cloud, admins can set TPM for custom models in Settings > Workspace > Products > API; it caps the estimated size of a single request.
  • On dedicated deployments, admins can configure custom limits per model in Settings > Workspace > Products > API.
If you exceed your rate limit, you will receive a 429 Too Many Requests response.

Using the Continue AI Code Agent

Using the Codestral model, combined with chat completion models from the Langdock API, makes it possible to use the open-source AI code agent Continue (continue.dev) fully via the Langdock API. Continue is available as a VS Code extension and as a JetBrains extension. To customize the models used by Continue, edit the configuration file at ~/.continue/config.yaml (MacOS / Linux) or %USERPROFILE%\.continue\config.yaml (Windows). The older config.json format is deprecated. Below is an example setup for using Continue with the Codestral model for autocomplete and Claude Sonnet 4.6 and GPT-5.2 models for chats and edits, all served from the Langdock API.
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.