The three layers
| Layer | What it is | Where you touch it |
|---|---|---|
| Models | Production-ready AI models (image scoring, headshot generation, background removal, face edits, …) | Never directly — you use pipelines or endpoints |
| Pipelines | Composed sequences of models wired together with pre- and post-processing | Via a single API endpoint per pipeline |
| Flows | Higher-level orchestrations that chain pipelines with inputs, triggers, and outputs | Built visually in the Runflow app (coming to the API) |
Pipelines (what the API exposes today)
A pipeline is a production-ready AI workflow behind a single endpoint. You don’t think about the models, the GPU, the pre/post steps, retries, or scaling — you send inputs and receive a result. Currently available pipelines:| Pipeline | Endpoint | Type | Typical latency |
|---|---|---|---|
| Score Image | POST /api/v1/images/score | Sync | < 1s |
| Generate Headshots | POST /api/v1/images/generate-headshots | Async (webhook) | 1–2 hours |
Flows (app-level, today)
In the Runflow app, a flow is a visual composition that wires together:- Inputs (images, user-submitted data, URLs)
- Pipelines (one or more of the endpoints above, plus internal-only ones)
- Transforms (filters, sorting, gating logic — e.g. “only process photos scoring above 0.7”)
- Outputs (delivered via webhook, stored in S3, surfaced in the dashboard)
Mental model for picking a primitive
“Can I express my use case as a single HTTP call?” Use the endpoint directly. This is 90% of integrations. “Do I need to chain multiple endpoints with conditional logic based on results?” Wire them together in your own backend. Runflow’s sync endpoints are fast enough that you can run them inline; for async ones, chain from the webhook handler. “Does my non-technical team want to build these workflows?” Point them at the Runflow app and let them build flows visually. Your API integration still uses the same endpoint URLs.Where to go next
Score Image reference
The sync pipeline — use it as a quality gate in front of other endpoints.
Generate Headshots reference
The async pipeline with webhook callbacks.
Webhooks
Async callback handling and 24-hour expiry rules.
Vibe Coder Integration
Paste-ready prompts to have an AI agent wire Runflow into your app.