Why Use an API Instead of a Website?
Copy-pasting Lorem Ipsum from a browser works fine for a one-off mockup. It breaks down the moment you need placeholder text in a CI pipeline, a seed script for a test database, or a backend template that renders differently on every request. An API or library call fits into that workflow; a website tab doesn't.
Two Ways to Generate Lorem Ipsum in Code
Lorelai — Go Library
Import it directly into a Go codebase. No network calls, no rate limits, MIT licensed. Best when you're already writing Go and want zero external dependencies.
go get github.com/bobadilla-tech/lorelai Requiems API — REST Endpoint
A hosted HTTP endpoint you can call from any language — no Go dependency required. Part of a larger all-in-one SaaS backend covering auth, validation, and more. Needs a free API key (no credit card).
curl "https://api.requiems.xyz/v1/text/lorem?paragraphs=3" -H "requiems-api-key: YOUR_API_KEY" Calling It From Your Language
Every Requiems API request needs a requiems-api-key header —
get a free one here,
no credit card required.
JavaScript / Node.js
const res = await fetch('https://api.requiems.xyz/v1/text/lorem?paragraphs=3', {
headers: { 'requiems-api-key': 'YOUR_API_KEY' }
});
const { data } = await res.json();
console.log(data.text); Python
import requests
res = requests.get(
"https://api.requiems.xyz/v1/text/lorem",
params={"paragraphs": 3},
headers={"requiems-api-key": "YOUR_API_KEY"}
)
text = res.json()["data"]["text"] Go (via Lorelai, no network call)
import "github.com/bobadilla-tech/lorelai"
text := lorelai.Generate(lorelai.Options{Paragraphs: 3}) Common Use Cases
Seeding a Test Database
Fill rows with realistic placeholder text instead of hardcoded strings.
CI/CD Test Fixtures
Generate fresh placeholder content on every pipeline run.
Backend Template Rendering
Render placeholder copy server-side before real content exists.
Load & Demo Data
Populate a staging environment without writing content by hand.
Don't Need Code? Use the Generator
For one-off mockups, our free web generator is still the fastest path — no API key, no setup.
Generate Lorem Ipsum →