Developer Documentation

Integrate Quantum Studio's powerful AI generation tools directly into your own applications and workflows.

Welcome to Quantum Studio

The Quantum Studio API provides programmatic access to our entire suite of neural marketing tools. Whether you are building a custom dashboard for your agency or integrating our tools into your SaaS product, our endpoints are designed to be fast, reliable, and easy to use.

All API responses are formatted as JSON and require active user sessions or valid API keys depending on your integration method.

Base URL

https://quantumstudioai.co.uk/

Make sure to direct all requests to the root directory where your API PHP files are hosted.

Authentication

Currently, the API endpoints utilize standard PHP Session-based authentication. The API scripts automatically verify that the user making the request has an active login session.

Paywall Limits

Our endpoints have built-in metered paywalls to prevent abuse:

  • Guest Users: Limited to 1 generation per tool. Returns a `limit_guest` string when exhausted.
  • Free Accounts: Limited to 3 generations per tool. Returns a `limit_free` string when exhausted.
  • Pro Accounts: Unlimited access. Requires $_SESSION['is_pro'] === 1.

Social Forge API

Generates a complete, highly-engaging 7-day social media content campaign formatted in raw HTML, ready for rendering in a web interface.

POST /api_social_forge.php

Request Parameters

ParameterTypeDescription
brandStringThe name of the brand or company. (Optional, defaults to "Your Brand")
topicStringRequired. The core subject or product the campaign should focus on.
platformStringThe target platform (e.g., "Instagram", "LinkedIn", "Twitter").

Example Request

JavaScript (Fetch)
const response = await fetch('api_social_forge.php', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
        brand: "Quantum Studio",
        topic: "Launching our new AI image generator.",
        platform: "LinkedIn"
    })
});
const data = await response.json();

Example Response

JSON
{
    "status": "success",
    "result": "<div class=\"doc-post\">...</div>"
}

Growth Toolkit API

A multi-purpose endpoint that handles Viral Hooks, Profile Bios, Smart Replies, and Email Subject extraction based on the provided toolType.

POST /api_growth_toolkit.php

Core Request Parameters

ParameterTypeDescription
toolTypeStringRequired. Must be one of: hook, bio, reply, or email.

Depending on the toolType, specific additional parameters are required:

  • hook: requires topic, platform, and tone.
  • bio: requires name and niche.
  • reply: requires message and tone.
  • email: requires content.

Example Request (Viral Hooks)

JavaScript (Fetch)
const response = await fetch('api_growth_toolkit.php', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
        toolType: "hook",
        topic: "Why most startups fail in 6 months",
        platform: "TikTok / Reels",
        tone: "Controversial"
    })
});

Error Handling

The API uses standard HTTP status codes to indicate the success or failure of an API request. Failed requests will always return a JSON object containing an error message.

CodeMeaning
200 OKThe request was successful and data is returned.
400 Bad RequestMissing required parameters (e.g., missing the core topic).
403 ForbiddenUser is not logged in, or has hit their Free/Guest generation limits.
500 Server ErrorInternal server failure or cURL connection to OpenAI failed.
Quantum Studio Footer

System Status

Social Forge Engine
Operational
Growth Toolkit
Operational
Conversion X-Ray
Operational
Dynamic QR Network
Operational
Visual Studio & Rendering
Operational
Core API Endpoints
Operational