Velohost Velohost

Developer interface

Random String Generator API

Generate cryptographically secure random strings for passwords, tokens, API keys, and identifiers.

The Velohost Random String Generator API provides a simple and secure way to generate unpredictable random strings for use in applications, infrastructure, and automation workflows.

It supports configurable length and character settings, allowing you to generate values suitable for passwords, API keys, access tokens, and other security-sensitive identifiers.

Base API URL

All endpoints listed below are relative to this base URL.

Base API URL https://api.velohost.co.uk/random-string/

Rate limiting

This API is protected by a global rate limit to ensure fair usage and platform stability.

  • Limit: 30 requests per 10 seconds per IP address
  • Burst traffic is allowed
  • No authentication required
  • Requests exceeding the limit return HTTP 429

This limit applies across all Velohost public APIs.

Error responses

The API uses standard HTTP status codes to indicate errors.

429 Too Many Requests

Returned when the global rate limit is exceeded.

{
  "detail": "Rate limit exceeded"
}
          
400 Bad Request

Returned when request parameters are missing or invalid.

Endpoints

Generate random string

Generates a cryptographically secure random string using the specified length and character settings.

Request
POST /generate
Request
{
  "length": 16,
  "settings": {
    "uppercase": true,
    "lowercase": true,
    "numbers": true,
    "symbols": false
  }
}
Response
 
{
  "length": 16,
  "settings": {
    "uppercase": true,
    "lowercase": true,
    "numbers": true,
    "symbols": false
  },
  "string": "Xi3i8Yw3NfVj5rTw"
}

Learn more

Explore the tool, documentation, and guides.