Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAlpha VantageApifyArXivAWS LambdaShell (bash)Bearly Code InterpreterBing SearchBrave SearchChatGPT PluginsDall-E Image GeneratorDataForSeoDuckDuckGo SearchEden AIEleven Labs Text2SpeechFile SystemGolden QueryGoogle DriveGoogle PlacesGoogle SearchGoogle SerperGradioGraphQLHuggingFace Hub ToolsHuman as a toolIFTTT WebHooksLemon AgentMetaphor SearchNuclia UnderstandingOpenWeatherMapPubMedRequestsSceneXplainSearch ToolsSearchApiSearxNG SearchSerpAPITwilioWikipediaWolfram AlphaYahoo Finance NewsYouTubeZapier Natural Language ActionsAgents and toolkitsMemoryCallbacksChat loadersComponentsToolsSceneXplainOn this pageSceneXplainSceneXplain is an ImageCaptioning service accessible through the SceneXplain Tool.To use this tool, you'll need to make an account and fetch your API Token from the website. Then you can instantiate the tool.import osos.environ["SCENEX_API_KEY"] = "<YOUR_API_KEY>"from langchain.agents import load_toolstools = load_tools(["sceneXplain"])Or directly instantiate the tool.from langchain.tools import SceneXplainTooltool = SceneXplainTool()Usage in an Agent‚ÄãThe tool can be used in any LangChain agent as follows:from langchain.llms import OpenAIfrom langchain.agents import initialize_agentfrom langchain.memory import ConversationBufferMemoryllm = OpenAI(temperature=0)memory = ConversationBufferMemory(memory_key="chat_history")agent = initialize_agent(    tools, llm, memory=memory, agent="conversational-react-description", verbose=True)output = agent.run(    input=(        "What is in this image https://storage.googleapis.com/causal-diffusion.appspot.com/imagePrompts%2F0rw369i5h9t%2Foriginal.png. "        "Is it movie or a game? If it is a movie, what is the name of the movie?"
SceneXplain is an ImageCaptioning service accessible through the SceneXplain Tool.
SceneXplain is an ImageCaptioning service accessible through the SceneXplain Tool. ->: Skip to main contentü¶úÔ∏èüîó LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAlpha VantageApifyArXivAWS LambdaShell (bash)Bearly Code InterpreterBing SearchBrave SearchChatGPT PluginsDall-E Image GeneratorDataForSeoDuckDuckGo SearchEden AIEleven Labs Text2SpeechFile SystemGolden QueryGoogle DriveGoogle PlacesGoogle SearchGoogle SerperGradioGraphQLHuggingFace Hub ToolsHuman as a toolIFTTT WebHooksLemon AgentMetaphor SearchNuclia UnderstandingOpenWeatherMapPubMedRequestsSceneXplainSearch ToolsSearchApiSearxNG SearchSerpAPITwilioWikipediaWolfram AlphaYahoo Finance NewsYouTubeZapier Natural Language ActionsAgents and toolkitsMemoryCallbacksChat loadersComponentsToolsSceneXplainOn this pageSceneXplainSceneXplain is an ImageCaptioning service accessible through the SceneXplain Tool.To use this tool, you'll need to make an account and fetch your API Token from the website. Then you can instantiate the tool.import osos.environ["SCENEX_API_KEY"] = "<YOUR_API_KEY>"from langchain.agents import load_toolstools = load_tools(["sceneXplain"])Or directly instantiate the tool.from langchain.tools import SceneXplainTooltool = SceneXplainTool()Usage in an Agent‚ÄãThe tool can be used in any LangChain agent as follows:from langchain.llms import OpenAIfrom langchain.agents import initialize_agentfrom langchain.memory import ConversationBufferMemoryllm = OpenAI(temperature=0)memory = ConversationBufferMemory(memory_key="chat_history")agent = initialize_agent(    tools, llm, memory=memory, agent="conversational-react-description", verbose=True)output = agent.run(    input=(        "What is in this image https://storage.googleapis.com/causal-diffusion.appspot.com/imagePrompts%2F0rw369i5h9t%2Foriginal.png. "        "Is it movie or a game? If it is a movie, what is the name of the movie?"