Visual AI Pipelines
Execute multi-step AI workflows with a single API call. Each Flow chains together AI tools into a reusable pipeline.
Key capabilities
- Dynamic inputs: Each Flow defines its own inputs — images, text prompts, numbers, or selections
- Async execution: Submit a run, then poll for status or receive a webhook notification
- Multi-output: Flows can produce images, videos, or audio depending on the workflow
How it works
- List flows to discover available workflows
- Get flow details to see required inputs and their types
- Run the flow by providing values for each input, keyed by its
api_key(recommended) orid(legacy) - Poll or webhook to get the results when execution completes
GET /v1/ai/flows
List all available flows
GET /v1/ai/me/flows
List flows you own, including drafts
GET /v1/ai/flows/{flow-id}
Get a flow definition and its inputs
POST /v1/ai/flows/{flow-id}/run
Run a flow with your inputs
GET /v1/ai/flows/runs/{run-id}
Poll run status and results
Input types
Example: Run a flow
Identifiers
Flows are identified by their SQID:Existing integrations that call the legacy
/v1/ai/apps paths remain functional. New integrations should use the /v1/ai/flows endpoints documented here.More about Spaces

Open Magnific Spaces
Start building your own AI workflows on the infinite canvas.
Manage your Flows
View your published Flows and copy their IDs to use with this API.
Frequently Asked Questions
What are Flows?
What are Flows?
Flows are visual AI pipelines built in Magnific Spaces. They chain together multiple AI tools (image generation, upscaling, style transfer, etc.) into a single reusable workflow. The API lets you execute these workflows programmatically.
How do I know what inputs a flow requires?
How do I know what inputs a flow requires?
Call
GET /v1/ai/flows/{flow-id} to get the full definition, including all required inputs with their types and labels. Use each input’s api_key field (recommended) — a human-friendly identifier matching the node name — as the key in the inputs object when running the flow. The UUID-based id field is still accepted for backward compatibility (legacy).How long do flow executions take?
How long do flow executions take?
Execution time depends on the workflow complexity and the AI tools involved. Simple single-tool workflows may complete in 10-30 seconds. Multi-step workflows with video generation can take 1-5 minutes. Use webhooks for production integrations.
What are the rate limits for Flows?
What are the rate limits for Flows?
See the Rate Limits page for current limits by subscription tier.
How much do Flows cost?
How much do Flows cost?
Each flow shows its credit cost in the
tool_metadata.total_cost field. See the Pricing page for credit rates.Related APIs
- Image Upscaler: Upscale images with AI enhancement
- Text to Image: Generate images from text prompts
- Image to Video: Convert images into video clips