Overview
Integration details
Model features
Setup
To access AI/ML API models you’ll need to create an account, get an API key, and install thelangchain-aimlapi integration package.
Credentials
Head to aimlapi.com to sign up and generate an API key. Once you’ve done this set theAIMLAPI_API_KEY environment variable:
Installation
The LangChain AI/ML API integration lives in thelangchain-aimlapi package:
Instantiation
Now we can instantiate our model object and generate text completions:Invocation
Streaming invocation
You can also stream responses token-by-token:Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

