Qwen Image Generator API
The Qwen Image Generator API produces high-quality AI images from text prompts using the latest Qwen image generation model. Create stunning visuals with precise control over image dimensions and composition.
Quick Start
Generate your first AI image in 30 seconds
Get Your API Key
Sign in to your account to get your API key and see it automatically filled in all code examples.
Don't have an account? Sign up for free
import requests
response = requests.post(
"https://netwrck.com/fal",
json={
"api_key": "YOUR_API_KEY",
"model_name": "fal-ai/qwen-image-2512",
"prompt": "A futuristic city skyline at dusk with neon lights reflecting off glass towers"
}
)
result = response.json()
print(f"Generated image: {result['images'][0]['url']}")
fetch('https://netwrck.com/fal', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
api_key: 'YOUR_API_KEY',
model_name: 'fal-ai/qwen-image-2512',
prompt: 'A futuristic city skyline at dusk with neon lights reflecting off glass towers'
})
})
.then(res => res.json())
.then(result => {
console.log('Generated image:', result.images[0].url);
})
.catch(error => console.error('Error:', error));
curl -X POST https://netwrck.com/fal \
-H 'Content-Type: application/json' \
-d '{
"api_key": "YOUR_API_KEY",
"model_name": "fal-ai/qwen-image-2512",
"prompt": "A futuristic city skyline at dusk with neon lights reflecting off glass towers"
}'
Interactive API Tester
Pricing & Credits
Cost Per Image
$0.20 USD
20 credits per successful generation
Billing Policy
Success: Charged 20 credits
Failed: No charge
Only pay for successful generations
API Reference
POST /fal
Generate AI images from text prompts with Qwen
Request Format
Send a POST request with a JSON body containing these parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Required | Your API key for authentication. |
| model_name | string | Required | Must be "fal-ai/qwen-image-2512". |
| prompt | string | Required | Text description of the image you want to generate. |
| image_size | object | Optional | Image dimensions as an object with width and height integer fields. Example: {"width": 1024, "height": 768}. |
Response Examples
Success Response (200 OK)
{
"images": [
{
"url": "https://fal.media/files/example/generated-image.png"
}
]
}
Error Responses
401 Unauthorized
{
"error": "Invalid API key",
"status": 401
}
402 Payment Required
{
"error": "Insufficient credits",
"status": 402
}
Netwrck