generate-of-qwen-imageText-to-image generation using Qwen-Image.
/v1/images/generates/qwenCredit cost: 9
Authorization β This endpoint requires an API key. Pass it in the api-key header on every request. See the quickstart
| Name | Type | Status | Description |
|---|---|---|---|
prompt | string | Required | Text prompt describing the image to generate. |
aspect_ratio | string | Optional | Output aspect ratio. 1:13:22:34:33:416:99:16 (default: 1:1) |
Image generated successfullySingleImageResponse
| Name | Type | Description |
|---|---|---|
created | integer | Unix timestamp of when the response was created |
data | object[] | |
url | string | URL to download the result image |
curl -X POST "https://api.snapapi.ai/v1/images/generates/qwen" \
-H "api-key: YOUR_API_KEY" \
-F "prompt=value" \
-F "aspect_ratio=1:1"{
"created": 1745827200,
"data": [
{
"url": "https://outputs.snapapi.ai/outputs/abc123.png"
}
]
}