QuantmLayer Documentation

Everything you need to integrate quantum-safe AI APIs into your applications. Get started in minutes with enterprise-grade security.

🚀 Quick Start

Before You Begin

You'll need a QuantmLayer API key.Sign up for free to get started.

Make Your First Request

curl -X POST https://api.quantmlayer.com/v1/chat/completions   -H "Authorization: Bearer ql_your_api_key"   -H "Content-Type: application/json"   -d '{
    "model": "gpt-4",
    "messages": [
      {
        "role": "user", 
        "content": "Analyze this patient data..."
      }
    ],
    "encryption": "kyber512",
    "temperature": 0.7
  }'

Using Python SDK

from quantmlayer import SecureGPT

# Initialize client
client = SecureGPT(api_key="ql_your_api_key")

# Make encrypted request
response = client.encrypt_and_query(
    prompt="Analyze this patient data...",
    model="gpt-4",
    encryption="kyber512",
    temperature=0.7
)

print(response.content)
print(f"Encryption time: {response.metadata.encryption_time}ms")

✅ Success!

Your data was encrypted with quantum-safe algorithms before being sent to the AI model. The response is decrypted only for you.

🔑 Authentication

All API requests must include your API key in the Authorization header:

Authorization: Bearer ql_your_api_key_here

🔍 Finding Your API Key

  1. 1. Log into your QuantmLayer dashboard
  2. 2. Navigate to "API Keys" section
  3. 3. Click "Generate New Key"
  4. 4. Copy and securely store your key

🔒 Security Best Practices

  • • Never commit keys to version control
  • • Use environment variables
  • • Rotate keys regularly
  • • Monitor usage in dashboard

📖 API Overview

🌐 Base URL

https://api.quantmlayer.com/v1

📊 Rate Limits

Varies by plan: 100-10K requests/minute

🔄 Response Format

JSON with encrypted payloads

Available Endpoints

POST /v1/chat/completionsCore

Encrypted chat completions with GPT-4, GPT-3.5, and Mistral models

GET /v1/modelsInfo

List available AI models and their encryption capabilities

GET /v1/usageAnalytics

Get usage statistics and billing information

🔐 Encryption Options

🛡️ Quantum-Safe by Default

All requests use post-quantum cryptography (Kyber512) unless specified otherwise. Your data is protected against both classical and quantum attacks.

Supported Algorithms

🚀 Kyber512 (Recommended)

  • • NIST post-quantum standard
  • • Quantum-safe encryption
  • • ~50ms overhead
  • • Future-proof security

🔒 RSA-4096 (Legacy)

  • • Classical encryption
  • • Broad compatibility
  • • ~10ms overhead
  • • Not quantum-safe

Ready to Get Started?

Try our APIs with a free trial. No credit card required.