View as Markdown
Featherless icon

Featherless ACTION

Create Chat Completion

Generate a chat completion using a Featherless-hosted model (POST /v1/chat/completions). Returns a completion object whose choices[0].message.content holds the model's reply, plus a usage token breakdown. Use List Models first to discover valid model IDs to pass to the model prop. Example: model=Qwen/Qwen3-0.6B, messages=[{"role":"user","content":"What is 2 + 2?"}] returns a reply of 4 in choices[0].message.content. See the documentation.
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Featherless account once, then configure and run Create Chat Completion from your backend or agent.

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",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Chat Completion inputs
Property Type Description
model Model string
The model ID to use, e.g. Qwen/Qwen2.5-7B-Instruct. Run List Models first to discover valid model IDs available to your account (do NOT guess).
Required
messages Messages string
A JSON array of message objects. Example: [{"role":"system","content":"You are helpful."},{"role":"user","content":"What is 2 + 2?"}]. Parsed with JSON.parse in run().
Required
maxTokens Max Tokens integer
Maximum number of tokens to generate (maps to max_tokens).
Optional
minTokens Min Tokens integer
Minimum number of tokens to generate (maps to min_tokens).
Optional
temperature Temperature string
Sampling temperature as a float, e.g. 0.7. Parsed to a number in run().
Optional
topP Top P string
Nucleus sampling probability as a float, e.g. 0.9 (maps to top_p).
Optional
topK Top K integer
Top-k sampling cutoff (maps to top_k).
Optional
minP Min P string
Minimum probability threshold as a float, e.g. 0.05 (maps to min_p).
Optional
presencePenalty Presence Penalty string
Presence penalty as a float, e.g. 0.0 (maps to presence_penalty).
Optional
frequencyPenalty Frequency Penalty string
Frequency penalty as a float, e.g. 0.0 (maps to frequency_penalty).
Optional
repetitionPenalty Repetition Penalty string
Repetition penalty as a float, e.g. 1.0 (maps to repetition_penalty).
Optional
seed Seed integer
Random seed for deterministic sampling.
Optional
stop Stop string[]
One or more strings that stop generation when encountered.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
featherless-create-chat-completion
Version
0.0.1
App
Featherless
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes