LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreprompt_valuesImageURL
    Class●Since v0.1

    ImageURL

    Copy
    ImageURL()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    detailLiteral['auto', 'low', 'high']
    urlstr
    attribute
    detail: Literal['auto', 'low', 'high']

    Specifies the detail level of the image.

    Defaults to 'auto' if not specified. Higher detail levels consume more tokens but provide better image understanding.

    attribute
    url: str

    URL of the image or base64-encoded image data.

    Image URL for multimodal model inputs (OpenAI format).

    Represents the inner image_url object in OpenAI's Chat Completion API format. This is used by ImagePromptTemplate and ChatPromptTemplate.

    See Also:

    ImageContentBlock: LangChain's provider-agnostic image format used in message content blocks. Use ImageContentBlock when working with the standardized message format across different providers.

    Note:

    The detail field values are not validated locally. Invalid values will be rejected by the downstream API, allowing new valid values to be used without requiring a LangChain update.