Single endpoint, instant results
Text Pipeline API - Chain 28 Transforms in One Request
Compose text transformations as sequential pipelines. Each step's output becomes the next step's input. Sub-5ms latency, predictable JSON, no SDK required. Free: 1,000 requests/day.
POST https://textforge.co/v1/run
{
"input": "Hello World!",
"pipeline": [
"slugify",
"reverse",
"base64encode"
]
}Response:
{
"success": true,
"input": "Hello World!",
"pipeline": [
"slugify",
"reverse",
"base64encode"
],
"result": "b2xsZWgtZGxyb3c=",
"steps": [
{
"step": 1,
"action": "slugify",
"result": "...",
"execution_time_ms": 1
},
{
"step": 2,
"action": "reverse",
"result": "...",
"execution_time_ms": 1
},
{
"step": 3,
"action": "base64encode",
"result": "b2xsZWgtZGxyb3c=",
"execution_time_ms": 1
}
],
"execution_time_ms": 4
}Quick Start
cURL
curl -X POST https://textforge.co/v1/run -H "Content-Type: application/json" -d '{"input":"user@example.com","pipeline":["extractemails","slugify","base64encode"]}'Node.js
fetch("https://textforge.co/v1/run", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
input: "user@example.com",
pipeline: ["extractemails", "slugify", "base64encode"]
})
}).then(r => r.json()).then(console.log);Python
import requests
payload = {
"input": "user@example.com",
"pipeline": ["extractemails", "slugify", "base64encode"]
}
response = requests.post("https://textforge.co/v1/run", json=payload)
print(response.json())PHP
<?php
$payload = json_encode([
"input" => "user@example.com",
"pipeline" => ["extractemails", "slugify", "base64encode"]
]);
$ch = curl_init("https://textforge.co/v1/run");
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
echo $response;
?>Why use the API?
⚡
Sub-5ms latency
p95 response time, no cold starts
🔗
Composable pipelines
Chain transforms in one request
🛡️
Fair free tier
1,000 requests/day, no credit card
🌐
Works everywhere
curl, Python, JS, PHP - no SDK needed
📊
Built-in analytics
Usage tracking, rate limit headers
🔒
HTTPS only
CORS enabled, production ready