Назад к моделям
Активный APIQwen Image
Активный APIQwen ImageQwen Image 2512
qwen-image-2512Cost-efficient image generation route for production batches, concept exploration, and image-editing pipelines.
Обзор модели
- Эндпоинт
- /api/v1/images/generations
- Стоимость в кредитах
- 5 credits / image
- Обычная задержка
- 15-45 sec
- Вход и выход
- Text or images → PNG, JPEG, WebP
Возможности
- Low per-image cost
- Text-to-image
- Multi-image editing
- Flexible pixel sizes
Параметры запроса
| Параметр | Тип | Обязательность | Описание |
|---|---|---|---|
| model | string | Обязательно | Model identifier. По умолчанию: qwen-image-2512 |
| prompt | string | Обязательно | Generation or edit prompt. |
| images | string[] | Необязательно | Source image URLs for editing. |
| size | string | Необязательно | Pixel dimensions using width*height. По умолчанию: 1024*1024 |
| output_format | png | jpeg | webp | Необязательно | Generated file format. По умолчанию: jpeg |
Пример запроса
curl https://qwenapi.org/api/v1/images/generations \
-H "Authorization: Bearer $QWEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-2512",
"prompt": "Minimal packaging design for a botanical sparkling water brand",
"size": "1024*1024",
"output_format": "jpeg"
}'Генерация асинхронна. Опросите GET /api/v1/tasks/ с тем же Bearer-ключом.