Integrations
Since Norlen follows the OpenAI standard, most AI frameworks work by pointing the base URL and key at us. Below are the most common ones.
LangChain
Section titled “LangChain”from langchain_openai import ChatOpenAI
llm = ChatOpenAI( model="qwen3.6-35b", base_url="https://api.norlen.io/v1", api_key="seu-token",)print(llm.invoke("Summarize what an API is.").content)import { ChatOpenAI } from "@langchain/openai";
const llm = new ChatOpenAI({ model: "qwen3.6-35b", configuration: { baseURL: "https://api.norlen.io/v1" }, apiKey: process.env.NORLEN_API_KEY,});console.log((await llm.invoke("Summarize what an API is.")).content);For embeddings in LangChain, use OpenAIEmbeddings with model="qwen3-embedding" and the same base_url.
LlamaIndex
Section titled “LlamaIndex”from llama_index.llms.openai_like import OpenAILike
llm = OpenAILike( model="qwen3.6-35b", api_base="https://api.norlen.io/v1", api_key="seu-token", is_chat_model=True,)print(llm.complete("What is RAG?"))Vercel AI SDK
Section titled “Vercel AI SDK”import { createOpenAI } from "@ai-sdk/openai";import { generateText } from "ai";
const norlen = createOpenAI({ baseURL: "https://api.norlen.io/v1", apiKey: process.env.NORLEN_API_KEY,});
const { text } = await generateText({ model: norlen("qwen3.6-35b"), prompt: "Write a short greeting.",});console.log(text);