Dify plugin
The Liquid Inference plugin adds the exchange to Dify as a model provider. The source is architect-xyz/liquid-dify-plugin.
The plugin is on the Dify Marketplace.
Before you start
- A Dify workspace where you can install plugins.
- A workspace with a balance and a
spendkey. See API keys.
1. Install the plugin
In Dify, open Settings, then Model Provider. Find Liquid Inference and install it.
2. Add the key
Paste the spend key in API Key. Leave API Base URL empty. The plugin uses https://router.inference.ai.exchange/v1.
3. Choose a model
The list has liquid.auto, which lets the exchange choose the model for each request.
To use another model, choose Add Model. Enter the name that GET /v1/models returns. Set the context size and the features of the model. See Market data.
Notes
- The plugin sends
X-Title: Difywith each request. The receipts name Dify as the client. - The exchange sets a cap on each request. It is in the
x-liquid-cap-usdresponse header. To limit total spend, set a spending limit on the key. See API keys. - The plugin makes no payments. The exchange charges the balance of your workspace.
Next steps
- Dify: set up Dify with no plugin.
- Purchasing rules: models, strategy and limits, and presets.
- Apps: the other plugins and tools.