Use LangChain with API Volta

Configure LangChain and LangChain.js ChatOpenAI with the API Volta base URL to run selected GLM, DeepSeek, Kimi and other models in your existing chains and agents.

All integration guides · API docs · Model pricing

Python chains and agents

LangChain's ChatOpenAI class talks to any OpenAI-compatible endpoint. Set base_url and api_key, then pass a published model alias such as DeepSeek-V4-Flash or GLM-5.3.

import os
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    model="DeepSeek-V4-Flash",
    base_url="https://app.apivolta.com/v1",
    api_key=os.environ["API_VOLTA_API_KEY"],
    streaming=True,
)

result = llm.invoke("Write a release note.")

JavaScript and TypeScript

The same configuration works for LangGraph agents, LCEL chains and LangChain tool calling, because requests stay on the /v1/chat/completions contract.

import { ChatOpenAI } from '@langchain/openai'

const llm = new ChatOpenAI({
  model: 'DeepSeek-V4-Flash',
  configuration: {
    baseURL: 'https://app.apivolta.com/v1',
    apiKey: process.env.API_VOLTA_API_KEY,
  },
  streaming: true,
})

const result = await llm.invoke('Write a release note.')

Choosing models

Model aliases are case-sensitive and differ per provider family. Compare published USD pricing and context windows on the model pricing page before wiring an alias into a chain.

Availability and pricing are published on model pricing and may vary by provider, region and account.

Create an account · Plans · support@apivolta.com