Generate a random UUID v4. Optionally request a bulk batch of UUIDs in one call.
Query Parameters
| Param | Type | Default | Description |
|---|---|---|---|
| count | integer | 1 | Number of UUIDs (max 5 Free, 50 Pro) |
curl https://api.aiforeverthing.com/api/uuid/generate # With API Key (Pro) curl -H "X-API-Key: dk_live_xxxx" \ "https://api.aiforeverthing.com/api/uuid/generate?count=5"
const res = await fetch( 'https://api.aiforeverthing.com/api/uuid/generate', { headers: { 'X-API-Key': 'dk_live_xxxx' } } ); const { uuid } = await res.json();
{
"uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"version": 4,
"timestamp": "2026-03-19T10:00:00.000Z"
}
// count=3 returns { "uuids": [...], "count": 3 }Validate whether a string is a valid UUID and return its version.
curl -X POST https://api.aiforeverthing.com/api/uuid/validate \ -H "Content-Type: application/json" \ -d '{"uuid":"f47ac10b-58cc-4372-a567-0e02b2c3d479"}'
const res = await fetch('https://api.aiforeverthing.com/api/uuid/validate', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ uuid: myUuid }) });
{
"valid": true,
"version": 4,
"uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}Encode a string to Base64. Supports standard and URL-safe Base64 alphabet.
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | yes | Text to encode |
| url_safe | boolean | no | Use URL-safe Base64 (default: false) |
curl -X POST https://api.aiforeverthing.com/api/base64/encode \ -H "Content-Type: application/json" \ -d '{"text":"Hello, World!"}'
const { encoded } = await ( await fetch('https://api.aiforeverthing.com/api/base64/encode', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ text: 'Hello, World!' }) }) ).json();
{
"encoded": "SGVsbG8sIFdvcmxkIQ==",
"original_length": 13,
"encoded_length": 20,
"url_safe": false
}Decode a Base64 string back to plain text.
curl -X POST https://api.aiforeverthing.com/api/base64/decode \ -H "Content-Type: application/json" \ -d '{"encoded":"SGVsbG8sIFdvcmxkIQ=="}'
import requests res = requests.post( 'https://api.aiforeverthing.com/api/base64/decode', json={'encoded': 'SGVsbG8sIFdvcmxkIQ=='} ) print(res.json()['decoded'])
{
"decoded": "Hello, World!",
"valid": true,
"bytes": 13
}Pretty-print and validate a JSON string. Control indentation and key sorting.
| Field | Type | Default | Description |
|---|---|---|---|
| json | string | required | The JSON string to format |
| indent | integer | 2 | Spaces of indentation (1-8) |
| sort_keys | boolean | false | Alphabetically sort object keys |
curl -X POST https://api.aiforeverthing.com/api/json/format \ -H "Content-Type: application/json" \ -d '{"json":"{\"name\":\"Alice\",\"age\":30}","indent":2}'
const { formatted } = await ( await fetch('https://api.aiforeverthing.com/api/json/format', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ json: compactString, indent: 2 }) }) ).json();
{
"formatted": "{\n \"name\": \"Alice\",\n \"age\": 30\n}",
"valid": true,
"size_bytes": 34,
"depth": 1
}Strip whitespace from a JSON string to minimize payload size.
curl -X POST https://api.aiforeverthing.com/api/json/minify \ -H "Content-Type: application/json" \ -d '{"json":"{\n \"name\": \"Alice\",\n \"age\": 30\n}"}'
resp, _ := http.Post( "https://api.aiforeverthing.com/api/json/minify", "application/json", strings.NewReader(`{"json":"`+prettyJSON+`"}`), ) defer resp.Body.Close()
{
"minified": "{\"name\":\"Alice\",\"age\":30}",
"original_bytes": 34,
"minified_bytes": 24,
"savings_pct": 29.4
}Decode a JWT token and inspect its header and payload. Does not verify the signature — use for debugging only.
curl -X POST https://api.aiforeverthing.com/api/jwt/decode \ -H "Content-Type: application/json" \ -d '{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."}'
const { header, payload, expired } = await ( await fetch('https://api.aiforeverthing.com/api/jwt/decode', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ token: jwtString }) }) ).json();
{
"header": { "alg": "HS256", "typ": "JWT" },
"payload": { "sub": "1234567890", "name": "Alice", "exp": 1716239022 },
"expired": false,
"expires_at": "2024-05-20T21:43:42.000Z"
}Compute a cryptographic hash. Supports MD5, SHA-1, SHA-256, SHA-512.
| Field | Type | Default | Description |
|---|---|---|---|
| text | string | required | Input string to hash |
| algorithm | string | sha256 | One of: md5, sha1, sha256, sha512 |
curl -X POST https://api.aiforeverthing.com/api/hash/generate \ -H "Content-Type: application/json" \ -d '{"text":"hello","algorithm":"sha256"}'
import requests res = requests.post( 'https://api.aiforeverthing.com/api/hash/generate', json={'text': 'hello', 'algorithm': 'sha256'} ) print(res.json()['hash'])
{
"hash": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
"algorithm": "sha256",
"input_length": 5
}Percent-encode a string for safe use in URLs.
curl -X POST https://api.aiforeverthing.com/api/url/encode \ -H "Content-Type: application/json" \ -d '{"text":"hello world & more=things"}'
const { encoded } = await ( await fetch('https://api.aiforeverthing.com/api/url/encode', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ text: rawString }) }) ).json();
{
"encoded": "hello%20world%20%26%20more%3Dthings",
"original": "hello world & more=things"
}Decode a percent-encoded URL string back to its original form.
curl -X POST https://api.aiforeverthing.com/api/url/decode \ -H "Content-Type: application/json" \ -d '{"encoded":"hello%20world%20%26%20more%3Dthings"}'
const { decoded } = await ( await fetch('https://api.aiforeverthing.com/api/url/decode', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ encoded: encodedString }) }) ).json();
{
"decoded": "hello world & more=things",
"encoded": "hello%20world%20%26%20more%3Dthings"
}Convert between HEX, RGB, HSL, and HSV color formats. Input format is auto-detected.
| Field | Type | Required | Description |
|---|---|---|---|
| color | string | yes | Input color value (e.g. #10b981, rgb(16,185,129)) |
| to | string | yes | Target format: hex, rgb, hsl, hsv |
curl -X POST https://api.aiforeverthing.com/api/color/convert \ -H "Content-Type: application/json" \ -d '{"color":"#10b981","to":"rgb"}'
const { result } = await ( await fetch('https://api.aiforeverthing.com/api/color/convert', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ color: '#10b981', to: 'hsl' }) }) ).json();
{
"input": "#10b981",
"input_format": "hex",
"result": "rgb(16, 185, 129)",
"output_format": "rgb",
"components": { "r": 16, "g": 185, "b": 129 }
}Convert Unix timestamps to ISO 8601 / human-readable dates, and vice versa.
| Field | Type | Default | Description |
|---|---|---|---|
| timestamp | integer | required | Unix timestamp to convert |
| unit | string | seconds | seconds or ms (milliseconds) |
curl -X POST https://api.aiforeverthing.com/api/timestamp/convert \ -H "Content-Type: application/json" \ -d '{"timestamp":1710864000,"unit":"seconds"}'
const { iso, relative } = await ( await fetch('https://api.aiforeverthing.com/api/timestamp/convert', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ timestamp: Date.now(), unit: 'ms' }) }) ).json();
{
"timestamp": 1710864000,
"unit": "seconds",
"iso": "2024-03-19T16:00:00.000Z",
"utc": "Tue, 19 Mar 2024 16:00:00 GMT",
"relative": "1 year ago"
}Error Codes
All errors return JSON with error and message fields.
{
"error": "INVALID_JSON",
"message": "The provided JSON is malformed at line 3",
"status": 400
}| HTTP | Error Code | Description |
|---|---|---|
| 400 | BAD_REQUEST | Missing required fields or invalid parameter values |
| 400 | INVALID_JSON | The provided JSON string is malformed |
| 401 | INVALID_API_KEY | The X-API-Key header is invalid or expired |
| 404 | NOT_FOUND | The requested endpoint does not exist |
| 413 | PAYLOAD_TOO_LARGE | Body exceeds 1 MB (Free) or 10 MB (Pro) |
| 429 | RATE_LIMITED | Daily limit reached. See Retry-After header |
| 500 | INTERNAL_ERROR | Unexpected server error. Retry or contact support |
Rate Limit Headers
| Header | Description |
|---|---|
| X-RateLimit-Limit | Your total daily limit |
| X-RateLimit-Remaining | Requests remaining today |
| X-RateLimit-Reset | Unix timestamp when limit resets (midnight UTC) |
| Retry-After | Seconds to wait before retrying (on 429 only) |
Need More Than 100 Requests/Day?
Upgrade to Pro for unlimited API access at $9/month.