Products/Workflows

AI Workflows

Chain multi-step AI pipelines across providers. LLM calls, image generation, data transforms, and HTTP requests.

$0.001 / step

// Define a content pipeline workflow
const workflow = await stack0.workflows.create({
name: 'content-pipeline',
steps: [
{
id: 'research',
type: 'llm',
provider: 'anthropic',
model: 'claude-sonnet-4-20250514',
prompt: 'Research {{variables.topic}} and list key points',
},
{
id: 'draft',
type: 'llm',
provider: 'openai',
model: 'gpt-4o',
prompt: 'Write a blog post using: {{research.output}}',
},
],
})
const result = await stack0.workflows.runAndWait({
workflowId: workflow.id,
variables: { topic: 'AI agent infrastructure' },
})
AnthropicOpenAIGeminiReplicateMulti-StepParallel

Features

What's included

Multi-Provider

Use Anthropic, OpenAI, Gemini, Replicate, and more in the same workflow.

Step Types

LLM calls, image generation, HTTP requests, data transforms, and conditionals.

Variables

Pass data between steps with interpolation syntax like {{step1.output}}.

Retries

Automatic retry with exponential backoff on transient failures.

Parallel Steps

Run independent steps in parallel for faster execution.

Conditionals

Branch workflow logic based on previous step outputs.

Capabilities

Built for production

LLM Steps

Call any LLM with prompt templates and output parsing.

type: 'llm', provider: 'anthropic', model: 'claude-sonnet-4-20250514'

Image Generation

Generate images with Flux, SDXL, or Stable Diffusion.

type: 'image', provider: 'replicate', model: 'flux-schnell'

HTTP Requests

Call external APIs and incorporate responses into workflow.

type: 'http', method: 'POST', url: '{{variables.apiUrl}}'

Data Transforms

Parse, filter, and transform data between steps.

type: 'transform', operation: 'map', path: 'items[*].name'

Conditionals

Branch workflow based on conditions and comparisons.

type: 'condition', if: '{{research.length}} > 5'

Webhooks

Receive results via webhook when workflow completes.

webhookUrl: 'https://yourapp.com/webhook'

Use cases

Built for real applications

Content Pipelines

Generate outlines, write drafts, edit, and publish—all in one workflow.

Data Processing

Scrape, extract, transform, and load data through AI-powered pipelines.

Image & Video Generation

Chain prompts, generate visuals, and assemble final assets.

Research Automation

Gather sources, synthesize findings, and generate reports.

Agent Loops

Build autonomous agents that iterate until goals are achieved.

Multi-Modal Tasks

Combine text, image, and audio generation in single workflows.

Pricing

Simple, usage-based

Steps
$0.001/ step
LLM calls (+ provider cost)
Image generation (+ provider cost)
HTTP requests
Data transforms
Conditionals
Automatic retries
Webhook notifications
Get Started

Plans start at $5/month. No long-term contracts.

FAQ

Frequently asked questions

Anthropic (Claude), OpenAI (GPT-4), Google (Gemini), Replicate (Flux, SDXL), Together (Llama, Mixtral), and more. Use different providers for different steps.

Each step costs $0.001 to execute, plus underlying provider costs (OpenAI tokens, Replicate compute, etc.). Simple, transparent pricing.

Yes. Use {{stepId.output}} interpolation to reference outputs from previous steps. Variables flow through the entire workflow.

Automatic retry with exponential backoff for transient failures. Configure max retries and fallback behavior per step.

Yes. Steps without dependencies run in parallel automatically. Explicitly declare dependencies to control execution order.

Yes. Start a workflow, receive a job ID, and poll for completion or receive results via webhook.

Ready to build?

Plans start at $5/month.

Start Building