Lorem Ipsum Generator
Generate classic Lorem Ipsum placeholder text for design mockups, prototypes, and testing. Customize the number of paragraphs and sentences per paragraph.
Vue d'ensemble
Cas d'utilisation
- Web design mockups and wireframes
- Development testing with realistic-looking text
- Content placeholders while waiting for final copy
- Typography demonstrations
Fonctionnalités
Points de terminaison de l'API
Generate Lorem Ipsum
Generate Lorem Ipsum placeholder text with customizable length and format
https://requiems.xyz/v1/text/lorem
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| paragraphs | integer |
Facultatif | Number of paragraphs to generate (1-20) |
| sentences | integer |
Facultatif | Number of sentences per paragraph (1-20) |
Essayez-le
Démo en directRequête
Number of paragraphs to generate (1-20)
Number of sentences per paragraph (1-20)
Champs de réponse
| Champ | Type | Description |
|---|---|---|
| text | string |
Generated Lorem Ipsum text |
| paragraphs | integer |
Number of paragraphs generated |
| word_count | integer |
Total number of words in generated text |
Exemples de code
# Generate 3 paragraphs with 5 sentences each
curl "https://requiems.xyz/v1/text/lorem?paragraphs=3&sentences=5" \
-H "requiems-api-key: YOUR_API_KEY"
# Generate 1 paragraph with 10 sentences
curl "https://requiems.xyz/v1/text/lorem?sentences=10" \
-H "requiems-api-key: YOUR_API_KEY"
import requests
url = "https://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://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://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']
Réponses d'erreur
paragraphs must be between 1 and 20
The paragraphs parameter is out of valid range
sentences must be between 1 and 20
The sentences parameter is out of valid range
Generate Lorem Ipsum (Batch)
Generate multiple Lorem Ipsum placeholder texts in a single request. Processes items in bulk and returns partial successes.
https://requiems.xyz/v1/text/lorem/batch
Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| items | array<object> |
Requis | Array of text generation requests. Minimum 1 item, maximum 50 items. |
| items[].paragraphs | integer |
Facultatif | Number of paragraphs to generate (1-20) |
| items[].sentences | integer |
Facultatif | Number of sentences per paragraph (1-20) |
Essayez-le
Démo en directRequête
Array of text generation requests. Minimum 1 item, maximum 50 items.
Number of paragraphs to generate (1-20)
Number of sentences per paragraph (1-20)
Champs de réponse
| Champ | Type | Description |
|---|---|---|
| data[].data | object |
Contains the generated text if the specific item was successful |
| data[].error | string |
Error message if the specific item failed to generate |
Exemples de code
# Generate a batch of 2 different text configurations
curl -X POST "https://requiems.xyz/v1/text/lorem/batch" \
-H "requiems-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"items": [{"paragraphs": 2, "sentences": 3}, {"paragraphs": 1}]}'
import requests
url = "https://requiems.xyz/v1/text/lorem/batch"
headers = {
"requiems-api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"items": [
{"paragraphs": 2, "sentences": 3},
{"paragraphs": 1}
]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
const response = await fetch('https://requiems.xyz/v1/text/lorem/batch', {
method: 'POST',
headers: {
'requiems-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
items: [
{ paragraphs: 2, sentences: 3 },
{ paragraphs: 1 }
]
})
});
const data = await response.json();
console.log(data);
Réponses d'erreur
validation_failed
The request body is malformed, missing the items array, or exceeds the maximum batch size of 50 items.