Skip to content

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.

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)

For embeddings in LangChain, use OpenAIEmbeddings with model="qwen3-embedding" and the same base_url.

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?"))
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);