Developer API
Query the PromptSolutions prompt library from your own apps, bots, and automations with one simple REST endpoint.
Getting an API key
API keys are granted by our team to Premium subscribers (monthly or yearly plans). To request one:
- Make sure your account has an active Premium subscription (see plans).
- Contact us and ask for an API key, or reply to any of our emails.
- We will create your key and send it to you. Store it safely - the full key is shown only once.
Keys are revoked automatically if they are abused. One key per integration is recommended.
Endpoint
GET https://prompts.sktechnology.org/api/v1/prompts.php
Authentication
Pass your key as the key query parameter. Missing or invalid keys return 401 {"error":"..."}.
Parameters
| Param | Description |
|---|---|
key | Your API key (required). |
q | Search titles and teasers (optional). |
category | Filter by category slug (optional). |
tier | free or premium (optional). |
page | Page number, 20 results per page (optional, default 1). |
Response
Every result includes id, title, slug, teaser, category, category_slug, tier, thumbnail_url, has_full_text. The full_text field is included only when the key owner's account is Premium - free-tier keys get the teaser only.
Rate limits
60 requests per minute per key. Exceeding it returns 429 {"error":"Rate limit exceeded..."}.
Examples
cURL
curl "https://prompts.sktechnology.org/api/v1/prompts.php?key=psk_YOURKEY&q=cinematic&tier=premium&page=1"
PHP
<?php
$key = 'psk_YOURKEY';
$json = file_get_contents(
'https://prompts.sktechnology.org/api/v1/prompts.php?' . http_build_query(['key' => $key, 'q' => 'anime', 'page' => 1])
);
$res = json_decode($json, true);
foreach ($res['data'] as $p) {
echo $p['title'] . " [" . $p['tier'] . "]\n";
if ($p['has_full_text']) { echo $p['full_text'] . "\n"; }
}
JavaScript
const res = await fetch( 'https://prompts.sktechnology.org/api/v1/prompts.php?key=psk_YOURKEY&q=neon' ).then(r => r.json()); console.log(res.total, 'prompts found'); res.data.forEach(p => console.log(p.title, p.has_full_text ? p.full_text.slice(0, 60) : ''));
Sample response
{
"data": [
{
"id": 12,
"title": "Neon Samurai - Cinematic Fight Scene",
"slug": "neon-samurai-cinematic-fight-scene",
"teaser": "A rain-soaked neon alley...",
"category": "Cinematic",
"category_slug": "cinematic",
"tier": "premium",
"thumbnail_url": "https://example.com/uploads/thumb.jpg",
"has_full_text": true,
"full_text": "Full ready-to-paste prompt text..."
}
],
"page": 1,
"per_page": 20,
"total": 148
}
Rules
- Keep your key secret. Never put it in client-side code that ships to browsers.
- Do not resell raw prompt content pulled from the API.
- Credit PromptSolutions when you display our prompts publicly.
- We may change or version endpoints at any time; this page always documents the current version.
Questions? Contact us → · Get Premium →