One API, your NSFWSpace account.
Requests use your account’s live model catalog and generation credits. Generated media remains associated with your account, and private output stays private unless you explicitly choose otherwise.
https://nsfwspace.com/wp-json/growtype-art/v1Your API keys.
Send your key in the Authorization header. Keep it on your server—never expose it in public browser code, source control, or logs.
Authorization: Bearer $NSFWSPACE_API_KEY
Make your first image.
- 1Create an API key
Copy it once and save it as a server-side environment variable.
- 2Read the current catalog
Provider availability can change. Select an image model and a style returned by the config endpoint.
- 3Submit and follow the result
A request may return media immediately or a generation ID to poll.
export NSFWSPACE_API_KEY="nsfw_live_…"
curl -X POST "https://nsfwspace.com/wp-json/growtype-art/v1/generator/generate" \
-H "Authorization: Bearer $NSFWSPACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Editorial portrait in a daylight studio, warm rim light",
"mode": "image",
"provider": "segmind",
"model": "z-image-turbo",
"style": "a5632c7c-ddbb-4e2f-ba34-8456ab3ac436",
"width": 1024,
"height": 1024,
"quantity": 1,
"private": true,
"client_request_id": "my-request-001"
}'
/generator/config
Fetch this endpoint before presenting model or style choices. It returns the live models and styles arrays plus the authenticated account’s current credit balance.
curl "https://nsfwspace.com/wp-json/growtype-art/v1/generator/config" \
-H "Authorization: Bearer $NSFWSPACE_API_KEY"
/generator/generate
Start an image generation. The provider, model, and style must match entries returned by the current catalog.
string · required3–4,000 characters.stringUse a compatible catalog pair. Empty values select Auto when available.string · requiredA style ID from the catalog.integer256–4,096. Default: 1,024.integer1–4 images. Credits are charged per output.booleanDefaults to true.stringYour optional request identifier, up to 64 characters./generator/generation/{generation_id}
If generation is still processing, poll this account-scoped endpoint with the returned generation ID. Stop when the response contains generated URLs or a terminal failure.
curl "https://nsfwspace.com/wp-json/growtype-art/v1/generator/generation/GENERATION_ID" \
-H "Authorization: Bearer $NSFWSPACE_API_KEY"
Design for clear failure.
per minute, per user
per day, per user
per account
400Invalid requestCheck prompt, model, style, or dimensions.401Invalid API keyCreate a new key or verify the bearer header.402Insufficient creditsAdd credits before retrying.403ForbiddenThe generation or reference belongs to another account.429Rate limitedBack off before retrying.5xxService errorRetry with exponential backoff and jitter.Limits protect generation capacity and may evolve. Do not retry validation or authentication errors automatically.