Sparkpix Image Edit
ID модели: sparkpix-image-edit.
Редактирование и слияние по тексту. Нужен хотя бы один исходник. Оплата — за каждое изображение в ответе.
Основной вызов — POST {SITE.apiUrl}/v1/images/edits (JSON или multipart/form-data), как у других моделей. Альтернатива — тот же POST /v1/images/generations с image_input, если удобнее один эндпоинт.
В prompt можно ссылаться на «image 1», «image 2» — в порядке картинок в запросе. Первый кадр — основной.
Генерация с нуля — sparkpix-image. Маски нет.
Параметры
| Поле | Обязательно | Значения |
|---|---|---|
model |
да | sparkpix-image-edit |
prompt |
да | инструкция |
images / image / image_input |
да | 1–20 картинок (HTTPS, data URL, base64, file-…). Синонимы: input_references, inputImages, input_images |
aspect_ratio |
нет | match_input_image (по умолчанию), 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 |
turbo |
нет | true (по умолчанию) / false — для сложных правок лучше false |
seed |
нет | целое |
Не передавайте: mask, n, size, resolution, quality, background, output_format.
Пример (edits)
curl https://api.lowrouter.ru/v1/images/edits \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sparkpix-image-edit",
"prompt": "Замени фон у image 1 на ночной город",
"images": [
"https://example.com/portrait.jpg",
"https://example.com/city-night.jpg"
],
"aspect_ratio": "match_input_image",
"turbo": false
}'Пример (generations + image_input)
curl https://api.lowrouter.ru/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sparkpix-image-edit",
"prompt": "Сделай плащ на image 1 красным",
"image_input": ["https://example.com/hero.png"]
}'