NSFWSpace API · v1

Build without
creative limits.

Connect NSFWSpace image generation to your own product, workflow, or script with the same models, credits, and private library as your account.

generate.sh
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": "Your imagination, released.",
    "mode": "image",
    "provider": "segmind",
    "model": "z-image-turbo",
    "style": "a5632c7c-ddbb-4e2f-ba34-8456ab3ac436"
  }'
01 / Overview

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.

Base URLhttps://nsfwspace.com/wp-json/growtype-art/v1
AuthenticationBearer API key
FormatJSON over HTTPS
02 / Authentication

Your 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 header
Authorization: Bearer $NSFWSPACE_API_KEY
03 / Quickstart

Make your first image.

  1. 1
    Create an API key

    Copy it once and save it as a server-side environment variable.

  2. 2
    Read the current catalog

    Provider availability can change. Select an image model and a style returned by the config endpoint.

  3. 3
    Submit and follow the result

    A request may return media immediately or a generation ID to poll.

Shell
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"
  }'
04 / Catalog
GET

/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.

Request
curl "https://nsfwspace.com/wp-json/growtype-art/v1/generator/config" \
  -H "Authorization: Bearer $NSFWSPACE_API_KEY"
05 / Generate
POST

/generator/generate

Start an image generation. The provider, model, and style must match entries returned by the current catalog.

promptstring · required3–4,000 characters.
provider / modelstringUse a compatible catalog pair. Empty values select Auto when available.
stylestring · requiredA style ID from the catalog.
width / heightinteger256–4,096. Default: 1,024.
quantityinteger1–4 images. Credits are charged per output.
privatebooleanDefaults to true.
client_request_idstringYour optional request identifier, up to 64 characters.
06 / Async results
GET

/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.

Request
curl "https://nsfwspace.com/wp-json/growtype-art/v1/generator/generation/GENERATION_ID" \
  -H "Authorization: Bearer $NSFWSPACE_API_KEY"
07 / Limits & errors

Design for clear failure.

8generated outputs
per minute, per user
100generated outputs
per day, per user
5active API keys
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.

Ready to connect?

Release your imagination.
Generate anything you want with AI.

Manage API keys