/Model/Anthropic
app icon

Anthropic

Verified by Dify
No ratings yet
426.4k
L
langgenius/anthropic

Anthropic's powerful models.

Overview

Anthropic offers a suite of AI models designed for safety and helpfulness, excelling in natural language processing and generation tasks such as coding and creative writing. Using this plugin, developers can easily configure and access LLMs from the Claude family (Sonnet, Haiku, and Opus) by providing the necessary API credentials.

Configure

You'll need your Anthropic API Key to configure this plugin. After obtaining it from Anthropic, enter it along with your API URL in the settings below. Save to activate.

is optional and disabled by default. Turning it on attaches and to each Anthropic request as , so usage can be attributed to a specific Dify app in the Anthropic admin console. The opt-in is honored at both the provider and the per-model credential level. The Dify session lookup is best-effort: if the session context is not initialized, no metadata is attached and the request is sent unchanged.

Prompt-Caching Options

Claude’s API allows you to mark specific parts of a request as ephemeral. The blocks are then cached on Anthropic’s side so future requests are cheaper and faster.
This plugin exposes fine-grained switches so you control exactly what is cached.

ParameterDefaultDescription
Cache content wrapped in inside the system prompt.
Adds to every tool definition sent in the array.
Caches image blocks.
Caches PDF document blocks.
Caches / blocks.
If set to a positive integer N, any user or assistant text message longer than N words gets cached automatically. disables this auto-caching.

Anthropic limit: At most 4 blocks may include in a single request.
The plugin enforces this by prioritising blocks in the following order:

  1. Images / Documents
  2. System-message blocks
  3. Large text messages (message-flow threshold)
  4. Tool definitions & tool results

If more than four candidates exist, lower-priority blocks have their removed automatically before the request is sent.

CATEGORY
Model
VERSION
0.3.33
langgenius·Updated a day ago
REQUIREMENTS
Maximum memory
256MB
Access domain

Some outbound calls build their address at runtime, so the list may be incomplete.

Detected
Detected
Detected
Security
Security Rating

Last checked 09/24/2026 03:05 AM · version 0.3.33

Give a rate
SHARE WITH