# LangChain4j > LangChain4j is an open-source Java library for building LLM-powered applications and agents on the JVM. It offers a unified API over LLM providers and embedding (vector) stores, AI Services, tools (function calling), MCP, RAG, agents, guardrails and structured outputs, and works with plain Java, Quarkus, Spring Boot, Helidon and Micronaut. Each link points to a Markdown copy of one page. Fetch only the pages you need; llms-full.txt has all pages in one large file. - Start with Get Started, AI Services, Tools and Chat Memory. Each integration page covers one provider or store. - Java 17 or newer. Group ID `dev.langchain4j`; `langchain4j-bom` keeps module versions in line. The latest release is on the Get Started page. - The documentation is built from the main branch and can describe features that are not released yet. - Since 1.0: `ChatModel` / `StreamingChatModel` (formerly `ChatLanguageModel` / `StreamingChatLanguageModel`), called with `chat(...)` (formerly `generate(...)`); AI Services take them with `.chatModel(...)` / `.streamingChatModel(...)`. Code written for 0.x does not compile with 1.x. - Javadoc: https://docs.langchain4j.dev/apidocs/index.html ## Table of Contents - [Introduction](https://docs.langchain4j.dev/intro.md): LangChain4j is an open-source Java library for building applications and agents with large language models (LLMs). Learn what it offers and how it ... - [Get Started](https://docs.langchain4j.dev/get-started.md): Add LangChain4j to a Java project, chat with a model, and build your first AI Service with a tool and chat memory. - [Chat and Language Models](https://docs.langchain4j.dev/tutorials/chat-and-language-models.md): The low-level ChatModel API: send messages to an LLM, read the response, and use text, images, audio, video and PDF as input. - [Chat Memory](https://docs.langchain4j.dev/tutorials/chat-memory.md): Keep the context of a conversation with ChatMemory: message window and token window eviction, and persistence in a ChatMemoryStore. - [AI Services](https://docs.langchain4j.dev/tutorials/ai-services.md): AI Services let you declare a plain Java interface and have LangChain4j implement it, with chat memory, tools, RAG and structured outputs. - [Tools (Function Calling)](https://docs.langchain4j.dev/tutorials/tools.md): Let the LLM call your Java methods: declare tools with @Tool or programmatically, use them in AI Services, and control how tool calls run. - [Structured Outputs](https://docs.langchain4j.dev/tutorials/structured-outputs.md): Get structured data from an LLM as Java objects using JSON schema, JSON mode or prompting, with ChatModel or with AI Services. - [RAG (Retrieval-Augmented Generation)](https://docs.langchain4j.dev/tutorials/rag.md): Retrieval-Augmented Generation in LangChain4j: load, split, embed and store documents, then retrieve relevant content to ground LLM answers. - [Model Context Protocol (MCP)](https://docs.langchain4j.dev/tutorials/mcp.md): Connect to Model Context Protocol (MCP) servers over Streamable HTTP or stdio and use their tools, resources and prompts in LangChain4j. - [Agents and Agentic AI](https://docs.langchain4j.dev/tutorials/agents.md): Build agentic AI applications in Java with the langchain4j-agentic module: workflows, supervisor agents, custom patterns, A2A and MCP. - [Classification](https://docs.langchain4j.dev/tutorials/classification.md): This example demonstrates **sentiment classification** using LangChain4j's AI-powered services. - [Customizable HTTP Client](https://docs.langchain4j.dev/tutorials/customizable-http-client.md): Some LangChain4j modules (including OpenAI, Ollama and the MCP Streamable HTTP transport) support customizing the HTTP clients used to call remote ... - [Decision Models](https://docs.langchain4j.dev/tutorials/decision-models.md): A decision model answers typed questions about some input (state), instead of generating text. You give it an **input** (state), for example a supp... - [Decision Services](https://docs.langchain4j.dev/tutorials/decision-services.md): Decision models answer typed questions about some input (state): yes/no questions, questions choosing one of several options, and so on. Decision S... - [Embedding (Vector) Stores](https://docs.langchain4j.dev/tutorials/embedding-stores.md): Documentation on embedding stores can be found here. - [Evaluation](https://docs.langchain4j.dev/tutorials/evaluation.md): Evaluation measures how good the answers of your application are: how often they are correct, based on the right sources and helpful, over many rea... - [Guardrails](https://docs.langchain4j.dev/tutorials/guardrails.md): Check and fix what goes into and comes out of an LLM with input and output guardrails in AI Services: rewrite, fail, retry or reprompt. - [Helidon Integration](https://docs.langchain4j.dev/tutorials/helidon-integration.md): Helidon provides a LangChain4j integration module that simplifies building AI-driven applications while leveraging Helidon’s programming model and ... - [Image Models](https://docs.langchain4j.dev/tutorials/image-models.md): More info coming soon - [Using Jackson 3](https://docs.langchain4j.dev/tutorials/jackson-3.md): LangChain4j reads and writes JSON in a lot of places: the requests and responses it exchanges with LLM providers, the structured output an AI Servi... - [JSON Codec](https://docs.langchain4j.dev/tutorials/json.md): LangChain4j ships an internal JSON serializer (defaults to Jackson) that is used by "tools" and "structured output" functionalities. - [Kotlin Support](https://docs.langchain4j.dev/tutorials/kotlin.md): Kotlin is a statically-typed language targeting the JVM (and other platforms), enabling concise and elegant code with seamless interoperability wit... - [Logging](https://docs.langchain4j.dev/tutorials/logging.md): LangChain4j uses SLF4J for logging, allowing you to plug in any logging backend you prefer, such as Logback or Log4j. - [Building a Java MCP server](https://docs.langchain4j.dev/tutorials/mcp-stdio-server.md): LangChain4j provides an MCP **client** (`langchain4j-mcp`) for connecting to MCP servers. If you want to build a Java-based MCP **stdio server** (a... - [Micronaut Integration](https://docs.langchain4j.dev/tutorials/micronaut-integration.md): Micronaut provides a Micronaut module for LangChain4j. - [Model Parameters](https://docs.langchain4j.dev/tutorials/model-parameters.md): Depending on the model and provider you choose, you can adjust numerous parameters that will define: - The model's output: the level of creativity ... - [Model Routing](https://docs.langchain4j.dev/tutorials/model-routing.md): Different requests need different models: a greeting or a short factual question can be answered by a small, fast and cheap model, while writing co... - [Non-blocking and Reactive](https://docs.langchain4j.dev/tutorials/non-blocking.md): By default, calling an AI Service blocks the calling thread for the whole interaction: the LLM call, tool executions, chat memory access and guardr... - [Observability](https://docs.langchain4j.dev/tutorials/observability.md): Observe LLM applications built with LangChain4j: AI Service events, model and RAG listeners, Micrometer metrics and the Observation API. - [Payara Micro Integration](https://docs.langchain4j.dev/tutorials/payara-micro-integration.md): LangChain4j can be seamlessly integrated into a Payara Micro application, leveraging the standard features of Jakarta EE and MicroProfile for depen... - [Quarkus Integration](https://docs.langchain4j.dev/tutorials/quarkus-integration.md): Use LangChain4j in Quarkus with the Quarkus LangChain4j extension: declarative AI Services, configuration properties, native images and Dev UI. - [Response Streaming](https://docs.langchain4j.dev/tutorials/response-streaming.md): Stream LLM responses token by token with StreamingChatModel and StreamingChatResponseHandler, using the low-level API. - [Skills](https://docs.langchain4j.dev/tutorials/skills.md): Skills is a mechanism for equipping an LLM with reusable, self-contained behavioral instructions. A skill bundles a name, a short description, and ... - [Spring Boot Integration](https://docs.langchain4j.dev/tutorials/spring-boot-integration.md): Use LangChain4j with Spring Boot 3 and 4: starters for models and stores, declarative AI Services with @AiService, observability and testing. - [Testing](https://docs.langchain4j.dev/tutorials/testing.md): Test LangChain4j applications: unit tests with mock models, checks on what an AI Service did, judging answers with a model, and real-model tests. - [Playwright](https://docs.langchain4j.dev/integrations/browser-execution-engines/playwright.md): - `BrowserExecutionEngine` - `PlaywrightBrowserExecutionEngine` - `BrowserUseTool` - [Comparison table of all supported Chat Memory Stores](https://docs.langchain4j.dev/integrations/chat-memory-stores.md) - [Azure ACA Dynamic Sessions](https://docs.langchain4j.dev/integrations/code-execution-engines/azure-acads.md): - `SessionsREPLTool` - [GraalVM Polyglot/Truffle](https://docs.langchain4j.dev/integrations/code-execution-engines/graalvm-polyglot.md): This module enables execution of arbitrary Python/JavaScript code via GraalVM and is inherently dangerous. - [Judge0](https://docs.langchain4j.dev/integrations/code-execution-engines/judge0.md): https://github.com/judge0/judge0 - [Local](https://docs.langchain4j.dev/integrations/code-execution-engines/local.md): `CommandLineExecutionEngine` uses the local computer env to execute provided command line code. There are `CommandLineTool` and... - [Google AI Gemini](https://docs.langchain4j.dev/integrations/decision-models/google-ai-gemini.md): - Gemini Decisions API documentation - [Google Gen AI](https://docs.langchain4j.dev/integrations/decision-models/google-genai.md): - Gemini Decisions API documentation - Google Gen AI Java SDK - [Comparison Table of all supported Decision Models](https://docs.langchain4j.dev/integrations/decision-models.md): Legend: - [Ollama](https://docs.langchain4j.dev/integrations/decision-models/ollama.md): - Ollama decision guide - System One API reference - Decision models available on Ollama - [OpenAI](https://docs.langchain4j.dev/integrations/decision-models/open-ai.md): - OpenAI Decisions API guide - [TypeSafe](https://docs.langchain4j.dev/integrations/decision-models/typesafe.md): - TypeSafe Documentation - System One API Reference - [Amazon S3](https://docs.langchain4j.dev/integrations/document-loaders/amazon-s3.md): - `AmazonS3DocumentLoader` - [Azure Blob Storage](https://docs.langchain4j.dev/integrations/document-loaders/azure-blob-storage.md): - `AzureBlobStorageDocumentLoader` - [Classpath](https://docs.langchain4j.dev/integrations/document-loaders/classpath.md): - `ClassPathSource` / `ClassPathDocumentLoader` - [File System](https://docs.langchain4j.dev/integrations/document-loaders/file-system.md): - `FileSystemSource` / `FileSystemDocumentLoader` - [GitHub](https://docs.langchain4j.dev/integrations/document-loaders/github.md): - `GitHubDocumentLoader` - [Google Cloud Storage](https://docs.langchain4j.dev/integrations/document-loaders/google-cloud-storage.md): A Google Cloud Storage (GCS) document loader that allows you to load documents from storage buckets. - [Playwright](https://docs.langchain4j.dev/integrations/document-loaders/playwright.md): - `PlaywrightDocumentLoader` - [Selenium](https://docs.langchain4j.dev/integrations/document-loaders/selenium.md): - `SeleniumDocumentLoader` - [Tencent COS](https://docs.langchain4j.dev/integrations/document-loaders/tencent-cos.md): - `TencentCosDocumentLoader` - [URL](https://docs.langchain4j.dev/integrations/document-loaders/url.md): - `UrlDocumentLoader` - [Apache PDFBox](https://docs.langchain4j.dev/integrations/document-parsers/apache-pdfbox.md): - `ApachePdfBoxDocumentParser` - [Apache POI](https://docs.langchain4j.dev/integrations/document-parsers/apache-poi.md): - `ApachePoiDocumentParser` - [Apache Tika](https://docs.langchain4j.dev/integrations/document-parsers/apache-tika.md): - `ApacheTikaDocumentParser` - [Docling](https://docs.langchain4j.dev/integrations/document-parsers/docling.md): Docling is an IBM Research document processing engine that extracts text and structure from various document formats including PDF, DOCX, PPTX, and... - [Markdown](https://docs.langchain4j.dev/integrations/document-parsers/markdown.md): - `MarkdownDocumentParser` - [Text](https://docs.langchain4j.dev/integrations/document-parsers/text.md): - `TextDocumentParser` - [YAML](https://docs.langchain4j.dev/integrations/document-parsers/yaml.md): - `YamlDocumentParser` - [In-process (ONNX)](https://docs.langchain4j.dev/integrations/embedding-models/in-process.md): LangChain4j provides a few popular local embedding models packaged as maven dependencies. They are powered by ONNX runtime and are running in the s... - [Amazon Bedrock](https://docs.langchain4j.dev/integrations/embedding-models/amazon-bedrock.md): - **`cohere.embed-english-v3`** - **`cohere.embed-multilingual-v3`** - [Azure OpenAI](https://docs.langchain4j.dev/integrations/embedding-models/azure-open-ai.md): This is the documentation for the `Azure OpenAI` integration, that uses the Azure SDK from Microsoft, and works best if you are using the Microsoft... - [Cohere](https://docs.langchain4j.dev/integrations/embedding-models/cohere.md): - `CohereEmbeddingModel` - [DashScope](https://docs.langchain4j.dev/integrations/embedding-models/dashscope.md): DashScope is a platform developed by Alibaba Cloud. It provides an interface for model visualization, monitoring, and debugging, particularly when ... - [Google AI Gemini Embeddings](https://docs.langchain4j.dev/integrations/embedding-models/google-ai-gemini.md): https://ai.google.dev/gemini-api/docs/embeddings - [Google Gen AI Embeddings (Experimental)](https://docs.langchain4j.dev/integrations/embedding-models/google-genai.md): https://github.com/googleapis/java-genai - [Google Vertex AI](https://docs.langchain4j.dev/integrations/embedding-models/google-vertex-ai.md): To get started follow the steps outlined in the `Get started` section of Vertex AI Gemini integration tutorial to create a Google Cloud Platform ac... - [Hugging Face](https://docs.langchain4j.dev/integrations/embedding-models/hugging-face.md): - https://huggingface.co/docs/api-inference/index - https://huggingface.co/docs/api-inference/detailed_parameters#feature-extraction-task - [Jina](https://docs.langchain4j.dev/integrations/embedding-models/jina.md): https://jina.ai/ - [Jlama](https://docs.langchain4j.dev/integrations/embedding-models/jlama.md): To install langchain4j to your project, add the following dependency: - [LocalAI](https://docs.langchain4j.dev/integrations/embedding-models/local-ai.md): https://localai.io/ - [Mistral AI](https://docs.langchain4j.dev/integrations/embedding-models/mistral-ai.md): To install langchain4j to your project, add the following dependency: - [Nomic](https://docs.langchain4j.dev/integrations/embedding-models/nomic.md): https://home.nomic.ai/ - [Ollama](https://docs.langchain4j.dev/integrations/embedding-models/ollama.md): https://ollama.com/ - [OpenAI Official SDK](https://docs.langchain4j.dev/integrations/embedding-models/open-ai-official.md): This is the documentation for the `OpenAI Official SDK` integration, that uses the official OpenAI Java SDK. - [OpenAI](https://docs.langchain4j.dev/integrations/embedding-models/open-ai.md): This is the documentation for the `OpenAI` integration, that uses a custom Java implementation of the OpenAI REST API, that works best with Quarkus... - [OVHcloud AI Endpoints](https://docs.langchain4j.dev/integrations/embedding-models/ovh-ai.md): - OVHclous AI Endpoints Documentation - OVHcloud AI Endpoints API Reference - [Qianfan](https://docs.langchain4j.dev/integrations/embedding-models/qianfan.md): 百度智能云千帆大模型 image - [Voyage AI](https://docs.langchain4j.dev/integrations/embedding-models/voyage-ai.md): - `VoyageAiEmbeddingModel` - [watsonx.ai](https://docs.langchain4j.dev/integrations/embedding-models/watsonx.md): - watsonx.ai API Reference - watsonx.ai Java SDK - watsonx.ai Java SDK documentation - [Cloudflare Workers AI](https://docs.langchain4j.dev/integrations/embedding-models/workers-ai.md): https://developers.cloudflare.com/workers-ai/ - [Xinference](https://docs.langchain4j.dev/integrations/embedding-models/xinference.md): - https://inference.readthedocs.io/ - [Zhipu AI](https://docs.langchain4j.dev/integrations/embedding-models/zhipu-ai.md): ZhiPu AI is a platform to provide model service including text generation, text embedding, image generation and so on. You can refer to ZhiPu AI Op... - [In-memory](https://docs.langchain4j.dev/integrations/embedding-stores/in-memory.md): LangChain4j provides a simple in-memory implementation of an `EmbeddingStore` interface: `InMemoryEmbeddingStore`. It is useful for fast prototypin... - [Google AlloyDB for PostgreSQL](https://docs.langchain4j.dev/integrations/embedding-stores/alloydb.md): AlloyDB is a fully managed relational database service that offers high performance, seamless integration, and impressive scalability. AlloyDB is 1... - [Amazon S3 Vectors](https://docs.langchain4j.dev/integrations/embedding-stores/amazon-s3-vectors.md): The Amazon S3 Vectors Embedding Store integrates with Amazon S3 Vectors, a purpose-built vector storage capability within Amazon S3 designed for st... - [ArcadeDB](https://docs.langchain4j.dev/integrations/embedding-stores/arcadedb.md): https://arcadedb.com/ - [Astra DB](https://docs.langchain4j.dev/integrations/embedding-stores/astra-db.md): Astra DB - [Azure AI Search](https://docs.langchain4j.dev/integrations/embedding-stores/azure-ai-search.md): https://azure.microsoft.com/en-us/products/ai-services/ai-search/ - [Azure CosmosDB Mongo vCore](https://docs.langchain4j.dev/integrations/embedding-stores/azure-cosmos-mongo-vcore.md): https://azure.microsoft.com/en-us/products/cosmos-db/ - [Azure CosmosDB NoSQL](https://docs.langchain4j.dev/integrations/embedding-stores/azure-cosmos-nosql.md): https://azure.microsoft.com/en-us/products/cosmos-db/ - [Azure DocumentDB](https://docs.langchain4j.dev/integrations/embedding-stores/azure-documentdb.md): https://learn.microsoft.com/en-us/azure/documentdb/ - [Cassandra](https://docs.langchain4j.dev/integrations/embedding-stores/cassandra.md): Cassandra - [Chroma](https://docs.langchain4j.dev/integrations/embedding-stores/chroma.md): https://www.trychroma.com/ - [ClickHouse](https://docs.langchain4j.dev/integrations/embedding-stores/clickhouse.md): ClickHouse is the fastest and most resource efficient open-source database for real-time apps and analytics with full SQL support and a wide range ... - [Google Cloud SQL for PostgreSQL](https://docs.langchain4j.dev/integrations/embedding-stores/cloud-sql.md): Cloud SQL is a fully managed relational database service that offers high performance, seamless integration, and impressive scalability. Cloud SQL ... - [CockroachDB](https://docs.langchain4j.dev/integrations/embedding-stores/cockroachdb.md): CockroachDB is a distributed SQL database that speaks the PostgreSQL wire protocol. Since v24.2 it ships a native `VECTOR` column type, and since v... - [Oracle Coherence](https://docs.langchain4j.dev/integrations/embedding-stores/coherence.md): https://coherence.community/ - [Couchbase](https://docs.langchain4j.dev/integrations/embedding-stores/couchbase.md): https://www.couchbase.com/ - [DuckDB](https://docs.langchain4j.dev/integrations/embedding-stores/duckdb.md): https://duckdb.org/ - [Elasticsearch](https://docs.langchain4j.dev/integrations/embedding-stores/elasticsearch.md): https://www.elastic.co/ - [Hazelcast](https://docs.langchain4j.dev/integrations/embedding-stores/hazelcast.md): Hazelcast is a distributed in-memory data grid and computing platform. LangChain4j integrates with Hazelcast through two modules, split so the open... - [Hibernate](https://docs.langchain4j.dev/integrations/embedding-stores/hibernate.md): LangChain4j integrates seamlessly with Hibernate, allowing developers to store and query vector embeddings directly in all databases that Hibernate... - [Comparison table of all supported Embedding Stores](https://docs.langchain4j.dev/integrations/embedding-stores.md): Compare the embedding (vector) stores LangChain4j supports: storing metadata, filtering by metadata and removing embeddings, per store. - [Infinispan](https://docs.langchain4j.dev/integrations/embedding-stores/infinispan.md): Infinispan is an open-source (Apache 2) in-memory key-value database and cache, can hold nearly any type of data, from plain-text to structured obj... - [JVector](https://docs.langchain4j.dev/integrations/embedding-stores/jvector.md): https://github.com/jbellis/jvector - [Mariadb Vector](https://docs.langchain4j.dev/integrations/embedding-stores/mariadb.md): https://mariadb.com/kb/en/vector-overview - [Milvus](https://docs.langchain4j.dev/integrations/embedding-stores/milvus.md): Milvus is an open-source vector database. LangChain4j can use it as an `EmbeddingStore` to persist embeddings and run similarity search over them. - [MongoDB Atlas](https://docs.langchain4j.dev/integrations/embedding-stores/mongodb-atlas.md): MongoDB Atlas is a fully-managed cloud database available in AWS, Azure, and GCP. It supports native Vector Search and full-text search (BM25 algor... - [Neo4j](https://docs.langchain4j.dev/integrations/embedding-stores/neo4j.md): Neo4j is a high-performance, open-source graph database designed for managing connected data. Neo4j's native graph model is ideal for modelling com... - [OceanBase](https://docs.langchain4j.dev/integrations/embedding-stores/oceanbase.md): The OceanBase Embedding Store integrates with OceanBase database for vector similarity search and hybrid search capabilities. - [OpenSearch](https://docs.langchain4j.dev/integrations/embedding-stores/opensearch.md): https://opensearch.org/ - [Oracle](https://docs.langchain4j.dev/integrations/embedding-stores/oracle.md): - `OracleEmbeddingStore` - `OracleChatMemoryStore` - [PGVector](https://docs.langchain4j.dev/integrations/embedding-stores/pgvector.md): LangChain4j integrates seamlessly with PGVector, allowing developers to store and query vector embeddings directly in PostgreSQL. This integration ... - [Pinecone](https://docs.langchain4j.dev/integrations/embedding-stores/pinecone.md): https://www.pinecone.io/ - [Qdrant](https://docs.langchain4j.dev/integrations/embedding-stores/qdrant.md): https://qdrant.tech/ - [Redis](https://docs.langchain4j.dev/integrations/embedding-stores/redis.md): https://redis.io/ - [SQL Server](https://docs.langchain4j.dev/integrations/embedding-stores/sqlserver.md): The SQL Server Embedding Store integrates with the Vector search and vector indexes introduced in SQL Server 2025. - [Tablestore](https://docs.langchain4j.dev/integrations/embedding-stores/tablestore.md): https://www.aliyun.com/product/ots - [Valkey](https://docs.langchain4j.dev/integrations/embedding-stores/valkey.md): https://valkey.io/ - [Vearch](https://docs.langchain4j.dev/integrations/embedding-stores/vearch.md): https://github.com/vearch/vearch - [Vespa](https://docs.langchain4j.dev/integrations/embedding-stores/vespa.md): https://vespa.ai/ - [Weaviate](https://docs.langchain4j.dev/integrations/embedding-stores/weaviate.md): https://weaviate.io/ - [YugabyteDB](https://docs.langchain4j.dev/integrations/embedding-stores/yugabytedb.md): YugabyteDB is a distributed SQL database that provides PostgreSQL compatibility with horizontal scalability and high availability across multiple r... - [LangChain4J CDI](https://docs.langchain4j.dev/integrations/frameworks/cdi.md): LangChain4J CDI injects AI services directly into your Jakarta EE and MicroProfile applications. - [Helidon](https://docs.langchain4j.dev/integrations/frameworks/helidon.md): Helidon provides a LangChain4j integration module that simplifies building AI-driven applications while leveraging Helidon’s programming model and ... - [Micronaut](https://docs.langchain4j.dev/integrations/frameworks/micronaut.md): Micronaut provides a LangChain4j integration module that provides configuration management and dependency injection of LangChain4j APIs. - [Quarkus](https://docs.langchain4j.dev/integrations/frameworks/quarkus.md): The Quarkus LangChain4j extension seamlessly integrates with the Quarkus programming model and existing Quarkus runtime components. - [Spring Boot](https://docs.langchain4j.dev/integrations/frameworks/spring-boot.md): Documentation on Spring Boot integration can be found here. - [Azure OpenAI Dall·E](https://docs.langchain4j.dev/integrations/image-models/azure-dall-e.md): This is the documentation for the `Azure OpenAI` integration, that uses the Azure SDK from Microsoft, and works best if you are using the Microsoft... - [OpenAI Image Models](https://docs.langchain4j.dev/integrations/image-models/dall-e.md): This is the documentation for the `OpenAI` integration, that uses a custom Java implementation of the OpenAI REST API, that works best with Quarkus... - [Google AI Gemini Image Generation](https://docs.langchain4j.dev/integrations/image-models/gemini.md): Gemini can generate and edit images conversationally using specialized image models known as **Nano Banana** (Gemini 2.5 Flash Image) and **Nano Ba... - [Google Imagen](https://docs.langchain4j.dev/integrations/image-models/imagen.md): An article about image generation with Imagen - [Ollama Image Generation](https://docs.langchain4j.dev/integrations/image-models/ollama.md): Ollama image generation is experimental. The Ollama API and LangChain4j integration may change in future versions. - [OpenAI Official SDK](https://docs.langchain4j.dev/integrations/image-models/open-ai-official.md): This is the documentation for the `OpenAI Official SDK` integration, that uses the official OpenAI Java SDK. - [watsonx.ai](https://docs.langchain4j.dev/integrations/image-models/watsonx.md): - watsonx.ai API Reference - watsonx.ai Java SDK - watsonx.ai Java SDK documentation - [Cloudflare Workers AI](https://docs.langchain4j.dev/integrations/image-models/workers-ai.md): https://developers.cloudflare.com/workers-ai/ - [Xinference](https://docs.langchain4j.dev/integrations/image-models/xinference.md): - https://inference.readthedocs.io/ - [ZhiPu AI](https://docs.langchain4j.dev/integrations/image-models/zhipu-ai.md): ZhiPu AI is a platform to provide model service including text generation, text embedding, image generation and so on. You can refer to ZhiPu AI Op... - [Amazon Bedrock](https://docs.langchain4j.dev/integrations/language-models/amazon-bedrock.md): Models ids can be found here. - [Anthropic](https://docs.langchain4j.dev/integrations/language-models/anthropic.md): - Anthropic Documentation - Anthropic API Reference - [Azure OpenAI](https://docs.langchain4j.dev/integrations/language-models/azure-open-ai.md): This is the documentation for the `Azure OpenAI` integration, that uses the Azure SDK from Microsoft, and works best if you are using the Microsoft... - [ChatGLM](https://docs.langchain4j.dev/integrations/language-models/chatglm.md): https://github.com/THUDM/ChatGLM-6B - [Cohere](https://docs.langchain4j.dev/integrations/language-models/cohere.md): This is the documentation for the community `Cohere` chat model integration. - [DashScope (Qwen)](https://docs.langchain4j.dev/integrations/language-models/dashscope.md): DashScope is a platform developed by Alibaba Cloud. It provides an interface for model visualization, monitoring, and debugging, particularly when ... - [Google AI Gemini](https://docs.langchain4j.dev/integrations/language-models/google-ai-gemini.md): https://ai.google.dev/gemini-api/docs - [Google Gen AI (Experimental)](https://docs.langchain4j.dev/integrations/language-models/google-genai.md): https://github.com/googleapis/java-genai - [Google Vertex AI Anthropic](https://docs.langchain4j.dev/integrations/language-models/google-vertex-ai-anthropic.md): Google Vertex AI provides access to Anthropic's Claude models through Google Cloud Platform. This integration allows you to use Claude's advanced l... - [Google Vertex AI Gemini](https://docs.langchain4j.dev/integrations/language-models/google-vertex-ai-gemini.md): Vertex AI is Google Cloud's fully-managed AI development platform that provides access to Google's large generative models, including the older gen... - [GPULlama3.java](https://docs.langchain4j.dev/integrations/language-models/gpullama3-java.md): GPULlama3.java - [Hugging Face](https://docs.langchain4j.dev/integrations/language-models/hugging-face.md): In order to use Hugging Face Inference Providers, you need to import the `langchain4j-open-ai` module, as Hugging Face Inference Providers API is O... - [Comparison Table of all supported Language Models](https://docs.langchain4j.dev/integrations/language-models.md): Compare the chat models LangChain4j supports: streaming, tool calling, JSON schema, thinking, input modalities and more, per provider. - [jitLLM](https://docs.langchain4j.dev/integrations/language-models/jitllm.md): jitLLM runs LLMs in GGUF format inside the JVM. It runs them on a GPU through TornadoVM, which JIT-compiles the model's kernels for CUDA, OpenCL or... - [Jlama](https://docs.langchain4j.dev/integrations/language-models/jlama.md): To install langchain4j to your project, add the following dependency: - [LocalAI](https://docs.langchain4j.dev/integrations/language-models/local-ai.md): https://localai.io/ - [MistralAI](https://docs.langchain4j.dev/integrations/language-models/mistral-ai.md): To install langchain4j to your project, add the following dependency: - [Oracle Cloud Infrastructure GenAI](https://docs.langchain4j.dev/integrations/language-models/oci-genai.md): Generative AI Service provides access to pretrained, foundational models from Cohere and Meta. See AI model availability here. - [Ollama](https://docs.langchain4j.dev/integrations/language-models/ollama.md): Ollama is an advanced AI tool that allows users to easily set up and run large language models locally (in CPU and GPU modes). With Ollama, users c... - [OpenAI Official SDK](https://docs.langchain4j.dev/integrations/language-models/open-ai-official.md): This is the documentation for the `OpenAI Official SDK` integration, that uses the official OpenAI Java SDK. - [OpenAI](https://docs.langchain4j.dev/integrations/language-models/open-ai.md): This is the documentation for the `OpenAI` integration, that uses a custom Java implementation of the OpenAI REST API, that works best with Quarkus... - [OpenAI-Compatible Language Models](https://docs.langchain4j.dev/integrations/language-models/openai-compatible.md): Many services and tools expose OpenAI-compatible APIs. The general approach to using them with LangChain4j is: - [Qianfan](https://docs.langchain4j.dev/integrations/language-models/qianfan.md): 百度智能云千帆大模型 image - [watsonx.ai](https://docs.langchain4j.dev/integrations/language-models/watsonx.md): - watsonx.ai API Reference - watsonx.ai Java SDK - watsonx.ai Java SDK documentation - [Cloudflare Workers AI](https://docs.langchain4j.dev/integrations/language-models/workers-ai.md): https://developers.cloudflare.com/workers-ai/ - [Xinference](https://docs.langchain4j.dev/integrations/language-models/xinference.md): - https://inference.readthedocs.io/ - [ZhiPu AI](https://docs.langchain4j.dev/integrations/language-models/zhipu-ai.md): ZhiPu AI is a platform to provide model service including text generation, text embedding, image generation and so on. You can refer to ZhiPu AI Op... - [Model Router](https://docs.langchain4j.dev/integrations/model-router.md): This is the documentation for the `ModelRouter`, which acts as a router for messages to multiple ChatModel instances and uses pluggable RoutingStra... - [Prompt Repetition](https://docs.langchain4j.dev/integrations/prompt-repetition.md): `langchain4j-community-prompt-repetition` is an optional community module that provides ready-made prompt repetition integrations for two LangChain... - [Cohere](https://docs.langchain4j.dev/integrations/scoring-reranking-models/cohere.md): - `CohereScoringModel` - [In-process (ONNX)](https://docs.langchain4j.dev/integrations/scoring-reranking-models/in-process.md): LangChain4j provides local scoring (reranking) models, powered by ONNX runtime, running in the same Java process. - [Jina](https://docs.langchain4j.dev/integrations/scoring-reranking-models/jina-ai.md): - Jina Reranker Documentation - Jina Reranker API - [Google Cloud Vertex AI Ranking API](https://docs.langchain4j.dev/integrations/scoring-reranking-models/vertex-ai.md): - Google Cloud Vertex AI Ranking documentation - Google Cloud Vertex AI Ranking API description - [Voyage AI](https://docs.langchain4j.dev/integrations/scoring-reranking-models/voyage-ai.md): - `VoyageAiScoringModel` - [watsonx.ai](https://docs.langchain4j.dev/integrations/scoring-reranking-models/watsonx.md): - watsonx.ai API Reference - watsonx.ai Java SDK - watsonx.ai Java SDK documentation - [Xinference](https://docs.langchain4j.dev/integrations/scoring-reranking-models/xinference.md): - https://inference.readthedocs.io/ - [DuckDuckGo](https://docs.langchain4j.dev/integrations/web-search-engines/duckduckgo.md): https://duckduckgo.com/ - [Google Custom Search](https://docs.langchain4j.dev/integrations/web-search-engines/google-custom-search.md): https://programmablesearchengine.google.com/ - [SearchApi](https://docs.langchain4j.dev/integrations/web-search-engines/searchapi.md): SearchApi is a real-time SERP API. You can use it to perform searches in Google, Google News, Bing, Bing News, Baidu, Google Scholar, or any other ... - [SearXNG](https://docs.langchain4j.dev/integrations/web-search-engines/searxng.md): https://github.com/searxng/searxng - [Tavily](https://docs.langchain4j.dev/integrations/web-search-engines/tavily.md): https://tavily.com/ - [Latest Release Notes](https://docs.langchain4j.dev/latest-release-notes.md): Latest Release Notes - [Overview](https://docs.langchain4j.dev/useful-materials.md): Learning Materials