No-code · Dify
Dify + SerpKite
Install the SerpKite plugin from the Dify Marketplace, set your API key once, and give agents, chatflows and workflows Google search, webpages, cited answers and AI assistant answers.
Version 0.1.0 is in Marketplace review
The Marketplace lists SerpKite with web and news search today; 0.1.0, with every tool below, is in Dify's review and arrives as an update. Self-hosted Dify can install 0.1.0 now from the GitHub release (it isn't signed by Dify yet, so the instance must allow unsigned plugins).
Overview
What Dify is, and where SerpKite fits
Dify is an open-source platform for LLM apps, agents and workflows. The SerpKite plugin adds SerpKite as a tool provider: authorize it once with your API key and every tool is available to Agent apps and as a Tool node in workflows.
Version 0.1.0 has 23 tools: Google web, News, Images, Videos, Shopping, Scholar, Patents and autocomplete, Maps and place details, webpages, extract and site maps, cited answers, crawl and research (start, then get the result), and Ask ChatGPT, Gemini, Copilot Search, Google AI Mode and Brave. Most tools return Markdown for the model by default and full JSON on request.
Setup
Set it up in 4 steps
-
1
Get an API key
Sign up (no card), create a key in the dashboard and export it as
SERPKITE_API_KEY. New accounts get 2,500 free credits, then 1,000 every month.export SERPKITE_API_KEY=skt_live_… -
2
Install the plugin
In Dify open Plugins → Explore Marketplace, search for SerpKite and install it (Marketplace page). For 0.1.0 on self-hosted Dify, choose Install plugin → GitHub with
https://github.com/SerpKite/dify-serpkite. -
3
Authorize it
Open Tools → SerpKite → Authorize and paste your
skt_live_…key. Dify checks it against your account, which spends no credits. -
4
Use it in an app
Add Web Search (and any other SerpKite tool) to an Agent app, or drop it into a workflow as a Tool node. Test it with a question that needs the web.
Code
Without the plugin: an OpenAPI custom tool
On any Dify version you can also create a custom tool: Tools → Custom → Create Custom Tool, paste this schema, and set auth to API Key, Bearer, with your key.
{
"openapi": "3.1.0",
"info": { "title": "SerpKite", "version": "1.0.0", "description": "Google search for agents" },
"servers": [{ "url": "https://api.serpkite.com" }],
"paths": {
"/v1/search": {
"post": {
"operationId": "search",
"summary": "Search Google and return results as Markdown",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["q"],
"properties": {
"q": { "type": "string", "description": "Search query" },
"country": { "type": "string", "description": "Country code, e.g. us", "default": "us" },
"language": { "type": "string", "description": "Language code, e.g. en", "default": "en" },
"format": { "type": "string", "enum": ["markdown", "json"], "default": "markdown" }
}
}
}
}
},
"responses": { "200": { "description": "Search results" } }
}
}
}
}Workflows
Or call the API from an HTTP Request node
In a Dify workflow you can also add an HTTP Request node: POST https://api.serpkite.com/v1/search, header Authorization: Bearer skt_live_…, JSON body {"q": "{{#start.query#}}", "format": "markdown"}. Pass the node's body output to an LLM node.
AI assistants
Ask ChatGPT, Gemini and other AI assistants
The SerpKite plugin (0.1.0) has a tool per assistant: Ask ChatGPT, Ask Gemini, Ask Copilot Search, Ask Google AI Mode and Ask Brave AI. Give an agent the ones it needs, or add one as a Tool node in a workflow. The tool waits up to two and a half minutes and returns the answer as Markdown with its sources (or JSON with mentions of the brands you list under Track).
Every assistant is one POST: https://api.serpkite.com/v1/chatgpt (or /v1/gemini, /v1/copilot, /v1/ai_mode, /v1/brave_ai) with the same Bearer header and a JSON body with prompt. With the OpenAPI custom tool instead, add the endpoint to its schema (copy the /v1/search block, with prompt instead of q), or call it from an HTTP Request node with the read timeout raised to 120 seconds. The response has the answer (text, markdown), cited sources, products and, with track, mentions of your brands and domains. See AI assistants.
Through the MCP server the same assistants are the chatgpt, gemini, copilot, ai_mode and brave_ai tools.
ChatGPT 4, Gemini 3, Copilot Search 3, Google AI Mode 2 and Brave AI 2 credits per answer; failed, refused and empty answers are free. Brave answers in 1–10 s, ChatGPT in 10–30 s and Gemini in 5–30 s, so allow at least 120 seconds per call.
"/v1/chatgpt": {
"post": {
"operationId": "ask_chatgpt",
"summary": "Ask ChatGPT as a logged-out user; returns its answer with cited sources",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["prompt"],
"properties": {
"prompt": { "type": "string", "description": "The question to ask ChatGPT" },
"format": { "type": "string", "enum": ["markdown", "json"], "default": "markdown" }
}
}
}
}
},
"responses": { "200": { "description": "The answer" } }
}
}FAQ
Dify and SerpKite: common questions
Keep exploring
Related APIs and integrations
Start building
Give your Dify project Google search
2,500 free credits, then 1,000 every month. No credit card.