Pipeline ID
Reference your Studio pipelines with a single ID that keeps your code lightweight, maintainable, and always in sync.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Reference your Studio pipelines with a single ID that keeps your code lightweight, maintainable, and always in sync.
# pip install reductoai
from pathlib import Path
from reducto import Reducto
client = Reducto()
# Replace with your file path
upload = client.upload(file=Path("sample.pdf"))
result = client.pipeline.run(
input=upload,
pipeline_id="your_pipeline_id_here"
)
// npm install reductoai
import Reducto from 'reductoai';
import fs from 'fs';
const client = new Reducto();
const upload = await client.upload({
// Replace with your file path
file: fs.createReadStream("sample.pdf")
});
const result = await client.pipeline.run({
input: upload,
pipeline_id: "your_pipeline_id_here"
});
# Upload a file
curl -X POST "https://platform.reducto.ai/upload" \
-H "Authorization: Bearer api_key" \
-F "file=@/path/to/sample.pdf"
# Example response: {"file_id":"reducto://abc123.pdf"}
# Run the pipeline
curl -X POST "https://platform.reducto.ai/pipeline" \
-H "Authorization: Bearer api_key" \
-H "Content-Type: application/json" \
-d '{
"input": "reducto://abc123.pdf",
"pipeline_id": "your_pipeline_id_here"
}'
Was this page helpful?