Lorem Ipsum Generator
Generate classic Lorem Ipsum placeholder text for design mockups, prototypes, and testing. Customize the number of paragraphs and sentences per paragraph.
Overview
Use Cases
- Web design mockups and wireframes
- Development testing with realistic-looking text
- Content placeholders while waiting for final copy
- Typography demonstrations
Features
Customizable paragraphs (1-20)
Customizable sentences per paragraph (1-20)
Returns word count with each response
Built on the Lorelai library for consistent Lorem Ipsum text
API Endpoints
Generate Lorem Ipsum
Generate Lorem Ipsum placeholder text with customizable length and format
GET
https://api.requiems.xyz/v1/text/lorem
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| paragraphs | integer |
Optional | Number of paragraphs to generate (1-20) |
| sentences | integer |
Optional | Number of sentences per paragraph (1-20) |
Try it out
Live DemoRequest
Number of paragraphs to generate (1-20)
Number of sentences per paragraph (1-20)
Sending request...
Response Fields
| Field | Type | Description |
|---|---|---|
| text | string |
Generated Lorem Ipsum text |
| paragraphs | integer |
Number of paragraphs generated |
| wordCount | integer |
Total number of words in generated text |
Code Examples
# Generate 3 paragraphs with 5 sentences each
curl "https://api.requiems.xyz/v1/text/lorem?paragraphs=3&sentences=5" \
-H "requiems-api-key: YOUR_API_KEY"
# Generate 1 paragraph with 10 sentences
curl "https://api.requiems.xyz/v1/text/lorem?sentences=10" \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://api.requiems.xyz/v1/text/lorem"
headers = {"requiems-api-key": "YOUR_API_KEY"}
params = {"paragraphs": 3, "sentences": 5}
response = requests.get(url, headers=headers, params=params)
print(response.json())
const params = new URLSearchParams({ paragraphs: 3, sentences: 5 });
const response = await fetch(
`https://api.requiems.xyz/v1/text/lorem?${params}`,
{
headers: {
'requiems-api-key': 'YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data.data.text);
require 'net/http'
require 'json'
uri = URI('https://api.requiems.xyz/v1/text/lorem')
uri.query = URI.encode_www_form(paragraphs: 3, sentences: 5)
request = Net::HTTP::Get.new(uri)
request['requiems-api-key'] = 'YOUR_API_KEY'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
http.request(request)
end
data = JSON.parse(response.body)
puts data['data']['text']
Error Responses
400
paragraphs must be between 1 and 20
The paragraphs parameter is out of valid range
400
sentences must be between 1 and 20
The sentences parameter is out of valid range
Frequently Asked Questions
Lorem Ipsum is dummy text used in the printing and typesetting industry since the 1500s. It's a scrambled version of Latin text that creates natural-looking placeholder content.
Lorem Ipsum has a more natural distribution of letters and word lengths, making it better for testing typography and layout. It also looks more professional in mockups.
Yes! Use the paragraphs parameter to set how many paragraphs you want (1-20), and the sentences parameter to set how many sentences per paragraph (1-20). Both parameters are optional with sensible defaults.
The text is generated using the Lorelai library, which creates varied Lorem Ipsum content based on the classic Lorem Ipsum corpus.