LaminarForge API Text Utils API
lf-text-utils — word count, language detect, UUID, password, names, lorem ipsum
lf-text-utils — word count, language detect, UUID, password, names, lorem ipsum
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/laminarforge-dev:laminarforge-dev-text-utils-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Laminarforge Dev Text Utils API
version: 1.1.0
contact:
url: https://laminarforge.dev/contact
description: 'Operations tagged Text Utils across 2 of this provider''s published API definitions: laminarforge-dev-openapi.json, laminarforge-dev-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Text Utils
description: lf-text-utils — word count, language detect, UUID, password, names, lorem ipsum
paths:
/:
get:
tags:
- Text Utils
summary: Service info
description: Returns the service name and list of available endpoints. Available on both workers.
operationId: serviceInfo
responses:
'200':
description: Service information
content:
application/json:
schema:
type: object
properties:
service:
type: string
endpoints:
type: array
items:
type: string
docs:
type: string
/v1/health:
get:
tags:
- Text Utils
summary: Health check
description: Returns service health status, version, and KV store availability for the worker. No authentication required.
operationId: healthCheck
responses:
'200':
description: Health status
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: ok
service:
type: string
version:
type: string
example: 1.0.0
endpoints:
type: integer
kv:
type: object
properties:
api_keys:
type: boolean
usage:
type: boolean
rate_limits:
type: boolean
customers:
type: boolean
/v1/keys:
post:
tags:
- Text Utils
summary: Create API key
description: 'Generate a free-tier API key. Returns the raw key once — save it immediately; it is stored as a SHA-256 hash and the raw value is never retrievable again. Supports optional key expiry: pass a `ttl` in seconds from now, an explicit `expires_at` ISO 8601 timestamp, an optional `owner_email` to group sibling keys, and a free-form `note`. An expired key is rejected with HTTP 401 on subsequent use.'
operationId: createApiKey
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
tier:
type: string
enum:
- free
default: free
description: Key tier. Only 'free' can be created via this endpoint.
ttl:
type: integer
minimum: 1
description: 'Optional expiry: number of seconds from now. Mutually exclusive with expires_at.'
expires_at:
type: string
format: date-time
description: 'Optional expiry: explicit ISO 8601 timestamp. Mutually exclusive with ttl.'
owner_email:
type: string
description: Optional owner email used to group sibling keys (list/revoke together).
note:
type: string
description: Optional free-form note stored with the key metadata.
responses:
'200':
description: API key created
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
example: true
api_key:
type: string
description: The raw API key (lf_...). Save this immediately — it won't be shown again.
tier:
type: string
example: free
created:
type: string
format: date-time
description: Creation timestamp (ISO 8601).
expires_at:
type:
- string
- 'null'
format: date-time
description: Expiry timestamp if a ttl/expires_at was set, else null.
note:
type: string
docs:
type: string
'400':
$ref: '#/components/responses/BadRequest'
/v1/usage:
get:
tags:
- Text Utils
summary: Usage stats
description: Returns current daily usage statistics for the authenticated API key, including tier info, daily limit, and remaining calls. Requires authentication.
operationId: getUsage
security:
- ApiKeyAuth: []
responses:
'200':
description: Usage statistics
content:
application/json:
schema:
type: object
properties:
key_prefix:
type: string
description: Truncated key prefix for identification
tier:
type: string
tier_label:
type: string
daily_limit:
type: integer
calls_today:
type: integer
remaining:
type: integer
/v1/checkout:
post:
tags:
- Text Utils
summary: Create Stripe checkout session
description: Creates a Stripe Checkout Session for upgrading an API key to a paid tier (Starter, Pro, or Business). Returns the checkout URL for redirect.
operationId: createCheckout
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
tier:
type: string
enum:
- starter
- pro
- biz
description: Target tier for upgrade
key_hash:
type: string
description: SHA-256 hash of the API key being upgraded
success_url:
type: string
format: uri
description: Redirect URL on successful payment
cancel_url:
type: string
format: uri
description: Redirect URL on cancelled payment
required:
- tier
responses:
'200':
description: Checkout session created
content:
application/json:
schema:
type: object
properties:
url:
type: string
format: uri
description: Stripe Checkout Session URL
session_id:
type: string
/v1/webhook:
post:
tags:
- Text Utils
summary: Stripe webhook
description: Receives Stripe webhook events (checkout.session.completed, customer.subscription.updated/deleted). Verifies the webhook signature using Stripe-Signature header, then updates the corresponding API key tier in KV storage.
operationId: handleWebhook
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
type:
type: string
description: Stripe event type
data:
type: object
description: Stripe event data object
responses:
'200':
description: Webhook received
content:
application/json:
schema:
type: object
properties:
received:
type: boolean
example: true
/v1/balance:
get:
tags:
- Text Utils
summary: Check balance and credits
description: Returns the current account balance, daily usage, limit, and remaining calls for the authenticated key. Requires authentication.
operationId: getBalance
security:
- ApiKeyAuth: []
responses:
'200':
description: Balance information
content:
application/json:
schema:
type: object
properties:
tier:
type: string
used_today:
type: integer
limit:
type: integer
remaining:
type: integer
is_subscription:
type: boolean
/v1/word-count:
get:
tags:
- Text Utils
summary: Count words, chars, sentences in text
description: Analyzes text and returns word count, character count (with and without spaces), sentence count, line count, paragraph count, unique word count, average word length, and longest word.
operationId: wordCountGet
security:
- ApiKeyAuth: []
parameters:
- name: input
in: query
required: true
schema:
type: string
description: Text to analyze
- name: text
in: query
schema:
type: string
description: Alias for 'input'
responses:
'200':
description: Text analysis
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
word_count:
type: integer
char_count:
type: integer
char_no_spaces:
type: integer
sentence_count:
type: integer
line_count:
type: integer
paragraph_count:
type: integer
unique_words:
type: integer
avg_word_length:
type: number
longest_word:
type: string
'400':
$ref: '#/components/responses/BadRequest'
post:
tags:
- Text Utils
summary: Count words via POST
description: Same as GET but accepts input parameters via request body (JSON object with 'input' field) or as raw text body.
operationId: wordCountPost
security:
- ApiKeyAuth: []
requestBody:
content:
application/json:
schema:
type: object
properties:
input:
type: string
description: Text to analyze
text:
type: string
description: Text to analyze
required:
- input
text/plain:
schema:
type: string
description: Raw text body
responses:
'200':
description: Text analysis
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
word_count:
type: integer
char_count:
type: integer
char_no_spaces:
type: integer
sentence_count:
type: integer
line_count:
type: integer
paragraph_count:
type: integer
unique_words:
type: integer
avg_word_length:
type: number
longest_word:
type: string
'400':
$ref: '#/components/responses/BadRequest'
/v1/language-detect:
post:
tags:
- Text Utils
summary: Detect language from text
description: Detects the language of input text using character frequency analysis and script detection. Supports 20+ languages including English, Spanish, French, German, Russian, Chinese, Japanese, Arabic, and more. Accepts input via request body or ?input= query parameter.
operationId: detectLanguage
security:
- ApiKeyAuth: []
parameters:
- name: input
in: query
schema:
type: string
description: Text to analyze (alternative to request body)
- name: text
in: query
schema:
type: string
description: Alias for 'input'
requestBody:
content:
application/json:
schema:
type: object
properties:
input:
type: string
description: Text to analyze
text:
type: string
description: Text to analyze
required:
- input
text/plain:
schema:
type: string
description: Raw text body
responses:
'200':
description: Language detection result
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
detected_language:
type: string
description: ISO 639-1 language code
language_name:
type: string
confidence:
type: integer
minimum: 0
maximum: 99
text_length:
type: integer
scripts_detected:
type: array
items:
type: string
note:
type:
- string
- 'null'
'400':
$ref: '#/components/responses/BadRequest'
/v1/uuid:
get:
tags:
- Text Utils
summary: Generate UUID v4
description: 'Generates a random UUID v4 identifier. Supports optional format variants: standard (8-4-4-4-12), hex (no hyphens), or base64.'
operationId: generateUuid
security:
- ApiKeyAuth: []
parameters:
- name: version
in: query
schema:
type: string
default: '4'
description: UUID version (only 4 supported)
- name: format
in: query
schema:
type: string
enum:
- standard
- hex
- base64
default: standard
description: Output format
responses:
'200':
description: Generated UUID
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
uuid:
type: string
version:
type: string
format:
type: string
standard:
type: string
description: Standard formatted UUID
uppercase:
type: string
/v1/uuid-batch:
get:
tags:
- Text Utils
summary: Generate batch UUIDs
description: Generates multiple random UUID v4 identifiers in a single call. Count can range from 1 to 1000.
operationId: generateUuidBatch
security:
- ApiKeyAuth: []
parameters:
- name: count
in: query
schema:
type: integer
default: 5
minimum: 1
maximum: 1000
description: Number of UUIDs to generate
responses:
'200':
description: Batch UUIDs
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
count:
type: integer
uuids:
type: array
items:
type: string
/v1/password-generator:
get:
tags:
- Text Utils
summary: Generate secure passwords
description: Generates cryptographically-random passwords with configurable length, character sets, and quantity. Each password is shuffled to ensure character distribution. Returns strength estimation (weak/moderate/strong/very_strong) based on entropy.
operationId: generatePassword
security:
- ApiKeyAuth: []
parameters:
- name: length
in: query
schema:
type: integer
default: 16
minimum: 4
maximum: 256
description: Password length
- name: uppercase
in: query
schema:
type: boolean
default: true
description: Include uppercase letters
- name: digits
in: query
schema:
type: boolean
default: true
description: Include digits
- name: numbers
in: query
schema:
type: boolean
default: true
description: Alias for 'digits'
- name: symbols
in: query
schema:
type: boolean
default: false
description: Include special characters
- name: count
in: query
schema:
type: integer
default: 1
minimum: 1
maximum: 50
description: Number of passwords to generate
responses:
'200':
description: Generated passwords
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
count:
type: integer
config:
type: object
properties:
length:
type: integer
uppercase:
type: boolean
digits:
type: boolean
symbols:
type: boolean
passwords:
type: array
items:
type: object
properties:
password:
type: string
strength:
type: string
enum:
- weak
- moderate
- strong
- very_strong
length:
type: integer
/v1/random-name:
get:
tags:
- Text Utils
summary: Generate random names
description: 'Generates random human names from a curated pool of first and last names. Supports multiple output formats: full, first, last, initials. Can generate multiple names in one call.'
operationId: generateRandomName
security:
- ApiKeyAuth: []
parameters:
- name: count
in: query
schema:
type: integer
default: 1
minimum: 1
maximum: 100
description: Number of names to generate
- name: format
in: query
schema:
type: string
enum:
- full
- first
- last
- initials
default: full
description: Output format for the formatted field
responses:
'200':
description: Generated names
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
count:
type: integer
format:
type: string
names:
type: array
items:
type: object
properties:
first:
type: string
last:
type: string
full:
type: string
initials:
type: string
formatted:
type: string
/v1/lorem-ipsum:
get:
tags:
- Text Utils
summary: Generate Lorem Ipsum text
description: Generates classic Lorem Ipsum placeholder text as paragraphs, sentences, or words. Each generation produces randomized but grammatically consistent output.
operationId: generateLoremIpsum
security:
- ApiKeyAuth: []
parameters:
- name: count
in: query
schema:
type: integer
default: 1
minimum: 1
maximum: 100
description: Number of units to generate
- name: type
in: query
schema:
type: string
enum:
- paragraphs
- sentences
- words
default: paragraphs
description: Type of text unit
responses:
'200':
description: Generated text
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
type:
type: string
count:
type: integer
text:
type: string
word_count:
type: integer
/v1/readability:
get:
tags:
- Text Utils
summary: Flesch-Kincaid readability analysis
operationId: v1_readability
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
security:
- ApiKeyAuth: []
/v1/token-count:
get:
tags:
- Text Utils
summary: Estimate token count for LLM models
operationId: v1_token_count
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
security:
- ApiKeyAuth: []
/v1/chunk-text:
get:
tags:
- Text Utils
summary: Split text into chunks by word/char/sentence/paragraph
operationId: v1_chunk_text
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
security:
- ApiKeyAuth: []
post:
tags:
- Text Utils
summary: Split text into chunks via POST
operationId: postV1ChunkText
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
security:
- ApiKeyAuth: []
x-operation-id-source: normalized
x-operation-id-original: v1_chunk_text
/v1/case-tools:
get:
tags:
- Text Utils
summary: Transform text case (sentence, title, invert, alternating)
operationId: v1_case_tools
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
security:
- ApiKeyAuth: []
/v1/unicode-inspect:
get:
tags:
- Text Utils
summary: Inspect Unicode characters and emoji
operationId: v1_unicode_inspect
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
security:
- ApiKeyAuth: []
/v1/template-expand:
get:
tags:
- Text Utils
summary: Expand templates with variable substitution
operationId: v1_template_expand
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
security:
- ApiKeyAuth: []
/v1/register:
post:
tags:
- Text Utils
summary: Register an agent, get a free API key
operationId: v1_register
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
get:
tags:
- Text Utils
summary: Agent onboarding info (no key created)
operationId: getV1Register
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
x-operation-id-source: normalized
x-operation-id-original: v1_register
components:
responses:
BadRequest:
description: Bad request — missing or invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
schemas:
ErrorResponse:
type: object
required:
- error
- message
properties:
error:
type: boolean
example: true
message:
type: string
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: 'API key authentication. Provide via X-API-Key header or Authorization: Bearer <key> header.'
X402Payment:
type: apiKey
in: header
name: X-PAYMENT
description: x402 pay-per-call payment. Send base64url(JSON) of the x402 payment payload in X-PAYMENT (or PAYMENT-SIGNATURE). No account or API key needed. Call the endpoint once without credentials and the 402 response tells you the exact price, network, asset and payTo address to pay.
x-refined-from:
- laminarforge-dev-openapi.json
- laminarforge-dev-openapi.json