API Reference
Generate image with Qwen-Image
Text-to-image generation using Qwen-Image.
Model:
generate-of-qwen-imageCredit:9
post
/v1/images/generates/qwenAuthorization — This endpoint requires an API key. Pass it in the api-key header on every request. Learn more
Parameters
| 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) |
Responses
Image generated successfullySingleImageResponse
| Field | 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.snapedit.app/v1/images/generates/qwen" \
-H "api-key: YOUR_API_KEY" \
-F "prompt=value" \
-F "aspect_ratio=1:1"Response
{
"created": 1745827200,
"data": [
{
"url": "https://outputs.snapedit.app/outputs/abc123.png"
}
]
}