BlitFlow documentation
Call a published workflow from your own code. One contract across the API, SDK, MCP and CLI, and the same result on each.
blitflow run acme/hero-image \
--input prompt="a calm mountain lake at dawn"
# flux-dev $0.0288 1.2s
# output.image hero-image.png
# done in 2.4simport { BlitClient } from "@blitflow/sdk";
const { run } = new BlitClient({ apiKey: process.env.BLITFLOW_TOKEN });
const outputs = await run("acme/hero-image", {
prompt: { value: "a calm mountain lake at dawn" },
});
console.log(outputs.image.url);{
"mcpServers": {
"blitflow": {
"url": "https://mcp.blitflow.com"
}
}
}curl https://studio.blitflow.com/api/v1/runs \
-H "Authorization: Bearer $BLITFLOW_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"workflowRef": "acme/hero-image",
"inputs": { "prompt": { "value": "a calm mountain lake at dawn" } }
}'