Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Join our product experts for a "Build More with LangSmith: Summer AMA Series" from July 9-August 12, 2026. RSVP today
TypeScript
Integrate with the Dall-e tool using LangChain JavaScript.
/* eslint-disable no-process-env */ import { DallEAPIWrapper } from "@langchain/openai"; const tool = new DallEAPIWrapper({ n: 1, // Default model: "dall-e-3", // Default apiKey: process.env.OPENAI_API_KEY, // Default }); const imageURL = await tool.invoke("a painting of a cat"); console.log(imageURL);
Was this page helpful?