Single endpoint, instant results
Base64 Encode API - Encode Text to Base64
Encode any text to Base64 instantly. Handles Unicode, special characters, and large payloads. Pair with base64decode for round-trip encoding. Free: 1,000 requests/day.
POST https://textforge.co/v1/run
{
"input": "Hello World!",
"pipeline": [
"base64encode"
]
}Response:
{
"success": true,
"input": "Hello World!",
"pipeline": [
"base64encode"
],
"result": "hello-world",
"steps": [
{
"step": 1,
"action": "base64encode",
"result": "hello-world",
"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":"Hello World!","pipeline":["base64encode"]}'Node.js
fetch("https://textforge.co/v1/run", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ input: "Hello World!", pipeline: ["base64encode"] })
}).then(r => r.json()).then(console.log);Python
import requests
payload = { "input": "Hello World!", "pipeline": ["base64encode"] }
response = requests.post("https://textforge.co/v1/run", json=payload)
print(response.json())PHP
<?php
$payload = json_encode([ "input" => "Hello World!", "pipeline" => ["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