Our developer API allows seamless integration of NSFW AI image generation into your applications. Enjoy high-quality outputs with low latency.
Our API is designed for developers with clear documentation and sample code to get you started quickly. Supports RESTful endpoints for seamless integration into any project.
Handle high volumes of requests with our scalable infrastructure. Perfect for apps requiring bulk NSFW AI image generation without compromising speed or quality.
Use the same credits for both the studio and API, giving you flexibility in how you generate NSFW AI images. Manage everything from one dashboard.
Authenticate with a Bearer API key. Each successful image costs 1 credit from your plan or pack.
Must be logged in (same account as Studio).
Key appears once here after creation.
curl -X POST https://nsfwpicturemaker.com/api/v1/images/generate \
-H "Authorization: Bearer npm_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "confident adult woman in silk robe, cinematic lamplight",
"width": 768,
"height": 1024,
"response_format": "b64_json"
}'
{
"id": "uuid",
"image_url": "/api/outputs/uuid.jpg",
"b64_json": "...optional...",
"credits_used": 1,
"credits_remaining": 149,
"provider": "together",
"width": 768,
"height": 1024
}
401 — missing/invalid key402 — insufficient credits502 — upstream generation failure (credits not spent)