Redeo Docs
DocsAPI Reference / Pipeline Instances

Stilt API

Pipeline Instances

Async stilt execution — returns immediately with an instance ID.

Overview

POST /v1/pipelines/instances starts a stilt execution asynchronously. Unlike the chat completions endpoint (which blocks until the stilt finishes), this endpoint returns immediately with a 202 status and an instanceId. Use this for long-running stilts or when you want to poll for results yourself.

Request Body

FieldTypeRequiredDescription
authorstringYesUsername of the stilt owner
templatestringYesSlug name of the stilt
modelstringYesModel to use for LLM calls
messagesarrayYesArray of message objects. The last user message becomes input.context.
knobsobjectNoOverride default knob values

Response

json
{
  "instanceId": "abc123-def456-...",
  "status": "pending"
}

The response is returned immediately with HTTP 202. The stilt runs in the background. Poll the instance status or check results in Studio.

Example

bash
curl -X POST https://api.redeo.ai/v1/pipelines/instances \
  -H "Authorization: Bearer $REDEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "author": "redeo-labs",
    "template": "gated-tot",
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Analyze this."}],
    "knobs": { "branches": 5 }
  }'