View as Markdown
Featherless icon

Featherless ACTION

Create Text Completion

Generate a text completion from a raw prompt using a Featherless-hosted model (POST /v1/completions). Returns a completion object whose choices[0].text holds the generated text, plus a usage token 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" returns Paris in choices[0].text. 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 Text 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-text-completion",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    featherless: { authProvisionId: "apn_xxxxxxx" },
    model: "Model",
    prompt: "Prompt",
  },
})

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 Text 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
prompt Prompt string
The prompt to complete. Accepts a plain string (e.g. The capital of France is) or a JSON array of strings (e.g. ["one","two"]); parsed in run() to pass a string or array to the API.
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-text-completion
Version
0.0.1
App
Featherless
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes