@sogni-ai/sogni-client-wrapper 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -238,7 +238,7 @@ const result = await client.createImageEditProject({
238
238
  contextImages: [referenceImage],
239
239
  numberOfMedia: 1,
240
240
  steps: 20,
241
- guidance: 7.5,
241
+ guidance: 4.0,
242
242
  });
243
243
 
244
244
  console.log('Edited image URLs:', result.imageUrls);
@@ -259,8 +259,32 @@ const result = await client.createImageEditProject({
259
259
  contextImages: [image1, image2, image3],
260
260
  numberOfMedia: 1,
261
261
  steps: 4, // Optimized for lightning variant
262
- guidance: 3.5,
262
+ guidance: 1.0,
263
+ });
264
+ ```
265
+
266
+ ### Multiple Angles LoRA (Qwen Image Edit)
267
+
268
+ ```typescript
269
+ import { readFileSync } from 'fs';
270
+
271
+ const referenceImage = readFileSync('./subject.png');
272
+
273
+ const result = await client.createImageEditProject({
274
+ modelId: 'qwen_image_edit_2511_fp8_lightning',
275
+ positivePrompt: '<sks> front view eye-level shot medium shot',
276
+ contextImages: [referenceImage],
277
+ numberOfMedia: 1,
278
+ steps: 4,
279
+ guidance: 1.0,
280
+ sampler: 'euler',
281
+ scheduler: 'simple',
282
+ outputFormat: 'jpg',
283
+ loras: ['multiple_angles'],
284
+ loraStrengths: [0.9],
263
285
  });
286
+
287
+ console.log('Generated images:', result.imageUrls);
264
288
  ```
265
289
 
266
290
  ### Context Image Types
@@ -672,9 +672,9 @@ class SogniClientWrapper extends events_1.EventEmitter {
672
672
  getRecommendedSettings(modelId) {
673
673
  if (modelId.includes('qwen_image_edit')) {
674
674
  if (modelId.includes('lightning')) {
675
- return { steps: 4, guidance: 3.5 };
675
+ return { steps: 4, guidance: 1.0 };
676
676
  }
677
- return { steps: 20, guidance: 7.5 };
677
+ return { steps: 20, guidance: 4.0 };
678
678
  }
679
679
  if (modelId.includes('flux')) {
680
680
  return { steps: 4, guidance: 3.5 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sogni-ai/sogni-client-wrapper",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Enhanced Node.js wrapper for Sogni AI SDK with n8n compatibility and improved developer experience",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "repository": {
30
30
  "type": "git",
31
- "url": "https://github.com/sogni-ai/sogni-client-wrapper.git"
31
+ "url": "git+https://github.com/sogni-ai/sogni-client-wrapper.git"
32
32
  },
33
33
  "bugs": {
34
34
  "url": "https://github.com/sogni-ai/sogni-client-wrapper/issues"