ChatAimlapi 기능과 구성에 대한 자세한 문서는 API reference를 참조하세요.
AI/ML API는 높은 가용성과 처리량으로 수백 개의 호스팅된 foundation model에 대한 통합 액세스를 제공합니다.
Overview
Integration details
| Class | Package | Local | Serializable | JS support | Downloads | Version |
|---|---|---|---|---|---|---|
| ChatAimlapi | langchain-aimlapi | ❌ | beta | ❌ |
Model features
| Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Setup
AI/ML API model에 액세스하려면 계정을 생성하고 API key를 받은 다음langchain-aimlapi integration package를 설치해야 합니다.
Credentials
aimlapi.com으로 이동하여 가입하고 API key를 생성하세요. 완료되면AIMLAPI_API_KEY environment variable을 설정하세요:
Installation
LangChain AI/ML API integration은langchain-aimlapi package에 있습니다:
Instantiation
이제 model object를 인스턴스화하고 chat completion을 생성할 수 있습니다:Invocation
Streaming invocation
token 단위로 응답을 스트리밍할 수도 있습니다:API reference
모든 ChatAimlapi 기능과 구성에 대한 자세한 문서는 API reference를 참조하세요.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.