tokenstore

Batch-Generating NSFW Image Sets Over the API

Generate whole uncensored image sets programmatically — parallel tasks, callbacks, per-key rate limits, and flat $0.05 pricing on the Nureta image API.

2 min read

One image is a demo; a set is a product. When you need dozens or hundreds of uncensored images — a gallery, a character set, prompt A/B tests — you drive the image API in a loop instead of clicking. Flat $0.05 pricing and automatic refunds make bulk generation predictable to the cent.

The basic batch loop

Each image is an independent POST /api/v3/images/generations/tasks. Fire them, then either poll each id or take callbacks. Here is the create step in a shell loop over prompts:

for prompt in "$@"; do
  curl -s -X POST "$TOKENSTORE_URL/api/v3/images/generations/tasks" \
    -H "Authorization: Bearer sk-..." -H "Content-Type: application/json" \
    -d "{\"model\":\"seahorse-image\",\"size\":\"2K\",
         \"content\":[{\"type\":\"text\",\"text\":\"$prompt\"}],
         \"callback_url\":\"https://you.example/hook\"}"
done

Collect results with callbacks

For a large batch, do not sit on polling loops. Pass a callback_url and each finished image is POSTed to you — the same object a GET returns, carrying content.image_url. Delivery is at-least-once, retried up to five times; dedupe by task id.

Respect the rate limit

Every key runs at 10 requests/second by default, adjustable 1–100 on the keys page. Task creation and polling both count. Exceed it and you get a clean 429 RateLimitExceeded with RateLimit headers — back off and retry rather than hammering.

Cost is trivially predictable

  • Flat $0.05 per image regardless of size (2K or 4K) — 100 images is $5.00, period.
  • Failed images refund automatically, so a bad batch does not cost you.
  • No per-pixel or per-second billing to model — count images, multiply by $0.05.

Keep a set on-model

Reuse the same reference images across every task in the batch to hold one identity across the whole set — see reference images for consistent faces. That is what turns a pile of renders into a coherent gallery.

Where to go next

New to the endpoint? Start with the NSFW image API quickstart. Doing video too? The same automation shape is in NSFW video API automation. Field reference: image API docs and your API key.

Get an API key
Batch-Generating NSFW Image Sets Over the API — Nureta Guides