@layer_ai/sdk 1.0.29 → 1.0.35
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 -4
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -95,6 +95,8 @@ export interface BaseModelCapabilitiesREST {
|
|
|
95
95
|
rigging?: boolean;
|
|
96
96
|
animation?: boolean;
|
|
97
97
|
camera_transform?: boolean;
|
|
98
|
+
/** Renders a quick, low-cost draft when `draft` is set, to be completed at full quality later by its completion model (see the forge instructions). */
|
|
99
|
+
draft?: boolean;
|
|
98
100
|
camera_trajectory?: boolean;
|
|
99
101
|
voice_changer?: boolean;
|
|
100
102
|
audio_isolation?: boolean;
|
|
@@ -443,7 +445,7 @@ export interface EstimateInferencePriceV2Request {
|
|
|
443
445
|
generate_audio?: boolean | null;
|
|
444
446
|
/** Keep audio from input video. */
|
|
445
447
|
keep_audio?: boolean | null;
|
|
446
|
-
/** Render a quick, low-cost draft instead of the full-quality
|
|
448
|
+
/** Render a quick, low-cost draft instead of the full-quality output, 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 (DRAFT_WORLD for a world). */
|
|
447
449
|
draft?: boolean | null;
|
|
448
450
|
/** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
|
|
449
451
|
instrumental?: boolean | null;
|
|
@@ -541,6 +543,10 @@ export interface EstimateInferencePriceV2Request {
|
|
|
541
543
|
camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
|
|
542
544
|
/** Relight the init image: one or more orbit lights, each placed by `rotation` (`yaw` around the subject and `pitch` above or below it, in degrees) with an `intensity` and a `color_hex`. Honored by the models whose capabilities report `scene_lighting`. */
|
|
543
545
|
scene_lighting?: SceneLightingConfig | null;
|
|
546
|
+
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
547
|
+
expression?: string | null;
|
|
548
|
+
/** The language a dub speaks, as one of the ISO 639-1 codes the model's capabilities list under `dub_languages`. */
|
|
549
|
+
target_language?: string | null;
|
|
544
550
|
/** Regenerate stretches of the init audio: each section is a window from `start_seconds` to `end_seconds`, measured from the clip's `anchor` (its start by default), that the prompt rewrites while the rest is kept. Honored by the audio models listed for the `inpainting` use case. */
|
|
545
551
|
audio_sections?: Array<AudioEditSection>;
|
|
546
552
|
/** Replace a span of the init video with a generated scene: the source cuts at `start_seconds` and picks up again at `end_seconds`, both from the clip's start, while `duration_seconds` sets the new scene's length. Required by the video models listed for the `insert_video` use case. */
|
|
@@ -769,7 +775,7 @@ export interface ExecuteInferenceV2Request {
|
|
|
769
775
|
generate_audio?: boolean | null;
|
|
770
776
|
/** Keep audio from input video. */
|
|
771
777
|
keep_audio?: boolean | null;
|
|
772
|
-
/** Render a quick, low-cost draft instead of the full-quality
|
|
778
|
+
/** Render a quick, low-cost draft instead of the full-quality output, 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 (DRAFT_WORLD for a world). */
|
|
773
779
|
draft?: boolean | null;
|
|
774
780
|
/** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
|
|
775
781
|
instrumental?: boolean | null;
|
|
@@ -867,6 +873,10 @@ export interface ExecuteInferenceV2Request {
|
|
|
867
873
|
camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
|
|
868
874
|
/** Relight the init image: one or more orbit lights, each placed by `rotation` (`yaw` around the subject and `pitch` above or below it, in degrees) with an `intensity` and a `color_hex`. Honored by the models whose capabilities report `scene_lighting`. */
|
|
869
875
|
scene_lighting?: SceneLightingConfig | null;
|
|
876
|
+
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
877
|
+
expression?: string | null;
|
|
878
|
+
/** The language a dub speaks, as one of the ISO 639-1 codes the model's capabilities list under `dub_languages`. */
|
|
879
|
+
target_language?: string | null;
|
|
870
880
|
/** Regenerate stretches of the init audio: each section is a window from `start_seconds` to `end_seconds`, measured from the clip's `anchor` (its start by default), that the prompt rewrites while the rest is kept. Honored by the audio models listed for the `inpainting` use case. */
|
|
871
881
|
audio_sections?: Array<AudioEditSection>;
|
|
872
882
|
/** Replace a span of the init video with a generated scene: the source cuts at `start_seconds` and picks up again at `end_seconds`, both from the clip's start, while `duration_seconds` sets the new scene's length. Required by the video models listed for the `insert_video` use case. */
|
|
@@ -1182,7 +1192,7 @@ export interface GroupOut {
|
|
|
1182
1192
|
* file through a different provider input — the legacy IP-adapter path — that is its own
|
|
1183
1193
|
* type, because it is not the same slot.
|
|
1184
1194
|
*/
|
|
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";
|
|
1195
|
+
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" | "draft_world" | "init_audio" | "reference_audio";
|
|
1186
1196
|
export interface HTTPValidationError {
|
|
1187
1197
|
detail?: Array<ValidationError>;
|
|
1188
1198
|
}
|
|
@@ -1193,7 +1203,7 @@ export interface InferenceReferenceSetInput {
|
|
|
1193
1203
|
weight?: number;
|
|
1194
1204
|
}
|
|
1195
1205
|
export type InferenceStatus = "in_progress" | "complete" | "failed" | "cancelled" | "deleted";
|
|
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";
|
|
1206
|
+
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" | "relight_video" | "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" | "audio_separation" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on" | "restyle" | "pixelate" | "colorize" | "change_expression" | "erase_object" | "edit_text" | "dub_video" | "generate_pbr_materials" | "complete_draft";
|
|
1197
1207
|
/** Delivered when an inference run reaches a terminal state. */
|
|
1198
1208
|
export interface InferenceWebhookEvent {
|
|
1199
1209
|
/** 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.35";
|