SnapEditDocs
API HomeGet API Key
API Reference

Generate image with Qwen-Image

generate-of-qwen-image

Text-to-image generation using Qwen-Image.

post/v1/images/generates/qwen

Credit cost: 9

Authorization β€” This endpoint requires an API key. Pass it in the api-key header on every request. See the quickstart

Body

NameTypeStatusDescription
prompt
stringRequiredText prompt describing the image to generate.
aspect_ratio
stringOptionalOutput aspect ratio.
1:13:22:34:33:416:99:16
(default: 1:1)

Responses

Image generated successfullySingleImageResponse

NameTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL 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"
Response
{
  "created": 1745827200,
  "data": [
    {
      "url": "https://outputs.snapapi.ai/outputs/abc123.png"
    }
  ]
}

Examples

(1 example)

Prompt

β€œA turquoise river winds through a lush canyon. Thick moss and dense ferns blanket the rocky walls; multiple waterfalls cascade from above, enveloped in mist. At noon, sunlight filters through the dense canopy, dappling the river surface with shimmering light.”

Output

Output