NSFW API

Image and video generation over one async API. Pay per call.

One key, one balance and one request format across models. Every model lists its own content rules, so you know what you are building on.

  • Billed in USD, down to a thousandth of a dollar
  • Top up with USDT or USDC, from $5
  • Failed tasks are refunded automatically
POST /api/v1/tasksExample
curl https://nsfwapi.io/api/v1/tasks \
  -H "Authorization: Bearer $NSFWAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "nano-banana-2.1",
       "input": {"prompt": "a lighthouse at dusk"}}'
{
  "id": "task_…",
  "model": "nano-banana-2.1",
  "status": "waiting",
  "cost": "0.025",
  "output": null
}

One request, five states

Generation takes seconds to minutes, so every call returns a task right away. Check on it by polling, or have us call you when it finishes.

  • waitingaccepted, charged
  • queuingsent to a model
  • generatingin progress
  • successfiles ready
  • failrefunded in full

Polling or callbacks. Add a callback_url and we post the result to it, signed with your secret. Poll GET /tasks/{id} if you prefer.

Safe to retry. Send an Idempotency-Key and a repeated request returns the original task instead of charging twice.

Files stay on our CDN. Results are served from cdn.nsfwapi.io and kept for at least 14 days.

Models and prices

Read straight from the model catalog. Every price is a multiple of $0.001, and the price is fixed when you create the task.

ModelTypePriceContent rules
nano-banana-2.1
Text-to-image and image editing. Pass image_urls (up to 10 public https URLs) to edit or combine reference images.
Image
1K0.025
2K0.038
4K0.057
USD per task
Filtered
Rejected requests are refunded.
Try it

More models are listed here as they go live, each with its own price and content rules.

How billing works

A prepaid balance in USD
Top up with USDT or USDC, from $5. Each call is charged from the balance when you create it. There is no subscription and nothing renews.
The price is locked at creation
The price you see in the response is the price you paid. A later price change never touches a task that already exists.
Failures cost nothing
If a task fails or times out, the full amount goes back to your balance automatically, once. You can see the charge and the refund side by side in your usage log.
Limits you control
Give each API key its own spending limit, so a leaked or buggy key can only spend what you allowed.

Questions

What content can I generate?

Each model has its own content rules, shown in the model table. A model marked Filtered rejects some requests, and a rejected task is refunded in full. We list new models with their rules as they go live. Illegal content, and anything involving minors or a real person without their consent, is never allowed on any model. See the Terms.

How long are results kept?

Result files are served from our CDN and kept for at least 14 days. Download what you need to keep.

Can I get a refund for unused balance?

Failed tasks are refunded to your balance automatically. For unused balance, email support and we will look at it case by case.

How long does a top-up take?

Your balance is credited once the network confirms the payment, usually within a few minutes. You can follow the order in Billing.

How many tasks can I run at once?

Up to 20 unfinished tasks per account by default. Beyond that the API answers with a rate-limit error instead of queuing silently.

Who do I contact?

Email [email protected] and include the task or order ID.

Create a key and send your first task.

Get an API key