CONNECT APP
Build with Featherless
Artificial Intelligence (AI)
- API key
MCP
Give your agent Featherless tools
Every Featherless action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Featherless account for each tool call — you store no tokens.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "featherless",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// e.g. run Create Chat Completion:
const result = await mcp.callTool({
name: "featherless-create-chat-completion",
arguments: {
model: "Model",
messages: "Messages",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", # any stable ID for this user in your system
"x-pd-app-slug": "featherless",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Create Chat Completion:
result = await session.call_tool("featherless-create-chat-completion", {
"model": "Model",
"messages": "Messages",
})API PROXY
Call the Featherless API directly
For an endpoint with no pre-built tool, the Connect proxy forwards your request to the Featherless API with the connected user's credentials attached. You store no tokens and write no refresh logic.
const resp = await pd.proxy.get({
externalUserId: "{external_user_id}", // any stable ID for this user in your system
accountId: "apn_xxxxxxx",
url: "https://api.featherless.ai/v1/models",
})
// Any allowed Featherless endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.# The path segment is the target URL, URL-safe base64 encoded:
# https://api.featherless.ai/v1/models
curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZmVhdGhlcmxlc3MuYWkvdjEvbW9kZWxz?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
-H "Authorization: Bearer {access_token}" \
-H "x-pd-environment: production"SDK
Run Featherless actions from your backend
Connect a user's Featherless account once, then run Create Chat Completion on their behalf from your own code — TypeScript, Python, or plain HTTP.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "featherless-create-chat-completion",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
featherless: { authProvisionId: "apn_xxxxxxx" },
model: "Model",
messages: "Messages",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="featherless-create-chat-completion",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"featherless": {"authProvisionId": "apn_xxxxxxx"},
"model": "Model",
"messages": "Messages",
},
)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "featherless-create-chat-completion",
"configured_props": {
"featherless": { "authProvisionId": "apn_xxxxxxx" },
"model": "Model",
"messages": "Messages"
}
}'TOOLS
Featherless actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Create Chat Completion
actionGenerate a chat completion using a Featherless-hosted model (POST /v1/chat/completions). Returns a completion object whosechoices[0].message.contentholds the model's reply, plus ausagetoken breakdown. Use List Models first to discover valid model IDs to pass to themodelprop. Example:model=Qwen/Qwen3-0.6B,messages=[{"role":"user","content":"What is 2 + 2?"}]returns a reply of4inchoices[0].message.content. See the documentation.Writev0.0.1 -
Create Text Completion
actionGenerate a text completion from a raw prompt using a Featherless-hosted model (POST /v1/completions). Returns a completion object whosechoices[0].textholds the generated text, plus ausagetoken breakdown. This is a distinct legacy-style completion endpoint from Create Chat Completion. Use List Models first to discover valid model IDs. Example:model=Qwen/Qwen3-0.6B,prompt="The capital of France is"returnsParisinchoices[0].text. See the documentation.Writev0.0.1 -
List Models
actionList the models available on Featherless (GET /v1/models). Returns model objects each containing anidfield to pass as themodelprop in Create Chat Completion and Create Text Completion. The catalog is very large (~22k models), so results are paged (100 per page by default) and each model is trimmed to key fields (id,name,model_class,context_length,max_completion_tokens,available_on_current_plan); useqto search,pageto page through, orfieldsto change which fields are returned. Example:q=Qwenreturns Qwen-family models with ids likeQwen/Qwen3-8B(pass that id as themodelprop in a completion). Results are paged (100 per page); incrementpageto fetch more. Because a page size is always sent, the response also includespagination(current_page,total_pages,total_items) and atotalcount. See the documentation.Read-onlyv0.0.2
EVENTS
Featherless triggers
Event sources your backend can deploy for users and receive through a webhook.
No Featherless triggers are available yet.
- App slug
- featherless
- Authentication
- API key
- Categories
- Artificial Intelligence (AI)
- Actions
- 3
- Triggers
- 0
- API proxy
- Available