StudioKingbyNIRVANI Open the studio

Developers

The StudioKing API

Every background, every brand starter set and every client stylesheet is one HTTPS request. No key, no SDK, cached at the edge, readable from any origin.

Quick start

  1. Pick a background in the studio and copy its recipe (the code under the preview title, like c.circles.spotlight.navyGold).
  2. Put one line in your page head. CSS for static backgrounds, a script when you want live ones.
  3. Put the class on any full-width section.
<link rel="stylesheet" href="https://studioking.ai/api/bg/c.circles.spotlight.navyGold.css?class=hero">
<section class="hero"> ... </section>
<script src="https://studioking.ai/api/bg/l.aurora.navyGold.js?target=.hero&speed=1.2&ov=grain:40" defer></script>
<section class="hero"> ... </section>

Conventions

ItemValue
Base URLhttps://studioking.ai/api
MethodsGET (and HEAD, OPTIONS). Responses are read-only.
AuthenticationNone for the endpoints on this page.
CORSAccess-Control-Allow-Origin: * on every response.
ErrorsJSON { "error": "...", "hint": "..." } with a 4xx or 5xx status. Errors are never cached.
ColoursSix-digit hex without #, like 1f6a4e.

Endpoints

GET/api/bg/{recipe}.{css|json|js}

Any recipe in the library, curated or not, as a stylesheet, a JSON description, or a script that mounts it on your sections. Live recipes mount WebGL with the CSS stand-in underneath, pause offscreen, and hold still under reduced motion.

RecipeShapeExample
Patternp.<pattern>.<palette>[.fine|bold|faint]p.seigaiha.sand.bold
Atmospherea.<atmosphere>.<palette>[.intense|subtle]a.auroraBands.emeraldGold
Combinationc.<pattern>.<atmosphere>.<palette>c.damask.goldLeaf.ivoryGold
Live shaderl.<shader>.<palette>l.galaxy.midnight
ParameterApplies toMeaning
lensallRecolour the recipe to a brand colour, light or dark to match the recipe.
class.cssThe class name to write, like hero. Default sk-<recipe>.
target.jsOne selector to mount on, .class or #id. Default [data-studioking].
speedlive0 to 3. Default 1.
intensitylive0.2 to 2.2. Default 1.
scalelive0.4 to 2.5. Default 1.
ovliveUp to four CSS overlays with strength 0 to 100, like grain:50,vignette:60.

Try it: CSS, JSON, live script. Cached for a day at the edge.

GET/api/client/{client}.{js|css|json}

One hosted stylesheet per client, built from the kits your team tagged with that client. Every kit becomes a class: .sk-<kit name> plus the permanent .sk-<kit id>. Add c and the six starter slots fill any class the team has not designed yet, so the link works on day one and never changes.

ParameterMeaning
cBrand colour for the starter slots.
iIndustry for the starter slots: lawFinance, realEstate, medical, weddings, tech, hospitality, beauty, civic.
teamTeam library to read. Default default.

Edits reach client sites about a minute after they sync: a 60 second edge cache with ETag revalidation. The .js also mounts sections added later by single-page apps.

<script src="https://studioking.ai/api/client/howell-shaw.js?c=1f6a4e" defer></script>

GET/api/brand/{brand}.{js|css|json}

A starter set in any brand colour, from the query alone: no account and no storage. The classes are the slot vocabulary every client link shares: .sk-hero .sk-section .sk-feature .sk-cta .sk-light .sk-footer.

ParameterMeaning
cRequired. Brand colour.
iOptional industry (same values as above).
nOptional display name, plain text.

Try it: manifest, CSS. Deterministic, cached for a day.

GET/api/health

Renders a real recipe through the engine on every call and reports each check. 200 with "status": "ok", or 503 with "degraded". Never cached. The status page reads it.

Errors

StatuserrorWhen
400bad lens, bad colourA colour that is not six hex digits.
400bad class, bad targetA class or selector that is not a single plain identifier.
400bad speed, bad intensity, bad scale, bad ovA live parameter out of range, or an unknown overlay.
400live onlyLive parameters on a static recipe.
400colour required, bad industry, bad teamBrand and client parameters.
404not found, unknown recipe, unknown clientA path, recipe or client that does not exist.
503degraded, kits store not boundA dependency is missing; retry later.

Reference

Read from the engine at build time, so these lists always match the library.

41 live shaders
IdNameFamily
auroraAurora SilkFlow
liquidLiquid SilkFlow
meshMesh FlowGlow
starsStarfield DriftSpace
causticsCaustic LightLight
smokeVelvet SmokeFlow
horizonNeon HorizonTech
contoursTopo FlowTech
bokehRising BokehLight
ripplesSilk RipplesLight
plasmaPlasma VeilGlow
silkSilk FoldsLuxury
chromeLiquid ChromeLuxury
guillocheGuilloche SpinLuxury
decoRaysDeco SunburstLuxury
marbleFlowFlowing MarbleLuxury
goldDustGold DustParticles
firefliesFirefliesParticles
snowSnowfallParticles
bubblesChampagne BubblesParticles
warpLight SpeedParticles
lavaLava LampOrganic
cellsLiving CellsOrganic
cloudsCloudscapeOrganic
oceanOcean SwellOrganic
inkInk BloomOrganic
heatHeat HazeOrganic
stainedStained GlassGeometric
moireMoire RingsGeometric
kaleidoKaleidoscopeGeometric
hexPulseHex PulseTech
dotWaveDot MatrixTech
rainDigital RainTech
networkConstellationTech
circuitFlowCircuit FlowTech
scopeSignal WavesTech
galaxySpiral GalaxySpace
nebulaFlowNebula DriftSpace
beamsSpotlightsLight
raysSun RaysLight
iridescentIridescenceGlow
8 overlays (for ov)
IdName
grainFilm grain
vignetteVignette
frameEdge glow
scanScanlines
halftoneHalftone
hexDotsHex dots
latticeLattice
circuitCircuit
64 palettes
IdNameTone
navyGoldMidnight Navydark
blackGoldObsidian Golddark
emeraldGoldEmerald & Golddark
oxbloodGoldOxblood & Golddark
purpleGoldRoyal Plumdark
slatePlatSlate Platinumdark
inkRoseInk & Rose Golddark
espressoEspresso Golddark
tealCopperTeal & Copperdark
charcoalCharcoal Bronzedark
midnightSapphire Nightdark
forestForest Brassdark
wineVintage Winedark
arcticArctic Steeldark
sandDesert Onyxdark
noirPure Noirdark
champagneChampagne Noirdark
gunmetalGunmetal Golddark
bordeauxBordeaux Brassdark
peacockPeacock Golddark
amethystAmethyst Silverdark
cobaltCobalt Brassdark
graphiteGraphite Mistdark
emberEmber Blackdark
roseQuartzRose Quartzdark
jadeJade & Golddark
sapphireSapphire Royaldark
copperNoirCopper Noirdark
lilacSilverLilac Silverdark
oliveGoldOlive Golddark
neonNoirNeon Noirdark
cyberVioletCyber Violetdark
deepOceanDeep Oceandark
volcanicVolcanicdark
inkSilverInk & Silverdark
royalCrimsonRoyal Crimsondark
pineCreamPine & Creamdark
tobaccoTobacco Leatherdark
steelBrassSteel & Brassdark
aubergineAubergine Golddark
ivoryGoldIvory & Goldlight
pearlPearl Whitelight
champagneCreamChampagne Creamlight
marbleWhiteMarble Whitelight
linenSandLinen Sandlight
blushRoseBlush Roselight
sageBrassSage & Brasslight
powderBluePowder Bluelight
lavenderMistLavender Mistlight
mintPearlMint Pearllight
peachCreamPeach Creamlight
porcelainNavyPorcelain Navylight
paperInkPaper & Inklight
alabasterCopperAlabaster Copperlight
skyPlatinumSky Platinumlight
butterGoldButter Goldlight
seafoamSeafoamlight
doveGreyDove Greylight
honeyOatHoney Oatlight
lilacCreamLilac Creamlight
celadonCeladonlight
coralSandCoral Sandlight
eggshellEmeraldEggshell Emeraldlight
frostSilverFrost Silverlight
95 patterns
40 atmospheres
8 industries
IdName
lawFinanceLaw & Finance
realEstateLuxury Real Estate
medicalMedical & Wellness
weddingsWeddings & Events
techTech & SaaS
hospitalityRestaurants & Hospitality
beautyBeauty & Fashion
civicCampaign & Civic