Integrating Qwen Image API: A Step-by-Step SDK Checklist
Many developers confuse our service with an image generator because of the brand name. This guide clarifies that we provide a text-based chat API, not image generation. You will learn how to connect, configure, and test the service effectively.

Understanding the API Scope and Model
Before writing code, it is essential to understand what model powers this service. We host one uncensored open-weight text model identified by the string uncensored. This means the model does not refuse lawful adult, fictional, security-research, or controversial topics. However, it does enforce a hard limit on sexual content involving minors. Requests violating this rule are refused, but other mature themes are permitted.
Unlike many competitors, we do not offer embeddings, image generation, audio processing, video creation, or OCR. The API is strictly text in and text out. If you need to generate images, you must use a separate tool. This service is designed for developers who need a reliable, unfiltered text engine for chatbots, roleplay, or content generation workflows.
The base URL for all requests is https://api.qwenimageapi.cc/v1. This endpoint handles all standard chat completion requests. You do not need to route to different domains for different features. The simplicity of a single base URL reduces configuration errors and makes integration straightforward for any SDK that supports OpenAI-compatible endpoints.
When integrating, ensure your client library is configured to point to this base URL. The model identifier uncensored must be sent in the request payload. This tells the server which model to use for processing your prompt. Using the wrong model ID may result in errors or unexpected behavior, so always verify the identifier in your code.
Authentication and Key Management
Authentication is handled via API keys. You can sign up using Google or an email and password combination. Upon signup, your API key is shown immediately, so you must copy it securely. The key is required for all requests to the API. If you lose your key, you may need to generate a new one, depending on your account settings.
Errors related to authentication include 401 for an invalid key and 402 for insufficient credit. If you receive a 401 error, check that your key is correct and not expired. If you see a 402 error, it means you have no prepaid credit left. You can add credit using crypto, as detailed in the payment section.
The rate limit is 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. This limit is generous for most use cases, but if you are building a high-throughput application, you should implement exponential backoff in your SDK. This prevents overwhelming the server and ensures smooth operation during peak usage.
Keep your API key secure and do not expose it in public repositories. Use environment variables or secure vaults to store the key. Since the key grants access to your prepaid credit, treat it like a password. Regularly monitor your usage to ensure you have sufficient credits for your projects.
Endpoints and Request Structure
Our API supports three main endpoints: POST /v1/chat/completions, POST /v1/responses, and GET /v1/models. The chat completions endpoint is the primary interface for sending prompts and receiving text responses. You send a JSON payload containing the model ID, messages, and optional parameters.
The responses endpoint offers an alternative format for handling chat interactions. It may provide different streaming behaviors or response structures depending on your SDK. The models endpoint allows you to retrieve information about available models, though we only host one. This endpoint is useful for dynamic configuration in your application.
When constructing requests, include the model field set to uncensored. You can also specify parameters like temperature, top_p, stop, and seed to control the response behavior. Streaming is supported over Server-Sent Events (SSE), allowing you to receive usage data in the last chunk.
Function calling and JSON mode are also supported. This enables you to extract structured data from the model's responses. Use JSON mode when you need the output to be valid JSON. This is particularly useful for building agents or applications that require structured data processing.
Token Pricing and Credit Management
Pricing is straightforward and based on token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Credit is prepaid and charged by real token usage. Errors and refusals are free, so you only pay for successful completions. There is no monthly subscription fee, and your paid credit never expires.
To add credit, you must use cryptocurrency. We accept USDT on the TRC20 network or USDC on the Base network. You can top up any whole amount from $20 to $500. If you top up $50 or more, you receive a bonus credit ranging from 5% to 15%. This bonus is a great way to maximize your budget.
Each new account starts with $0.50 of trial credit, requiring no credit card. This allows you to test the API without immediate financial commitment. However, the trial credit is limited, so you will need to top up for sustained use. Keep an eye on your balance to avoid service interruptions.
Since pricing is per token, you should monitor your token consumption. Use the streaming feature to track usage in real-time. This helps you estimate costs accurately and avoid unexpected charges. The absence of a subscription model means you only pay for what you use, making it cost-effective for variable workloads.
SDK Integration and Testing
Integrating the API with your preferred SDK is simple due to its OpenAI compatibility. Most SDKs support the standard chat completions endpoint. Configure your SDK with the base URL and your API key. Then, send requests using the uncensored model ID.
Test your integration with a simple prompt to ensure the connection is working. Check that you receive a valid response and that the model behaves as expected. Use the streaming feature to verify that SSE works correctly in your environment. This is important for real-time applications.
Implement error handling for 401, 402, and 429 errors. Retry logic should be implemented for rate limits and temporary failures. Use exponential backoff to avoid overwhelming the server. This ensures your application remains reliable under varying load conditions.
Explore the available parameters like temperature and top_p to tune the model's behavior. Lower temperatures produce more deterministic outputs, while higher temperatures increase creativity. Adjust these based on your use case. Function calling and JSON mode should also be tested to ensure they work as expected in your SDK.
When This API Is Not the Right Choice
Our API is not suitable for developers who need image generation, embeddings, or audio processing. If you require a model that can generate images from text prompts, you should look for a dedicated image generation API. Similarly, if you need semantic search or vector embeddings, this text-only API will not meet your needs.
Developers looking for a free unlimited tier should also consider other options. Our service requires prepaid credit, and while we offer a small trial, sustained use requires payment. If you need a completely free tier with no credit card, this may not be the best fit.
Additionally, if you need on-premises deployment or specific certifications like SOC2 or HIPAA, our hosted service may not align with your compliance requirements. We do not offer on-prem deployment, so all data is processed on our servers. Check the vendor documentation for current prices and limits if you need more specialized features.
Finally, if you need model routing or fine-tuning capabilities, this API does not support them. We host a single uncensored model, so you cannot switch between different models or fine-tune the model for your specific dataset. For these advanced features, consider a more comprehensive API provider.
Addressing Community Questions on Reddit
Threads on r/AIJailbreak and r/DesiAdultfusion often discuss uncensored image generation. Users frequently ask about tools that can handle NSFW content without strict filters. While our API is text-based, it powers the underlying language model that can generate prompts for image generators. Users appreciate the lack of refusal for adult themes, which is a key feature for creative projects.
On r/aiArt, developers ask about mobile versions and ease of use. Our API is accessible via any device with an internet connection, as it is a standard REST API. Developers can build mobile apps that call our API to generate text, which can then be used to drive image generation tools. This flexibility is a major advantage for mobile developers.
Users on r/AI_Tools_Land also discuss the need for free or low-cost options. Our trial credit and prepaid model offer flexibility for those who do not want to commit to a subscription. The crypto-only payment method appeals to users who value privacy and decentralization. This aligns with the ethos of many indie developers and AI enthusiasts.
Overall, the community values the uncensored nature of the model and the ease of integration. By addressing these common questions, we provide clarity on how our API fits into the broader ecosystem of AI tools. Developers can confidently integrate our service knowing it meets their core needs for unfiltered text generation.
Frequently asked questions
Does the API generate images?
No, the API is text-only. It returns text responses based on your prompts. If you need image generation, you must use a separate tool or API that accepts text prompts.
What cryptocurrencies are accepted for top-ups?
We accept USDT on the TRC20 network and USDC on the Base network. You can top up any whole amount from $20 to $500.
Is there a free trial?
Yes, every new account receives $0.50 of trial credit. No credit card is required to start. This allows you to test the API before adding credit.
What happens if I exceed the rate limit?
You will receive a 429 error. The rate limit is 300 requests per minute per key. Implement exponential backoff in your SDK to handle this gracefully.
More guides
- Qwen3.5 Roleplay with an Uncensored Text API
- Qwen API Key Price: What You Pay Per Token
- Qwen Image API: Is This an Image Generator?
- Image Generation API: Choosing the Right Text API for Your Workflow
- Qwen Image API Cost Estimator: Budgeting Your Text-to-Image Workflow
- Troubleshooting Qwen Image API: Handling Latency and Output Formats