EN ▾
Get API key

The Flux API Guide for NSFW Content Pipelines

The Flux API provides a straightforward, uncensored text generation endpoint designed specifically for NSFW content pipelines. It returns unrefused text for lawful adult content without requiring complex logins or offering image generation, making it ideal for scripts, captions, and post-processing.

The Flux API Guide for NSFW Content Pipelines

Updated

Key points

  1. The API uses a single uncensored model accessible via standard OpenAI-compatible endpoints.
  2. It supports a 100,000-token context window, and output can run to the end of the window.
  3. Pricing is prepaid via crypto at $0.15/1M input tokens and $0.50/1M output tokens.
  4. Prompts are not used for training, and the trial credit requires no credit card.

What is the Flux API?

The Flux API is a hosted, OpenAI-compatible chat-completions endpoint designed for developers who need reliable text generation without content refusals. It serves a single, open-weight large language model tuned to answer regarding adult, fictional, and controversial topics. Unlike image generators or multimodal platforms, this is strictly a text-in, text-out service. It fits into pipelines where you need to generate scripts, write captions, or process raw text data.

The base URL is https://api.fluxuncensored.top/v1. You can use the official OpenAI SDKs or any compatible client by simply updating the base_url and API key. The model identifier is uncensored. It is not GPT, Claude, or any other vendor's model; it runs on our own servers. The API does not offer embeddings, image generation, audio, or video. It is a pure text tool for your NSFW content pipelines.

Why Use an Uncensored Model for Text?

Standard LLMs often refuse lawful adult content, even in fictional contexts. This forces you to work around refusals or pay for premium tiers that still filter content. The Flux API removes these barriers. It is tuned to answer without content refusals for lawful adult use. This means your pipeline processes text consistently without unexpected stops.

  • Consistent Output: No more filtering logic to handle refused prompts.
  • Fictional Freedom: Generate adult themes in stories or scripts without hitting a wall.
  • Security Research: Use the model for analyzing controversial or mature datasets.

The only hard limit is that sexual content involving minors is always refused. This is a standard safety block. Everything else is fair game. This reliability is critical for automated pipelines where a single refusal can break the flow.

Setting Up Your Flux API Client

Getting started requires an API key. You can sign up using Continue with Google or by providing an email and password. The key is shown immediately after creation. Each account has one active key; generating a new one replaces the old. There is no phone number requirement. You also get $0.50 of trial credit valid for 7 days, no card needed. Claim this credit with one click on your API key page.

  • Base URL: https://api.fluxuncensored.top/v1
  • Model: uncensored
  • Auth: Bearer token in the Authorization header

Use the standard POST /v1/chat/completions endpoint. Send your messages in the standard OpenAI format. The API respects standard parameters like temperature, top_p, and stop. This makes integration straightforward for developers already familiar with OpenAI's structure.

Configuring Parameters for NSFW Output

To get the best results for NSFW content, adjust the parameters to match your desired creativity. The temperature controls randomness. Higher values produce more varied and creative text, which is useful for fictional stories. Lower values are better for consistent, factual text extraction.

  • temperature: Adjust for creativity vs. consistency.
  • top_p: Controls the nucleus sampling for diverse outputs.
  • stop: Define sequences to end generation early.
  • max_tokens: Set the limit for output length.

The context window is 100,000 tokens total. There is no separate output cap. If you do not set max_tokens, the response can run to the end of the window. Use JSON mode (response_format: {"type": "json_object"}) if you need structured data for your pipeline.

Handling Streaming Responses

The API supports streaming via Server-Sent Events (SSE). This is essential for real-time applications or when generating long texts. Each chunk contains a piece of the generated text. The final chunk includes the token usage statistics.

Streaming allows you to display text to users as it is generated. It also reduces perceived latency. Use the standard OpenAI SDK streaming methods. The choices[0].delta.content field holds the text fragment. Monitor the usage field in the last chunk for billing details.

Integrating Flux API with Image Generators

Many NSFW pipelines combine text and image generation. Use the Flux API for the text steps. Generate prompts, captions, or tags for image models. The API handles the text processing. It does not generate images itself.

For example, you can send a character description to the Flux API. It returns a detailed prompt optimized for image generators. This prompt is then sent to an image model. The text API ensures the prompt is uncensored and detailed. This separation of concerns keeps your pipeline modular. Use the Flux API for prompt writing, script generation, or post-processing text data.

Privacy and Data Usage

Privacy is a core feature. You only need an email to sign up. Your prompts are not used for training. This means your data stays yours. There is no phone number requirement. The API does not sell your data or use it to improve public models.

The trial credit is $0.50 valid for 7 days. Claim this credit with one click on your API key page. No card is needed. This allows you to test the API without commitment. For ongoing use, top up with crypto. USDT (TRC20) or USDC (Base) are accepted. Payments are processed securely. Your data is private and not used for training.

Pricing and Cost Optimization

The pricing is straightforward. $0.15 per 1 million input tokens. $0.50 per 1 million output tokens. Prepaid credit is charged by real token usage. Errors and refusals are free. There is no monthly fee. Credit never expires.

  • Input: $0.15 / 1M tokens
  • Output: $0.50 / 1M tokens
  • Top-up: Crypto only, $20-$500
  • Bonus: +5% over $50, +10% over $100, and +15% over $200

Use streaming to optimize costs. You can stop generation early if the content is sufficient. This saves output tokens. Use JSON mode to get structured data in one request. Avoid multiple retries for formatting.

Troubleshooting Common Issues

If you encounter issues, check the following. Ensure your API key is correct. The base URL must be https://api.fluxuncensored.top/v1. Check your token usage. If you hit the rate limit, you are making too many requests.

  • Rate Limits: 300 requests per minute, 8 concurrent requests per key.
  • Body Size: Max 8 MB per request.
  • Errors: Check the response body for details.

If you double-charged, use the Support page. Credit is not refunded but never expires. Use the trial credit to test before buying. If you need a new key, generate one and it replaces the old. This is a one-key-per-account system.

Questions and answers

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. If you do not set max_tokens, the response can run to the end of the window.

How do I top up my credit?

You can top up using crypto only. Accepted currencies are USDT (TRC20) and USDC (Base). You can add any whole amount from $20 to $500. You receive a 5% bonus for deposits over $50 and a 10% bonus for deposits over $100.

Is there a trial credit?

Yes, new users get $0.50 of trial credit, one per person. It is valid for 7 days. Claim this credit with one click on your API key page. No credit card is needed to sign up and get the trial. This allows you to test the API before purchasing credit.

What content is refused?

The only hard limit is sexual content involving minors. All other lawful adult, fictional, and controversial content is allowed. The model is tuned to answer without refusals for these topics.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key