SceneXplainAPIWrapper#

class langchain_community.utilities.scenexplain.SceneXplainAPIWrapper[source]#

Bases: BaseModel

Wrapper for SceneXplain API.

In order to set this up, you need API key for the SceneXplain API. You can obtain a key by following the steps below. - Sign up for a free account at https://scenex.jina.ai/. - Navigate to the API Access page (https://scenex.jina.ai/api)

and create a new API key.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

param scenex_api_key: str [Optional]#
param scenex_api_url: str = 'https://api.scenex.jina.ai/v1/describe'#
run(image: str) str[source]#

Run SceneXplain image explainer.

Parameters:

image (str)

Return type:

str