samsar-js 0.48.14 → 0.48.15
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -217,7 +217,9 @@ const replaced = await samsar.replaceBrandingFromImage({
|
|
|
217
217
|
// Extend image set
|
|
218
218
|
const images = await samsar.extendImageList({
|
|
219
219
|
image_urls: ['https://example.com/extra.jpg'],
|
|
220
|
+
prompt: 'Create a cinematic travel header banner',
|
|
220
221
|
num_images: 4,
|
|
222
|
+
aspect_ratio: '16:9',
|
|
221
223
|
});
|
|
222
224
|
|
|
223
225
|
// Create a reusable receipt template from one sample receipt image (free endpoint)
|
package/dist/index.d.ts
CHANGED
|
@@ -688,6 +688,7 @@ export interface ExtendImageListRequest {
|
|
|
688
688
|
num_images: number;
|
|
689
689
|
prompt?: string;
|
|
690
690
|
metadata?: Record<string, unknown>;
|
|
691
|
+
aspect_ratio?: string;
|
|
691
692
|
}
|
|
692
693
|
export interface ExtendImageListResponse {
|
|
693
694
|
status?: string;
|
|
@@ -700,6 +701,7 @@ export interface ExtendImageListResponse {
|
|
|
700
701
|
metadata?: Record<string, unknown>;
|
|
701
702
|
prompt?: string;
|
|
702
703
|
num_images?: number;
|
|
704
|
+
aspect_ratio?: string;
|
|
703
705
|
userId?: string;
|
|
704
706
|
creditsCharged?: number;
|
|
705
707
|
remainingCredits?: number;
|