Skip to main content
Version: 3.6.1-rc.2

Build with the AI APIs

This section is for developers who use the platform's AI from their own applications, scripts and tools. You reach everything over HTTP with an API key, and you can keep using the OpenAI or Anthropic client you already know.

With the AI APIs you can:

  • call models through one endpoint, the Model Gateway, whether they run in your cluster or at an external provider
  • give a model tools, such as search over your own documents or your own MCP servers, and let the gateway run the tool calls
  • upload documents to a RAG endpoint and retrieve context from them
  • use the platform's models in coding agents and in VS Code

Every request carries an API key as a bearer token: Authorization: Bearer cm_api_…. The key's grants decide which models and RAG endpoints it can reach. The Model Gateway's address is the API URL at the bottom of the portal sidebar. Each RAG endpoint has its own URL, shown on its page in the portal.

Start with the page that fits what you want to do: