@layer_ai/sdk 1.0.26 → 1.0.29
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/dist/generated/types.d.ts +14 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -419,6 +419,10 @@ export interface EstimateInferencePriceV2Request {
|
|
|
419
419
|
width?: number | null;
|
|
420
420
|
/** Output height in pixels. If not specified, a default resolution based on the model will be applied. */
|
|
421
421
|
height?: number | null;
|
|
422
|
+
/** Derive the output's shape from the input instead of from width/height. Only on models whose capabilities include autoAspectRatio. */
|
|
423
|
+
auto_aspect_ratio?: boolean | null;
|
|
424
|
+
/** The size tier of an auto_aspect_ratio run (e.g. '2K'), one of the model's autoResolutions. Unset, the size follows the input. */
|
|
425
|
+
auto_resolution?: string | null;
|
|
422
426
|
/** Number of outputs (1-16). */
|
|
423
427
|
batch_size?: number;
|
|
424
428
|
/** Number of diffusion steps. */
|
|
@@ -439,6 +443,8 @@ export interface EstimateInferencePriceV2Request {
|
|
|
439
443
|
generate_audio?: boolean | null;
|
|
440
444
|
/** Keep audio from input video. */
|
|
441
445
|
keep_audio?: boolean | null;
|
|
446
|
+
/** Render a quick, low-cost draft instead of the full-quality clip, on models whose capabilities report draft. Complete the draft later with the model named by the generating model's draftCompletionModelId, passing the draft file as a DRAFT_VIDEO input. */
|
|
447
|
+
draft?: boolean | null;
|
|
442
448
|
/** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
|
|
443
449
|
instrumental?: boolean | null;
|
|
444
450
|
/** Compose the clip to repeat with no audible seam, on models whose capabilities report loop. */
|
|
@@ -739,6 +745,10 @@ export interface ExecuteInferenceV2Request {
|
|
|
739
745
|
width?: number | null;
|
|
740
746
|
/** Output height in pixels. If not specified, a default resolution based on the model will be applied. */
|
|
741
747
|
height?: number | null;
|
|
748
|
+
/** Derive the output's shape from the input instead of from width/height. Only on models whose capabilities include autoAspectRatio. */
|
|
749
|
+
auto_aspect_ratio?: boolean | null;
|
|
750
|
+
/** The size tier of an auto_aspect_ratio run (e.g. '2K'), one of the model's autoResolutions. Unset, the size follows the input. */
|
|
751
|
+
auto_resolution?: string | null;
|
|
742
752
|
/** Number of outputs (1-16). */
|
|
743
753
|
batch_size?: number;
|
|
744
754
|
/** Number of diffusion steps. */
|
|
@@ -759,6 +769,8 @@ export interface ExecuteInferenceV2Request {
|
|
|
759
769
|
generate_audio?: boolean | null;
|
|
760
770
|
/** Keep audio from input video. */
|
|
761
771
|
keep_audio?: boolean | null;
|
|
772
|
+
/** Render a quick, low-cost draft instead of the full-quality clip, on models whose capabilities report draft. Complete the draft later with the model named by the generating model's draftCompletionModelId, passing the draft file as a DRAFT_VIDEO input. */
|
|
773
|
+
draft?: boolean | null;
|
|
762
774
|
/** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
|
|
763
775
|
instrumental?: boolean | null;
|
|
764
776
|
/** Compose the clip to repeat with no audible seam, on models whose capabilities report loop. */
|
|
@@ -1170,7 +1182,7 @@ export interface GroupOut {
|
|
|
1170
1182
|
* file through a different provider input — the legacy IP-adapter path — that is its own
|
|
1171
1183
|
* type, because it is not the same slot.
|
|
1172
1184
|
*/
|
|
1173
|
-
export type GuidanceFileType = "init_image" | "reference_image" | "scribble" | "color_sketch" | "pose" | "depth" | "canny" | "softedge_hed" | "segmentation" | "lineart" | "face" | "ip_adapter" | "first_frame" | "last_frame" | "init_video" | "reference_video" | "init_mesh" | "texture_image" | "element_frontal_image" | "element_reference_image" | "element_video" | "init_audio" | "reference_audio";
|
|
1185
|
+
export type GuidanceFileType = "init_image" | "reference_image" | "scribble" | "color_sketch" | "pose" | "depth" | "canny" | "softedge_hed" | "segmentation" | "lineart" | "face" | "ip_adapter" | "first_frame" | "last_frame" | "init_video" | "reference_video" | "draft_video" | "init_mesh" | "texture_image" | "element_frontal_image" | "element_reference_image" | "element_video" | "init_audio" | "reference_audio";
|
|
1174
1186
|
export interface HTTPValidationError {
|
|
1175
1187
|
detail?: Array<ValidationError>;
|
|
1176
1188
|
}
|
|
@@ -1181,7 +1193,7 @@ export interface InferenceReferenceSetInput {
|
|
|
1181
1193
|
weight?: number;
|
|
1182
1194
|
}
|
|
1183
1195
|
export type InferenceStatus = "in_progress" | "complete" | "failed" | "cancelled" | "deleted";
|
|
1184
|
-
export type InferenceUseCase = "text_to_image" | "image_editing" | "multi_angle" | "inpainting" | "reframing" | "split_into_layers" | "text_to_video" | "image_to_video" | "video_editing" | "video_extend" | "insert_video" | "video_subtitle" | "video_lipsync" | "motion_transfer" | "video_object_swap" | "image_to_video_lipsync" | "text_to_3d" | "image_to_3d" | "text_to_world" | "image_to_world" | "remesh" | "retexture" | "uv_unwrap" | "animate" | "rig" | "segment" | "image_segment" | "text_to_speech" | "sound_effects" | "music" | "upscaling" | "video_interpolation" | "denoise_image" | "denoise_video" | "denoise_audio" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on" | "generate_pbr_materials";
|
|
1196
|
+
export type InferenceUseCase = "text_to_image" | "image_editing" | "multi_angle" | "inpainting" | "reframing" | "split_into_layers" | "text_to_video" | "image_to_video" | "video_editing" | "video_extend" | "insert_video" | "video_subtitle" | "video_lipsync" | "motion_transfer" | "video_object_swap" | "video_character_swap" | "image_to_video_lipsync" | "text_to_3d" | "image_to_3d" | "text_to_world" | "image_to_world" | "remesh" | "retexture" | "uv_unwrap" | "animate" | "rig" | "segment" | "image_segment" | "text_to_speech" | "sound_effects" | "music" | "upscaling" | "video_interpolation" | "denoise_image" | "denoise_video" | "denoise_audio" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on" | "generate_pbr_materials" | "complete_draft";
|
|
1185
1197
|
/** Delivered when an inference run reaches a terminal state. */
|
|
1186
1198
|
export interface InferenceWebhookEvent {
|
|
1187
1199
|
/** Unique event id, repeated in the webhook-id header. */
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.29";
|