@layer_ai/sdk 1.0.26 → 1.0.33

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.
@@ -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;
@@ -419,6 +421,10 @@ export interface EstimateInferencePriceV2Request {
419
421
  width?: number | null;
420
422
  /** Output height in pixels. If not specified, a default resolution based on the model will be applied. */
421
423
  height?: number | null;
424
+ /** Derive the output's shape from the input instead of from width/height. Only on models whose capabilities include autoAspectRatio. */
425
+ auto_aspect_ratio?: boolean | null;
426
+ /** The size tier of an auto_aspect_ratio run (e.g. '2K'), one of the model's autoResolutions. Unset, the size follows the input. */
427
+ auto_resolution?: string | null;
422
428
  /** Number of outputs (1-16). */
423
429
  batch_size?: number;
424
430
  /** Number of diffusion steps. */
@@ -439,6 +445,8 @@ export interface EstimateInferencePriceV2Request {
439
445
  generate_audio?: boolean | null;
440
446
  /** Keep audio from input video. */
441
447
  keep_audio?: boolean | null;
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). */
449
+ draft?: boolean | null;
442
450
  /** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
443
451
  instrumental?: boolean | null;
444
452
  /** Compose the clip to repeat with no audible seam, on models whose capabilities report loop. */
@@ -535,6 +543,10 @@ export interface EstimateInferencePriceV2Request {
535
543
  camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
536
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`. */
537
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;
538
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. */
539
551
  audio_sections?: Array<AudioEditSection>;
540
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. */
@@ -739,6 +751,10 @@ export interface ExecuteInferenceV2Request {
739
751
  width?: number | null;
740
752
  /** Output height in pixels. If not specified, a default resolution based on the model will be applied. */
741
753
  height?: number | null;
754
+ /** Derive the output's shape from the input instead of from width/height. Only on models whose capabilities include autoAspectRatio. */
755
+ auto_aspect_ratio?: boolean | null;
756
+ /** The size tier of an auto_aspect_ratio run (e.g. '2K'), one of the model's autoResolutions. Unset, the size follows the input. */
757
+ auto_resolution?: string | null;
742
758
  /** Number of outputs (1-16). */
743
759
  batch_size?: number;
744
760
  /** Number of diffusion steps. */
@@ -759,6 +775,8 @@ export interface ExecuteInferenceV2Request {
759
775
  generate_audio?: boolean | null;
760
776
  /** Keep audio from input video. */
761
777
  keep_audio?: boolean | null;
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). */
779
+ draft?: boolean | null;
762
780
  /** Guarantee a track with no vocals, on models whose capabilities report instrumental. Asking for one in the prompt is only a suggestion. */
763
781
  instrumental?: boolean | null;
764
782
  /** Compose the clip to repeat with no audible seam, on models whose capabilities report loop. */
@@ -855,6 +873,10 @@ export interface ExecuteInferenceV2Request {
855
873
  camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
856
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`. */
857
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;
858
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. */
859
881
  audio_sections?: Array<AudioEditSection>;
860
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. */
@@ -1170,7 +1192,7 @@ export interface GroupOut {
1170
1192
  * file through a different provider input — the legacy IP-adapter path — that is its own
1171
1193
  * type, because it is not the same slot.
1172
1194
  */
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";
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";
1174
1196
  export interface HTTPValidationError {
1175
1197
  detail?: Array<ValidationError>;
1176
1198
  }
@@ -1181,7 +1203,7 @@ export interface InferenceReferenceSetInput {
1181
1203
  weight?: number;
1182
1204
  }
1183
1205
  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";
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" | "generate_pbr_materials" | "complete_draft";
1185
1207
  /** Delivered when an inference run reaches a terminal state. */
1186
1208
  export interface InferenceWebhookEvent {
1187
1209
  /** Unique event id, repeated in the webhook-id header. */
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.0.26";
1
+ export const VERSION = "1.0.33";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layer_ai/sdk",
3
- "version": "1.0.26",
3
+ "version": "1.0.33",
4
4
  "description": "Official JavaScript and TypeScript SDK for Layer \u2014 AI asset creation for game studios.",
5
5
  "keywords": [
6
6
  "ai",