Downsizing logodownsizing
Documentation

Using Downsizing with Langflow

Route Langflow's Anthropic model component through Downsizing by overriding its API URL field.


Prerequisites

A running Langflow instance (Desktop, self-hosted, or Cloud) and a Downsizing account that can make requests (pay-per-use or a connected subscription both work). Grab your Inference ID and API key from the Inference API page.

Manual Setup

Langflow's Anthropic model component exposes an anthropic_api_url field (labeled Anthropic API URL in the component panel) — it defaults to https://api.anthropic.com but can be overridden, which is exactly what Downsizing needs. In your flow:

  1. Add or open an Anthropic language model component.
  2. Open its component settings and set Anthropic API URLto your Downsizing endpoint (click the field to reveal it if it's hidden behind the "show more" toggle):
bash
http://localhost:3001/YOUR_INFERENCE_ID/anthropic

Replace YOUR_INFERENCE_ID with your workspace UUID. Set Anthropic API Key to your Downsizing API key (starts with dws_), and pick a Claude model name in Model Name.

Verify

Run the component (or the whole flow) from the Playground and confirm you get a response back. Then check your savings dashboard to see the request appear in your usage metrics.


Spot an error or something not working? Tell us on Discord or email docs@downsizing.dev.