@layer_ai/sdk 1.0.96 → 1.0.125

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.
@@ -34,6 +34,7 @@ export interface AiPolicy {
34
34
  nsfw_tolerance?: Setting_Annotated_int__FieldInfo_annotation_NoneType__required_True__metadata__Ge_ge_1___Le_le_6_____ | null;
35
35
  reference_set_sharing_enabled?: Setting_bool_ | null;
36
36
  workflow_sharing_enabled?: Setting_bool_ | null;
37
+ invisible_watermark_enabled?: Setting_bool_ | null;
37
38
  usage_caps?: Record<string, Setting_Union_UsageCap__NoneType__>;
38
39
  }
39
40
  export interface AiPolicyOutput {
@@ -67,6 +68,7 @@ export interface AiPolicyPatch {
67
68
  nsfw_tolerance?: Setting_Annotated_int__FieldInfo_annotation_NoneType__required_True__metadata__Ge_ge_1___Le_le_6_____ | null;
68
69
  reference_set_sharing_enabled?: Setting_bool_ | null;
69
70
  workflow_sharing_enabled?: Setting_bool_ | null;
71
+ invisible_watermark_enabled?: Setting_bool_ | null;
70
72
  usage_caps?: Record<string, Setting_Union_UsageCap__NoneType__ | null> | null;
71
73
  }
72
74
  /** A stored policy: the scope it is attached to, what it sets, and its last write. */
@@ -104,6 +106,8 @@ export interface AiPolicyReplacement {
104
106
  reference_set_sharing_enabled?: Setting_bool_ | null;
105
107
  /** Whether the workspace's workflows may be shared beyond it. */
106
108
  workflow_sharing_enabled?: Setting_bool_ | null;
109
+ /** Whether Layer embeds its invisible watermark in the workspace's generated images, video and audio. Best effort: an output in a format the watermark does not support, or one that cannot be marked in time, is delivered without it. */
110
+ invisible_watermark_enabled?: Setting_bool_ | null;
107
111
  }
108
112
  /** Where a policy is attached: a workspace, or a project, group or member inside one. */
109
113
  export interface AiPolicyScope {
@@ -350,7 +354,7 @@ export interface BaseModelDetail {
350
354
  /** Supported inputs, sizes, and generation features. */
351
355
  capabilities: BaseModelCapabilitiesREST;
352
356
  }
353
- export type BaseModelId = "gpt-5.2" | "gpt-5.4" | "gpt-5.4-nano" | "gpt-5.4-mini" | "gpt-5.4-pro" | "gpt-5.5" | "gpt-5.5-pro" | "gemini-3-flash-lite" | "gemini-3.5-flash" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-opus-4-7" | "claude-opus-4-7-fast" | "claude-fable-5" | "claude-fable-5-1" | "grok-4.20" | "deepseek-v3" | "deepseek-v4-pro" | "deepseek-v4-flash" | "mistral-medium-3.5" | "llama-4-maverick" | "qwen-3.7-max" | "qwen-3.8-max" | "kimi-k2.6" | "mureka-lyrics" | "kimi-k3" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna" | "gemini-3.6-flash" | "claude-opus-5" | "claude-opus-4-8" | "claude-sonnet-5" | "grok-4.5" | "jev-1.13" | "glm-5.2" | "muse-spark-1.1" | "muse-spark-1.2" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-6-astra" | "gpt-6-astra-pro" | "muse-spark-1.3" | "grok-4.6" | "glm-5.3" | "glm-5.3-flash" | "qwen-3.8-flash" | "deepseek-v4.1-flash" | "gpt-6-sol" | "gpt-6-sol-pro" | "gpt-6-luna" | "gpt-6-luna-pro" | "gpt-6.1-terra" | "gpt-6-luna-decisions" | "claude-opus-5.5" | "grok-4.7" | "glm-5.3-flashx" | "qwen-3.8-omni-flash" | "claude-haiku-5.5" | "sdxl" | "sdxl-turbo" | "sd3" | "fooocus" | "bria21" | "bria22-fast" | "bria23" | "bria-fibo-2" | "flux-schnell" | "flux" | "flux-dev-srpo" | "flux-dev-krea" | "flux-pro" | "flux-1-1-pro" | "flux-1-1-pro-ultra" | "flux-pro-vto" | "flux-kontext-dev" | "flux-kontext-pro" | "flux-kontext-max" | "flux-2-flex" | "flux-2-dev" | "flux-2-pro" | "flux-2-flex-edit" | "flux-2-dev-edit" | "flux-2-pro-edit" | "flux-2-max" | "flux-2-max-edit" | "flux-2-klein-4b" | "flux-2-klein-9b" | "flux-2-klein-4b-edit" | "flux-2-klein-9b-edit" | "flux-2-klein-realtime" | "flux-3-image" | "flux-3-klein-base" | "flux-3-klein-base-edit" | "flux-3-klein" | "z-image-turbo" | "krea-2-turbo" | "krea-2-large" | "krea-3-realtime" | "krea-3" | "hidream-o1-image" | "hidream-o1-image-dev" | "dall-e" | "gpt-image-1" | "gpt-image-1.5" | "gpt-image-2" | "gpt-image-2.5-flare" | "gpt-image-2.5-sunburst" | "gpt-image-2.6-flare" | "gpt-image-2.6-sunburst" | "imagen-2" | "imagen-3" | "imagen-3-fast" | "imagen-4" | "imagen-4-fast" | "imagen-4-ultra" | "gemini-2.0-flash-preview-image-generation" | "gemini-2.5-flash-image" | "gemini-2.5-flash-image-edit" | "gemini-3-pro-image" | "gemini-3-pro-image-edit" | "gemini-3.1-flash-image" | "gemini-3.1-flash-image-edit" | "gemini-3.1-flash-lite-image" | "gemini-3.1-flash-lite-image-edit" | "nano-banana-2.1" | "google-virtual-try-on" | "qwen-image" | "qwen-image-edit" | "qwen-image-edit-2509" | "qwen-image-layered" | "qwen-image-edit-2511" | "qwen-image-edit-2511-multiple-angles" | "qwen-image-2512" | "qwen-image-2" | "qwen-image-2-pro" | "qwen-image-2-edit" | "qwen-image-2-pro-edit" | "qwen-image-2.1" | "qwen-image-2.1-edit" | "grok-imagine-image" | "grok-imagine-image-edit" | "grok-imagine-image-2.0" | "seedream-4" | "seedream-4.5" | "seedream-5-lite" | "seedream-5-lite-edit" | "seedream-5-pro" | "seedream-5-pro-edit" | "seedream-5-pro-layerize" | "seedream-5-flash" | "seedream-5-flash-layerize" | "patina" | "patina-tileable" | "luma-uni-1" | "luma-uni-1-max" | "recraft-v3" | "recraft-v4" | "recraft-v4-pro" | "recraft-v4-vector" | "recraft-v4-pro-vector" | "ideogram-v4" | "ideogram-v4.5" | "ideogram-vector" | "recraft-v4.1" | "recraft-v4.1-pro" | "recraft-v4.1-pro-vector" | "recraft-v4.1-vector" | "step1x-edit" | "mai-image-2.5" | "mai-image-2.5-pro" | "muse-image" | "reve-2" | "reve-2-remix" | "reve-2.1" | "reve-2.1-remix" | "pruna-p-image" | "clarity-upscaler" | "esrgan-upscaler" | "pruna-p-image-upscale" | "topaz-enhance-upscaler" | "topaz-enhance-generative-upscaler" | "topaz-standard-v2-upscale-image" | "topaz-high-fidelity-v3-upscale-image" | "topaz-low-resolution-v2-upscale-image" | "topaz-cgi-upscale-image" | "topaz-text-refine-upscale-image" | "topaz-wonder-3.5-upscale-image" | "topaz-redefine-upscale-image" | "topaz-recover-3-upscale-image" | "topaz-standard-max-upscale-image" | "topaz-recovery-v2-upscale-image" | "topaz-bloom-2-upscale-image" | "topaz-bloom-realism-upscale-image" | "topaz-transparent-upscale-image" | "seed-vr-upscale-image" | "recraft-upscale-crisp" | "recraft-upscale-creative" | "topaz-normal-denoise-image" | "topaz-strong-denoise-image" | "topaz-extreme-denoise-image" | "topaz-denoise-max-denoise-image" | "topaz-recover-3-restore-image" | "topaz-dust-scratch-v2-restore-image" | "bria-fibo-edit-restore-image" | "telestyle-v2" | "bria-fibo-edit-colorize-image" | "image2pixel-pixelate-image" | "image-apps-v2-expression-change" | "image-editing-expression-change" | "finegrain-erase-image" | "ideogram-erase-image" | "fal-object-removal-erase-image" | "bria-erase-image" | "bria-fibo-edit-rewrite-text" | "image-editing-text-removal" | "ideogram-v3-layerize-text" | "veo-2" | "veo-3" | "veo-3-fast" | "veo-3.1" | "veo-3.1-fast" | "veo-3.1-lite" | "veo-3.1-reference" | "veo-3.1-fast-reference" | "ai-avatar" | "omnihuman" | "omnihuman-v1.5" | "omnihuman-v2" | "veed-lipsync-v2" | "sync-lipsync-v3" | "sync-lipsync-v2-pro" | "latentsync" | "sync-lipsync-v3-image-to-video" | "minimax" | "minimax-live" | "minimax-hailuo-2-standard" | "minimax-hailuo-2-pro" | "minimax-hailuo-2.3-standard" | "minimax-hailuo-2.3-pro" | "minimax-hailuo-2.3-fast" | "minimax-h3" | "minimax-h3-reference" | "minimax-h3-max" | "minimax-h3-max-reference" | "minimax-h3-max-turbo" | "minimax-h3-max-lip-sync" | "minimax-h3-max-recast" | "minimax-h3-max-reframe" | "minimax-h3-max-relight" | "minimax-h3-max-extend" | "minimax-h3-max-insert" | "minimax-h3-max-3d-to-video" | "heygen-video" | "heygen-video-reference" | "hunyuan" | "hunyuan-video-foley" | "hunyuan-video-1.5" | "kling-v15-pro" | "kling-v16-pro" | "kling-v20-master" | "kling-v21-master" | "kling-v21-pro" | "kling-v2.5-turbo-pro" | "kling-v2.6-pro" | "kling-o1" | "kling-o1-reference" | "kling-o1-edit" | "kling-o3-pro" | "kling-o3-pro-edit" | "kling-o3-standard" | "kling-o3-standard-edit" | "kling-v3-pro" | "kling-v3-standard" | "kling-v2.6-pro-motion-control" | "kling-v2.6-standard-motion-control" | "kling-v3-pro-motion-control" | "kling-v3-standard-motion-control" | "kling-v3-4k" | "kling-o3-4k" | "kling-o3-4k-reference" | "kling-v4" | "kling-v4-video-edit" | "kling-v4-flash" | "kling-v4-flash-reference" | "kling-v4-flash-video-edit" | "kling-image-o3" | "kling-image-v3" | "wan-21" | "wan-22" | "wan-25" | "wan-2.6" | "wan-3.0" | "wan-3.0-reference" | "wan-2.7-pro" | "wan-2.7-pro-edit" | "happy-horse" | "happy-horse-reference" | "happy-horse-edit" | "happy-horse-1.1" | "gemini-omni-flash" | "gemini-omni-flash-edit" | "gemini-omni-flash-reference" | "gemini-omni-flash-1.1" | "gemini-omni-flash-1.1-edit" | "gemini-omni-flash-1.1-reference" | "gemini-omni-flash-1.2" | "gemini-omni-flash-1.2-extend" | "gemini-omni-flash-1.2-upscale" | "sadtalker" | "framepack" | "higgsfield-lite" | "higgsfield-preview" | "higgsfield-turbo" | "higgsfield-soul-2" | "higgsfield-soul-cinema" | "higgsfield-genjutsu-motion-transfer" | "higgsfield-genjutsu-object-swap" | "worldlabs-marble-1.0-draft" | "worldlabs-marble-1.1" | "worldlabs-marble-1.1-plus" | "worldlabs-marble-1.1-draft-complete" | "triposplat" | "pruna-p-video" | "pruna-p-video-2" | "pruna-p-video-2-pro" | "pruna-p-video-avatar" | "pruna-p-video-avatar-tts" | "pruna-p-video-edit" | "pruna-p-video-animate" | "pruna-p-video-replace" | "magi-distilled" | "seedance-v1-lite" | "seedance" | "seedance-v1.5-pro" | "seedance-v2" | "seedance-v2-reference" | "seedance-v2-fast" | "seedance-v2-fast-reference" | "seedance-v2.5" | "seedance-v2.5-reference" | "seedance-v2.5-draft-complete" | "seedance-v2-us" | "seedance-v2.5-us" | "seedance-v2.5-us-draft-complete" | "vidu-q3-pro" | "pixverse-v5" | "pixverse-v5.5" | "pixverse-v5.5-fast" | "pixverse-v6" | "pixverse-vibemv" | "mureka-lyrics-video" | "pika-2.5" | "ray-2" | "ray-2-flash" | "ray-3-2" | "sora-2" | "sora-2-pro" | "ltx-v2-fast" | "ltx-v2-pro" | "ltx-v2.3" | "ltx-v2.3-fast" | "ltx-v2.3-22b" | "ltx-v2.3-quality-outpaint" | "ltx-v2.5-fast" | "ltx-v2.5-pro" | "ltx-v2.5-fast-audio" | "ltx-v2.5-pro-audio" | "kandinsky-6-lite" | "flux-3" | "flux-3-keyframes" | "flux-3-extend" | "flux-3-edit" | "flux-3-draft-enhance" | "flux-3-max" | "flux-3-max-keyframes" | "grok-imagine-video" | "grok-imagine-video-1.5" | "grok-imagine-video-1.5-lite" | "grok-imagine-video-edit" | "grok-imagine-video-extend" | "runway-gen4-turbo" | "runway-gen4.5" | "runway-gen4-aleph" | "runway-aleph2" | "video-upscaler-esrgan" | "video-upscaler-topaz" | "topaz-proteus-upscale-video" | "topaz-proteus-natural-upscale-video" | "topaz-iris-upscale-video" | "topaz-dione-dv-upscale-video" | "topaz-artemis-high-quality-upscale-video" | "topaz-gaia-hq-upscale-video" | "topaz-gaia-cg-upscale-video" | "topaz-gaia-2-upscale-video" | "topaz-rhea-upscale-video" | "topaz-theia-fine-tune-detail-upscale-video" | "topaz-starlight-precise-2.6-upscale-video" | "topaz-starlight-hq-upscale-video" | "topaz-starlight-mini-upscale-video" | "topaz-starlight-sharp-upscale-video" | "topaz-starlight-fast-2-upscale-video" | "topaz-astra-2-upscale-video" | "seed-vr-upscale-video" | "bria-video-increase-resolution" | "flux-video-upscale" | "flux-video-upscale-creative" | "topaz-apollo-interpolate-video" | "topaz-chronos-interpolate-video" | "topaz-aion-interpolate-video" | "topaz-nyx-denoise-video" | "topaz-nyx-fast-denoise-video" | "topaz-nyx-xl-denoise-video" | "topaz-nyx-hf-denoise-video" | "topaz-themis-2-deblur-video" | "topaz-sdr-to-hdr-video" | "ffmpeg-merge-videos" | "ffmpeg-extract-frame" | "auto-subtitle" | "auto-caption" | "veed-subtitles" | "remotion-video-timeline" | "video-as-code-render" | "recraft-vectorize-image" | "ideogram-vectorize" | "star-vector" | "fal-image-to-svg" | "birefnet-v2" | "ideogram-remove-background" | "pixelcut-background-removal" | "bria-video-background-removal" | "bria-video-background-removal-v3" | "bria-video-green-screen" | "void-video-inpainting" | "lightricks-ltx-v2-3-quality-clean-plate" | "elevenlabs-dubbing" | "heygen-translate-precision" | "heygen-translate-speed" | "decart-lucy-restyle" | "decart-lucy-edit-pro" | "id-v2v" | "pixelcut-video-background-removal" | "sam-3-1-image" | "sam-3-1-video" | "tripo-2.0" | "tripo-2.5" | "tripo-3.0" | "tripo-3.1" | "tripo-p1" | "tripo-p2" | "tripo-turbo-1.0" | "tripo-rig" | "tripo-animate" | "tripo-retarget" | "tripo-segment" | "tripo-remesh" | "tripo-retopology-v3" | "tripo-smart-uv" | "tripo-retexture" | "tripo-convert" | "rodin" | "rodin-bang" | "rodin-gen-2" | "rodin-gen-2-5" | "trellis" | "trellis-2" | "hunyuan-3d-v2" | "hunyuan-3d-v2-mini" | "hunyuan-3d-3.0" | "hunyuan-3d-v3.1-pro" | "hunyuan-3d-v3.1-fast" | "hunyuan-3d-v3.1-part" | "hunyuan-3d-v3.1-remesh" | "hunyuan-3d-uv-unwrap" | "shutterstock" | "meshy-v6-preview" | "meshy-v6" | "meshy-v7" | "meshy-v7.1" | "meshy-t2" | "meshy-t2.5" | "meshy-v6-draft-complete" | "meshy-v7.1-draft-complete" | "meshy-t2-draft-complete" | "meshy-t2.5-draft-complete" | "bytedance-seed-3d" | "hi-3d" | "hi-3d-v3" | "hi-3d-texture" | "hi-3d-parts" | "sam-3-3d-objects" | "sam-3-3d-body" | "sam-3-3d-align" | "anything-world-animate" | "anything-world-rig" | "uthana-animate" | "uthana-auto-rig-character" | "meshy-v5-retexture" | "meshy-v6-lite-retexture" | "meshy-v6-retexture" | "meshy-v7-retexture" | "meshy-n1-retexture" | "meshy-v5-remesh" | "meshy-remesh" | "meshy-rigging" | "meshy-uv-unwrap" | "meshy-auto-split" | "stable-audio" | "stable-audio-25" | "stable-audio-3-medium" | "stable-audio-3-small-music" | "stable-audio-3-small-sfx" | "gemini-tts" | "gemini-3.1-flash-tts" | "gemini-3.8-flash-tts" | "gemini-3.8-flash-lite-tts" | "ace-step" | "minimax-music-v2" | "minimax-music-v2.5" | "minimax-music-v2.6" | "minimax-music-3" | "eleven-labs-music" | "cassetteai-music" | "lyria-2" | "lyria-3" | "lyria-3-pro" | "lyria-3-5" | "sonilo-v1-1-text-to-music" | "sonilo-v1-1-video-to-music" | "mureka-song" | "mureka-instrumental" | "mureka-podcast" | "eleven-labs-multilingual-v2" | "eleven-labs-tts-v3" | "eleven-labs-tts-v4" | "eleven-labs-tts-v4-turbo" | "eleven-labs-voice-changer" | "eleven-labs-text-to-dialogue" | "inworld-tts-1.5-max" | "xai-tts-v1" | "heygen-voice" | "heygen-voice-turbo" | "qwen-3-tts" | "seed-audio-1" | "eleven-labs-sound-effects" | "eleven-labs-sound-effects-v3" | "cassetteai-sfx" | "mirelo-sfx" | "mirelo-sfx-2" | "mirelo-sfx-2-video-to-audio" | "sonilo-v1-1-text-to-sound-effects" | "sonilo-v1-1-video-to-sound-effects" | "sam-audio-separate" | "kling-video-to-audio" | "eleven-labs-audio-isolation" | "deepfilternet-3" | "veed-clean-audio" | "sonilo-v1-1-video-to-video-music" | "sonilo-v1-1-video-to-video-sound-effects" | "mirelo-sfx-2-video-to-video" | "playable-v1" | "image-preprocessor" | "comfy-image" | "sd15" | "sd2-base" | "sd2" | "sd21-base" | "sd21" | "getty";
357
+ export type BaseModelId = "gpt-5.2" | "gpt-5.4" | "gpt-5.4-nano" | "gpt-5.4-mini" | "gpt-5.4-pro" | "gpt-5.5" | "gpt-5.5-pro" | "gemini-3-flash-lite" | "gemini-3.5-flash" | "claude-sonnet-4-6" | "claude-haiku-4-5" | "claude-opus-4-7" | "claude-opus-4-7-fast" | "claude-fable-5" | "claude-fable-5-1" | "grok-4.20" | "deepseek-v3" | "deepseek-v4-pro" | "deepseek-v4-flash" | "mistral-medium-3.5" | "llama-4-maverick" | "qwen-3.7-max" | "qwen-3.8-max" | "kimi-k2.6" | "mureka-lyrics" | "kimi-k3" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna" | "gemini-3.6-flash" | "claude-opus-5" | "claude-opus-4-8" | "claude-sonnet-5" | "grok-4.5" | "jev-1.13" | "glm-5.2" | "muse-spark-1.1" | "muse-spark-1.2" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-6-astra" | "gpt-6-astra-pro" | "muse-spark-1.3" | "grok-4.6" | "glm-5.3" | "glm-5.3-flash" | "qwen-3.8-flash" | "deepseek-v4.1-flash" | "gpt-6-sol" | "gpt-6-sol-pro" | "gpt-6-luna" | "gpt-6-luna-pro" | "gpt-6.1-terra" | "gpt-6-luna-decisions" | "claude-opus-5.5" | "grok-4.7" | "glm-5.3-flashx" | "qwen-3.8-omni-flash" | "claude-haiku-5.5" | "claude-sonnet-5.5" | "claude-fable-5.2" | "gpt-6.1-sol" | "gpt-6.1-sol-pro" | "gpt-6.2-astra" | "gemini-4-argon" | "gemini-4-carbon" | "gemini-4-hydrogen" | "kimi-k3.1-pro" | "gemini-decision-1" | "sdxl" | "sdxl-turbo" | "sd3" | "fooocus" | "bria21" | "bria22-fast" | "bria23" | "bria-fibo-2" | "flux-schnell" | "flux" | "flux-dev-srpo" | "flux-dev-krea" | "flux-pro" | "flux-1-1-pro" | "flux-1-1-pro-ultra" | "flux-pro-vto" | "flux-kontext-dev" | "flux-kontext-pro" | "flux-kontext-max" | "flux-2-flex" | "flux-2-dev" | "flux-2-pro" | "flux-2-flex-edit" | "flux-2-dev-edit" | "flux-2-pro-edit" | "flux-2-max" | "flux-2-max-edit" | "flux-2-klein-4b" | "flux-2-klein-9b" | "flux-2-klein-4b-edit" | "flux-2-klein-9b-edit" | "flux-2-klein-realtime" | "flux-3-image" | "flux-3-klein-base" | "flux-3-klein-base-edit" | "flux-3-klein" | "z-image-turbo" | "krea-2-turbo" | "krea-2-large" | "krea-3-realtime" | "krea-3" | "hidream-o1-image" | "hidream-o1-image-dev" | "dall-e" | "gpt-image-1" | "gpt-image-1.5" | "gpt-image-2" | "gpt-image-2.5-flare" | "gpt-image-2.5-sunburst" | "gpt-image-2.6-flare" | "gpt-image-2.6-sunburst" | "imagen-2" | "imagen-3" | "imagen-3-fast" | "imagen-4" | "imagen-4-fast" | "imagen-4-ultra" | "gemini-2.0-flash-preview-image-generation" | "gemini-2.5-flash-image" | "gemini-2.5-flash-image-edit" | "gemini-3-pro-image" | "gemini-3-pro-image-edit" | "gemini-3.1-flash-image" | "gemini-3.1-flash-image-edit" | "gemini-3.1-flash-lite-image" | "gemini-3.1-flash-lite-image-edit" | "nano-banana-2.1" | "google-virtual-try-on" | "qwen-image" | "qwen-image-edit" | "qwen-image-edit-2509" | "qwen-image-layered" | "qwen-image-edit-2511" | "qwen-image-edit-2511-multiple-angles" | "qwen-image-2512" | "qwen-image-2" | "qwen-image-2-pro" | "qwen-image-2-edit" | "qwen-image-2-pro-edit" | "qwen-image-2.1" | "qwen-image-2.1-edit" | "grok-imagine-image" | "grok-imagine-image-edit" | "grok-imagine-image-2.0" | "seedream-4" | "seedream-4.5" | "seedream-5-lite" | "seedream-5-lite-edit" | "seedream-5-pro" | "seedream-5-pro-edit" | "seedream-5-pro-layerize" | "seedream-5-pro-us" | "seedream-5-flash" | "seedream-5-flash-layerize" | "seedream-5.5" | "seedream-5.5-layerize" | "patina" | "patina-tileable" | "luma-uni-1" | "luma-uni-1-max" | "recraft-v3" | "recraft-v4" | "recraft-v4-pro" | "recraft-v4-vector" | "recraft-v4-pro-vector" | "ideogram-v4" | "ideogram-v4.5" | "ideogram-vector" | "recraft-v4.1" | "recraft-v4.1-pro" | "recraft-v4.1-pro-vector" | "recraft-v4.1-vector" | "step1x-edit" | "mai-image-2.5" | "mai-image-2.5-pro" | "mai-image-2.7" | "mai-image-2.7-flash" | "muse-image" | "reve-2" | "reve-2-remix" | "reve-2.1" | "reve-2.1-remix" | "pruna-p-image" | "clarity-upscaler" | "esrgan-upscaler" | "pruna-p-image-upscale" | "topaz-enhance-upscaler" | "topaz-enhance-generative-upscaler" | "topaz-standard-v2-upscale-image" | "topaz-high-fidelity-v3-upscale-image" | "topaz-low-resolution-v2-upscale-image" | "topaz-cgi-upscale-image" | "topaz-text-refine-upscale-image" | "topaz-wonder-3.5-upscale-image" | "topaz-redefine-upscale-image" | "topaz-recover-3-upscale-image" | "topaz-standard-max-upscale-image" | "topaz-recovery-v2-upscale-image" | "topaz-bloom-2-upscale-image" | "topaz-bloom-realism-upscale-image" | "topaz-transparent-upscale-image" | "seed-vr-upscale-image" | "bria-upscale-exact" | "recraft-upscale-crisp" | "recraft-upscale-creative" | "topaz-normal-denoise-image" | "topaz-strong-denoise-image" | "topaz-extreme-denoise-image" | "topaz-denoise-max-denoise-image" | "topaz-recover-3-restore-image" | "topaz-dust-scratch-v2-restore-image" | "bria-fibo-edit-restore-image" | "telestyle-v2" | "bria-fibo-edit-colorize-image" | "image2pixel-pixelate-image" | "image-apps-v2-expression-change" | "image-editing-expression-change" | "finegrain-erase-image" | "ideogram-erase-image" | "fal-object-removal-erase-image" | "bria-erase-image" | "bria-fibo-edit-rewrite-text" | "image-editing-text-removal" | "ideogram-v3-layerize-text" | "veo-2" | "veo-3" | "veo-3-fast" | "veo-3.1" | "veo-3.1-fast" | "veo-3.1-lite" | "veo-3.1-reference" | "veo-3.1-fast-reference" | "ai-avatar" | "omnihuman" | "omnihuman-v1.5" | "omnihuman-v2" | "veed-lipsync-v2" | "sync-lipsync-v3" | "sync-lipsync-v2-pro" | "latentsync" | "sync-lipsync-v3-image-to-video" | "minimax" | "minimax-live" | "minimax-hailuo-2-standard" | "minimax-hailuo-2-pro" | "minimax-hailuo-2.3-standard" | "minimax-hailuo-2.3-pro" | "minimax-hailuo-2.3-fast" | "minimax-h3" | "minimax-h3-reference" | "minimax-h3-max" | "minimax-h3-max-reference" | "minimax-h3-max-turbo" | "minimax-h3-max-lip-sync" | "minimax-h3-max-recast" | "minimax-h3-max-reframe" | "minimax-h3-max-relight" | "minimax-h3-max-extend" | "minimax-h3-max-insert" | "minimax-h3-max-3d-to-video" | "heygen-video" | "heygen-video-reference" | "heygen-avatar-6" | "heygen-avatar-6-reference" | "heygen-avatar-6-turbo" | "heygen-avatar-6-turbo-reference" | "hunyuan" | "hunyuan-video-foley" | "hunyuan-video-1.5" | "kling-v15-pro" | "kling-v16-pro" | "kling-v20-master" | "kling-v21-master" | "kling-v21-pro" | "kling-v2.5-turbo-pro" | "kling-v2.6-pro" | "kling-o1" | "kling-o1-reference" | "kling-o1-edit" | "kling-o3-pro" | "kling-o3-pro-edit" | "kling-o3-standard" | "kling-o3-standard-edit" | "kling-v3-pro" | "kling-v3-standard" | "kling-v2.6-pro-motion-control" | "kling-v2.6-standard-motion-control" | "kling-v3-pro-motion-control" | "kling-v3-standard-motion-control" | "kling-v3-4k" | "kling-o3-4k" | "kling-o3-4k-reference" | "kling-v4" | "kling-v4-video-edit" | "kling-v4-flash" | "kling-v4-flash-reference" | "kling-v4-flash-video-edit" | "kling-image-o3" | "kling-image-v3" | "kling-v4-image" | "kling-v4-long-image" | "wan-21" | "wan-22" | "wan-25" | "wan-2.6" | "wan-3.0" | "wan-3.0-reference" | "wan-2.7-pro" | "wan-2.7-pro-edit" | "happy-horse" | "happy-horse-reference" | "happy-horse-edit" | "happy-horse-1.1" | "gemini-omni-flash" | "gemini-omni-flash-edit" | "gemini-omni-flash-reference" | "gemini-omni-flash-1.1" | "gemini-omni-flash-1.1-edit" | "gemini-omni-flash-1.1-reference" | "gemini-omni-flash-1.2" | "gemini-omni-flash-1.2-extend" | "gemini-omni-flash-1.2-upscale" | "sadtalker" | "framepack" | "higgsfield-lite" | "higgsfield-preview" | "higgsfield-turbo" | "higgsfield-soul-2" | "higgsfield-soul-cinema" | "higgsfield-genjutsu-motion-transfer" | "higgsfield-genjutsu-object-swap" | "worldlabs-marble-1.0-draft" | "worldlabs-marble-1.1" | "worldlabs-marble-1.1-plus" | "worldlabs-marble-1.1-draft-complete" | "triposplat" | "idol" | "pruna-p-video" | "pruna-p-video-2" | "pruna-p-video-2-pro" | "pruna-p-video-avatar" | "pruna-p-video-avatar-tts" | "pruna-p-video-edit" | "pruna-p-video-animate" | "pruna-p-video-replace" | "magi-distilled" | "seedance-v1-lite" | "seedance" | "seedance-v1.5-pro" | "seedance-v2" | "seedance-v2-reference" | "seedance-v2-fast" | "seedance-v2-fast-reference" | "seedance-v2.5" | "seedance-v2.5-reference" | "seedance-v2.5-draft-complete" | "seedance-v2.5-flash" | "seedance-v2-us" | "seedance-v2.5-us" | "seedance-v2.5-us-draft-complete" | "vidu-q3-pro" | "pixverse-v5" | "pixverse-v5.5" | "pixverse-v5.5-fast" | "pixverse-v6" | "pixverse-vibemv" | "mureka-lyrics-video" | "pika-2.5" | "ray-2" | "ray-2-flash" | "ray-3-2" | "sora-2" | "sora-2-pro" | "ltx-v2-fast" | "ltx-v2-pro" | "ltx-v2.3" | "ltx-v2.3-fast" | "ltx-v2.3-22b" | "ltx-v2.3-quality-outpaint" | "ltx-v2.5-fast" | "ltx-v2.5-pro" | "ltx-v2.5-fast-audio" | "ltx-v2.5-pro-audio" | "kandinsky-6-lite" | "flux-3" | "flux-3-keyframes" | "flux-3-extend" | "flux-3-edit" | "flux-3-draft-enhance" | "flux-3-max" | "flux-3-max-keyframes" | "grok-imagine-video" | "grok-imagine-video-1.5" | "grok-imagine-video-1.5-lite" | "grok-imagine-video-edit" | "grok-imagine-video-extend" | "runway-gen4-turbo" | "runway-gen4.5" | "runway-gen4-aleph" | "runway-aleph2" | "video-upscaler-esrgan" | "video-upscaler-topaz" | "topaz-proteus-upscale-video" | "topaz-proteus-natural-upscale-video" | "topaz-iris-upscale-video" | "topaz-dione-dv-upscale-video" | "topaz-artemis-high-quality-upscale-video" | "topaz-gaia-hq-upscale-video" | "topaz-gaia-cg-upscale-video" | "topaz-gaia-2-upscale-video" | "topaz-rhea-upscale-video" | "topaz-theia-fine-tune-detail-upscale-video" | "topaz-starlight-precise-2.6-upscale-video" | "topaz-starlight-hq-upscale-video" | "topaz-starlight-mini-upscale-video" | "topaz-starlight-sharp-upscale-video" | "topaz-starlight-fast-2-upscale-video" | "topaz-astra-2-upscale-video" | "seed-vr-upscale-video" | "bria-video-increase-resolution" | "flux-video-upscale" | "flux-video-upscale-creative" | "topaz-apollo-interpolate-video" | "topaz-chronos-interpolate-video" | "topaz-aion-interpolate-video" | "topaz-nyx-denoise-video" | "topaz-nyx-fast-denoise-video" | "topaz-nyx-xl-denoise-video" | "topaz-nyx-hf-denoise-video" | "topaz-themis-2-deblur-video" | "topaz-sdr-to-hdr-video" | "ffmpeg-merge-videos" | "ffmpeg-extract-frame" | "auto-subtitle" | "auto-caption" | "veed-subtitles" | "remotion-video-timeline" | "video-as-code-render" | "recraft-vectorize-image" | "ideogram-vectorize" | "star-vector" | "fal-image-to-svg" | "birefnet-v2" | "ideogram-remove-background" | "pixelcut-background-removal" | "bria-video-background-removal" | "bria-video-background-removal-v3" | "bria-video-green-screen" | "void-video-inpainting" | "lightricks-ltx-v2-3-quality-clean-plate" | "elevenlabs-dubbing" | "heygen-translate-precision" | "heygen-translate-speed" | "seed-audio-1.5-video-translation" | "decart-lucy-restyle" | "decart-lucy-edit-pro" | "id-v2v" | "pixelcut-video-background-removal" | "sam-3-1-image" | "sam-3-1-video" | "tripo-2.0" | "tripo-2.5" | "tripo-3.0" | "tripo-3.1" | "tripo-p1" | "tripo-p2" | "tripo-turbo-1.0" | "tripo-rig" | "tripo-animate" | "tripo-retarget" | "tripo-segment" | "tripo-remesh" | "tripo-retopology-v3" | "tripo-smart-uv" | "tripo-retexture" | "tripo-convert" | "rodin" | "rodin-bang" | "rodin-gen-2" | "rodin-gen-2-5" | "trellis" | "trellis-2" | "hunyuan-3d-v2" | "hunyuan-3d-v2-mini" | "hunyuan-3d-3.0" | "hunyuan-3d-v3.1-pro" | "hunyuan-3d-v3.1-fast" | "hunyuan-3d-v3.1-part" | "hunyuan-3d-v3.1-remesh" | "hunyuan-3d-v3.6" | "hunyuan-3d-uv-unwrap" | "shutterstock" | "meshy-v6-preview" | "meshy-v6" | "meshy-v7" | "meshy-v7.1" | "meshy-t2" | "meshy-t2.5" | "meshy-v6-draft-complete" | "meshy-v7.1-draft-complete" | "meshy-t2-draft-complete" | "meshy-t2.5-draft-complete" | "bytedance-seed-3d" | "hi-3d" | "hi-3d-v3" | "hi-3d-texture" | "hi-3d-parts" | "sam-3-3d-objects" | "sam-3-3d-body" | "sam-3-3d-align" | "idol-max" | "idol-max-turbo" | "anything-world-animate" | "anything-world-rig" | "uthana-animate" | "uthana-auto-rig-character" | "meshy-v5-retexture" | "meshy-v6-lite-retexture" | "meshy-v6-retexture" | "meshy-v7-retexture" | "meshy-n1-retexture" | "meshy-v5-remesh" | "meshy-remesh" | "meshy-rigging" | "meshy-uv-unwrap" | "meshy-auto-split" | "stable-audio" | "stable-audio-25" | "stable-audio-3-medium" | "stable-audio-3-small-music" | "stable-audio-3-small-sfx" | "gemini-tts" | "gemini-3.1-flash-tts" | "gemini-3.8-flash-tts" | "gemini-3.8-flash-lite-tts" | "ace-step" | "minimax-music-v2" | "minimax-music-v2.5" | "minimax-music-v2.6" | "minimax-music-3" | "eleven-labs-music" | "cassetteai-music" | "lyria-2" | "lyria-3" | "lyria-3-pro" | "lyria-3-5" | "sonilo-v1-1-text-to-music" | "sonilo-v1-1-video-to-music" | "mureka-song" | "mureka-instrumental" | "mureka-podcast" | "eleven-labs-multilingual-v2" | "eleven-labs-tts-v3" | "eleven-labs-tts-v4" | "eleven-labs-tts-v4-turbo" | "eleven-labs-voice-changer" | "eleven-labs-text-to-dialogue" | "inworld-tts-1.5-max" | "xai-tts-v1" | "heygen-voice" | "heygen-voice-turbo" | "qwen-3-tts" | "seed-audio-1" | "seed-audio-1.5" | "seed-audio-1.5-video-dubbing" | "eleven-labs-sound-effects" | "eleven-labs-sound-effects-v3" | "cassetteai-sfx" | "mirelo-sfx" | "mirelo-sfx-2" | "mirelo-sfx-2-video-to-audio" | "sonilo-v1-1-text-to-sound-effects" | "sonilo-v1-1-video-to-sound-effects" | "sam-audio-separate" | "seed-audio-1.5-stem-separation" | "kling-video-to-audio" | "eleven-labs-audio-isolation" | "deepfilternet-3" | "veed-clean-audio" | "sonilo-v1-1-video-to-video-music" | "sonilo-v1-1-video-to-video-sound-effects" | "mirelo-sfx-2-video-to-video" | "playable-v1" | "image-preprocessor" | "comfy-image" | "sd15" | "sd2-base" | "sd2" | "sd21-base" | "sd21" | "getty";
354
358
  export interface BaseModelSummary {
355
359
  /** Base model identifier, e.g. flux-dev — pass it as `base_model_id`. */
356
360
  base_model_id: string;
@@ -512,6 +516,14 @@ export interface CreateInviteBody {
512
516
  /** ID of the role to join with, custom included. Defaults to the workspace's default role. */
513
517
  role_id?: string | null;
514
518
  }
519
+ export interface CreateProductBody {
520
+ /** What the product is called. */
521
+ name: string;
522
+ /** `app` for a game or app published on stores, `site` for a website, `shopify` for an item in a Shopify store. Fixed once the product is created. */
523
+ type: ProductType;
524
+ /** The store and web identities the product is known by. An `app` takes `apple` (a numeric App Store ID), `google` (a Google Play package name) and `steam` (a numeric Steam app ID); a `site` takes `url`; a `shopify` product takes `shopify` (a product, variant or collection GID). */
525
+ identifiers?: Array<ProductIdentifierBody>;
526
+ }
515
527
  export interface CreateProjectBody {
516
528
  /** The project's display name. Must be unique within the workspace. */
517
529
  name: string;
@@ -583,6 +595,7 @@ export interface EffectiveAiPolicy {
583
595
  nsfw_tolerance?: Resolved_int_;
584
596
  reference_set_sharing_enabled?: Resolved_bool_;
585
597
  workflow_sharing_enabled?: Resolved_bool_;
598
+ invisible_watermark_enabled?: Resolved_bool_;
586
599
  usage_caps?: Record<string, Resolved_Union_UsageCap__NoneType__>;
587
600
  }
588
601
  export interface EffectiveAutoDeletePolicyOutput {
@@ -603,6 +616,8 @@ export interface EstimateForgePriceOutput {
603
616
  estimated_remaining_balance_creative_units: number;
604
617
  /** Whether the workspace has enough available Creative Units to cover the estimated price. */
605
618
  has_sufficient_creative_units: boolean;
619
+ /** Whether the workspace is exempt from the balance check. */
620
+ allow_negative_balance?: boolean;
606
621
  }
607
622
  /** REST request body for estimating inference price. workspace_id comes from path. */
608
623
  export interface EstimateInferencePriceRequest {
@@ -672,6 +687,10 @@ export interface EstimateInferencePriceRequest {
672
687
  remove_lighting?: boolean | null;
673
688
  /** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
674
689
  mesh_density?: MeshDensity | null;
690
+ /** The input image is a photograph rather than a render, so the object is cropped looser. Support varies by model. */
691
+ photo_input?: boolean | null;
692
+ /** Grid the surface is built on along the longest side: 128, 256, 512, 768, 1024 or 1536. Support varies by model. */
693
+ mesh_resolution?: number | null;
675
694
  /** Keep the mesh's own UV layout when retexturing. Support varies by model. */
676
695
  preserve_uvs?: boolean | null;
677
696
  /** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
@@ -734,6 +753,8 @@ export interface EstimateInferencePriceV2Output {
734
753
  estimated_remaining_balance_creative_units: number;
735
754
  /** Whether the workspace has enough available Creative Units to cover the estimated price. */
736
755
  has_sufficient_creative_units: boolean;
756
+ /** Whether the workspace is exempt from the balance check. */
757
+ allow_negative_balance?: boolean;
737
758
  /** Base model this price refers to, resolved or auto-picked. */
738
759
  base_model_id: string;
739
760
  /** True when no base_model_id was supplied — the base model was selected from the reference sets. */
@@ -825,6 +846,10 @@ export interface EstimateInferencePriceV2Request {
825
846
  remove_lighting?: boolean | null;
826
847
  /** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
827
848
  mesh_density?: MeshDensity | null;
849
+ /** The input image is a photograph rather than a render, so the object is cropped looser. Support varies by model. */
850
+ photo_input?: boolean | null;
851
+ /** Grid the surface is built on along the longest side: 128, 256, 512, 768, 1024 or 1536. Support varies by model. */
852
+ mesh_resolution?: number | null;
828
853
  /** Keep the mesh's own UV layout when retexturing. Support varies by model. */
829
854
  preserve_uvs?: boolean | null;
830
855
  /** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
@@ -921,7 +946,7 @@ export interface EstimateInferencePriceV2Request {
921
946
  vectorization_max_iterations?: number | null;
922
947
  /** Decimal places kept in SVG path coordinates. Honored by the models whose capabilities report `vectorization_controls`. */
923
948
  vectorization_path_precision?: number | null;
924
- /** Put the output on a transparent background. Also accepted as `remove_background`. */
949
+ /** Put the output on a transparent background. Also accepted as `remove_background`. Left out, it takes the model's default from the AI policy in force for the run, if it sets one. */
925
950
  transparency?: boolean | null;
926
951
  /** Make an animated GIF instead of a still. Honored by the models whose capabilities report `animated_gif`; another model makes a still. `width` and `height` are each frame's, and a size whose frames don't fit what the model renders at once is scaled down to fit. Can't be combined with a mask, tiling, a tile grid, a skybox, an output fit, nine-slice, parallax or an upscale. */
927
952
  animated?: boolean | null;
@@ -941,7 +966,7 @@ export interface EstimateInferencePriceV2Request {
941
966
  projection_strength?: number | null;
942
967
  /** Outpaint/refill transparent areas. */
943
968
  refill?: boolean | null;
944
- /** Re-render the init image from another camera position: rotation in degrees (`yaw_delta` turns around the subject, `pitch_delta` looks from above or below), `distance_delta` moves closer or further. Honored by the models whose capabilities report `camera_transform`, such as those listed for the `multi_angle` use case. */
969
+ /** Re-render the init image from another camera position: rotation in degrees (`yaw_delta` orbits the camera around the subject, positive to the right so its front turns toward frame left; `pitch_delta` positive looks down from above, negative looks up from below), `distance_delta` moves closer or further. Honored by the models whose capabilities report `camera_transform`, such as those listed for the `multi_angle` use case. */
945
970
  camera_transform?: CameraTransformDelta | null;
946
971
  /** A camera path for an image-to-video run: 2 to 12 keyframes, each an orbit pose (`azimuth` and `elevation` in degrees, `distance` where 1 is the source image's framing) at a `time` from 0 (first frame) to 1 (last). Honored by the models whose capabilities report `camera_trajectory`. */
947
972
  camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
@@ -973,22 +998,32 @@ export interface EstimateInferencePriceV2Request {
973
998
  mask?: ForgeMaskInput | null;
974
999
  /** The session the execute call will pass, from GET /v2/workspaces/{workspace_id}/sessions. The price and the checks are those of a run in that session's project, which can allow fewer models than the workspace or set other defaults. Without it, they are the workspace's. */
975
1000
  session_id?: string | null;
1001
+ /** The session name the execute call will pass. Ignored when `session_id` is given. The price and the checks are those of the most recent active session with this name, or of the workspace when none has it yet. */
1002
+ session_name?: string | null;
976
1003
  }
977
1004
  export interface EstimateInferenceToolPriceInput {
978
1005
  /** The base model to run the tool on, by ID, slug, name or alias: one of the tool's `base_model_ids`. Without it, the run takes the tool's `default_base_model_id` for the caller. */
979
1006
  base_model_id?: string | null;
980
1007
  /** The file an edit works on, from this workspace or public. Required where the tool's schema has `x-source.required`; a tool that makes something new takes none. */
981
1008
  source_file_id?: string | null;
1009
+ /** Estimate only: the size of an image or video source in place of `source_file_id`, to price an edit before its source is uploaded. The estimate prices what it would for a file of this size. A run refuses it. */
1010
+ source_size?: InferenceToolSourceSizeInput | null;
1011
+ /** Where an image reframe puts its source in the frame: the source turned by `rotate`, then the frame drawn over it as `crop`, in the source's pixels. The frame's size stays the one `input.aspect_ratio` sets, and the crop takes its shape. Without it, the reframe extends the source, centered, to the frame. Only on an image reframe, with `source_file_id` (or, on an estimate, `source_size`). */
1012
+ source_transform?: InferenceToolSourceTransform | null;
982
1013
  /** An image the size of the source, white where the edit may change it and black where the source stays as it is. Only where the tool's schema has `x-source.takes_mask`. */
983
1014
  mask_file_id?: string | null;
1015
+ /** What an edit with `mask_file_id` returns. `composite`, the default: the edit inside the mask blended into the source, the rest of the source as it was. `whole_frame`: the model's whole output with nothing blended into it, for you to mask. `layers`: a layered PSD, the source below and the model's whole output above it with the mask as its layer mask. Only with `mask_file_id`. */
1016
+ masked_edit_output?: MaskedEditOutput | null;
984
1017
  /** How many outputs the run makes (1-16). More than 1 needs a tool and a model that batch. */
985
1018
  batch_size?: number;
986
- /** The fields of the tool's schema on the model (GET .../inference-schema), with files by `file_id`. A field left out takes its default, and the tool sets the values it fixes. */
1019
+ /** The fields of the tool's schema on the model (GET .../inference-schema), with files by `file_id`. A field left out takes the model's default from the AI policy in force for the run, else its own default, and the tool sets the values it fixes. A run needs every field the schema requires; an estimate prices the form as it stands, so it may leave some of them out. */
987
1020
  input?: Record<string, unknown>;
988
- /** Reference sets to apply, up to 25, from GET /v2/workspaces/{workspace_id}/reference-sets. Some models need one: an ElevenLabs voice for a voice change or speech, an animation preset for Tripo's animate. A run on such a model without one is refused with `REFERENCE_SET_REQUIRED`. */
1021
+ /** Reference sets to apply, up to 25, from GET /v2/workspaces/{workspace_id}/reference-sets. Some models need one: an ElevenLabs voice for a voice change or speech, an animation preset for Tripo's animate. A run on such a model without one is refused with `REFERENCE_SET_REQUIRED`; an estimate prices it without one. */
989
1022
  reference_sets?: Array<InferenceReferenceSetInput>;
990
1023
  /** Organize this run under this session, from GET /v2/workspaces/{workspace_id}/sessions. Takes precedence over `session_name`, and must belong to this workspace. Its project's AI policy decides the models the run may take and their defaults; an estimate with it prices the run in that project. */
991
1024
  session_id?: string | null;
1025
+ /** Organize this run under the most recent active session with this name, creating one if none matches. Ignored when `session_id` is given. An estimate with it prices the run in that session's project, or in the workspace when no session has the name yet. */
1026
+ session_name?: string | null;
992
1027
  }
993
1028
  export interface EstimateInferenceToolPriceOutput {
994
1029
  /** Total estimated Creative Units price for this run. */
@@ -999,6 +1034,8 @@ export interface EstimateInferenceToolPriceOutput {
999
1034
  estimated_remaining_balance_creative_units: number;
1000
1035
  /** Whether the workspace has enough available Creative Units to cover the estimated price. */
1001
1036
  has_sufficient_creative_units: boolean;
1037
+ /** Whether the workspace is exempt from the balance check. */
1038
+ allow_negative_balance?: boolean;
1002
1039
  /** The base model the run takes: the one named, else the tool's default. */
1003
1040
  base_model_id: string;
1004
1041
  /** Per-set summary of what each reference set would contribute to this run. */
@@ -1029,6 +1066,8 @@ export interface EstimateTrainingPriceResponse {
1029
1066
  estimated_remaining_balance_creative_units: number;
1030
1067
  /** Whether the workspace has enough available Creative Units to cover the estimate. */
1031
1068
  has_sufficient_creative_units: boolean;
1069
+ /** Whether the workspace is exempt from the balance check. */
1070
+ allow_negative_balance?: boolean;
1032
1071
  }
1033
1072
  export interface EstimateWorkflowOutputCount {
1034
1073
  /** The output parameter definition. */
@@ -1047,6 +1086,8 @@ export interface EstimateWorkflowPriceOutput {
1047
1086
  estimated_remaining_balance_creative_units: number;
1048
1087
  /** Whether the workspace has enough available Creative Units to cover the estimated price. */
1049
1088
  has_sufficient_creative_units: boolean;
1089
+ /** Whether the workspace is exempt from the balance check. */
1090
+ allow_negative_balance?: boolean;
1050
1091
  }
1051
1092
  export interface EstimateWorkflowPriceRequest {
1052
1093
  /** Workflow inputs matching the workflow's input schema. */
@@ -1136,6 +1177,10 @@ export interface ExecuteInferenceRequest {
1136
1177
  remove_lighting?: boolean | null;
1137
1178
  /** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
1138
1179
  mesh_density?: MeshDensity | null;
1180
+ /** The input image is a photograph rather than a render, so the object is cropped looser. Support varies by model. */
1181
+ photo_input?: boolean | null;
1182
+ /** Grid the surface is built on along the longest side: 128, 256, 512, 768, 1024 or 1536. Support varies by model. */
1183
+ mesh_resolution?: number | null;
1139
1184
  /** Keep the mesh's own UV layout when retexturing. Support varies by model. */
1140
1185
  preserve_uvs?: boolean | null;
1141
1186
  /** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
@@ -1299,6 +1344,10 @@ export interface ExecuteInferenceV2Request {
1299
1344
  remove_lighting?: boolean | null;
1300
1345
  /** Adaptive face count in place of a face limit: ULTRA, HIGH, MEDIUM or LOW. Support varies by model. */
1301
1346
  mesh_density?: MeshDensity | null;
1347
+ /** The input image is a photograph rather than a render, so the object is cropped looser. Support varies by model. */
1348
+ photo_input?: boolean | null;
1349
+ /** Grid the surface is built on along the longest side: 128, 256, 512, 768, 1024 or 1536. Support varies by model. */
1350
+ mesh_resolution?: number | null;
1302
1351
  /** Keep the mesh's own UV layout when retexturing. Support varies by model. */
1303
1352
  preserve_uvs?: boolean | null;
1304
1353
  /** What to split a mesh along: AUTO, or PARTS with the parts named in segment_part_names. Support varies by model. */
@@ -1395,7 +1444,7 @@ export interface ExecuteInferenceV2Request {
1395
1444
  vectorization_max_iterations?: number | null;
1396
1445
  /** Decimal places kept in SVG path coordinates. Honored by the models whose capabilities report `vectorization_controls`. */
1397
1446
  vectorization_path_precision?: number | null;
1398
- /** Put the output on a transparent background. Also accepted as `remove_background`. */
1447
+ /** Put the output on a transparent background. Also accepted as `remove_background`. Left out, it takes the model's default from the AI policy in force for the run, if it sets one. */
1399
1448
  transparency?: boolean | null;
1400
1449
  /** Make an animated GIF instead of a still. Honored by the models whose capabilities report `animated_gif`; another model makes a still. `width` and `height` are each frame's, and a size whose frames don't fit what the model renders at once is scaled down to fit. Can't be combined with a mask, tiling, a tile grid, a skybox, an output fit, nine-slice, parallax or an upscale. */
1401
1450
  animated?: boolean | null;
@@ -1415,7 +1464,7 @@ export interface ExecuteInferenceV2Request {
1415
1464
  projection_strength?: number | null;
1416
1465
  /** Outpaint/refill transparent areas. */
1417
1466
  refill?: boolean | null;
1418
- /** Re-render the init image from another camera position: rotation in degrees (`yaw_delta` turns around the subject, `pitch_delta` looks from above or below), `distance_delta` moves closer or further. Honored by the models whose capabilities report `camera_transform`, such as those listed for the `multi_angle` use case. */
1467
+ /** Re-render the init image from another camera position: rotation in degrees (`yaw_delta` orbits the camera around the subject, positive to the right so its front turns toward frame left; `pitch_delta` positive looks down from above, negative looks up from below), `distance_delta` moves closer or further. Honored by the models whose capabilities report `camera_transform`, such as those listed for the `multi_angle` use case. */
1419
1468
  camera_transform?: CameraTransformDelta | null;
1420
1469
  /** A camera path for an image-to-video run: 2 to 12 keyframes, each an orbit pose (`azimuth` and `elevation` in degrees, `distance` where 1 is the source image's framing) at a `time` from 0 (first frame) to 1 (last). Honored by the models whose capabilities report `camera_trajectory`. */
1421
1470
  camera_trajectory?: Array<CameraTrajectoryKeyframe> | null;
@@ -1534,7 +1583,7 @@ export interface FileScoresOutput {
1534
1583
  /** When the stamp was written. */
1535
1584
  headline_scored_at?: string | null;
1536
1585
  }
1537
- export type FileSourceType = "pose" | "reference" | "mask" | "composite" | "google_drive" | "miro" | "linear" | "jira" | "focal" | "transformed_reference" | "skill_resource" | "skill_bundle";
1586
+ export type FileSourceType = "pose" | "reference" | "mask" | "composite" | "google_drive" | "miro" | "linear" | "jira" | "focal" | "transformed_reference" | "skill_resource" | "skill_bundle" | "playable_snapshot";
1538
1587
  export interface ForgeGuidanceFileInput {
1539
1588
  /** File ID of an uploaded file. */
1540
1589
  file_id: string;
@@ -1560,7 +1609,7 @@ export interface ForgeMaskInput {
1560
1609
  export interface ForgeReferenceSetContribution {
1561
1610
  /** Reference Set ID this contribution belongs to, if any. */
1562
1611
  set_id?: string | null;
1563
- /** True when a LoRA finetune was applied for this set. */
1612
+ /** True when the set's trained finetune (a LoRA, or a Recraft style) was applied. */
1564
1613
  lora_applied?: boolean;
1565
1614
  /** True when an animation (Meshy rigging action) finetune was applied for this set. */
1566
1615
  animation_applied?: boolean;
@@ -1895,6 +1944,37 @@ export interface InferenceToolSource {
1895
1944
  /** Whether the tool can keep its edit to an area a mask marks. The tool's schema on a base model says whether that model can, in `x-source.takes_mask`. */
1896
1945
  takes_mask: boolean;
1897
1946
  }
1947
+ /** The frame of a reframe as a box over its source, in the source's pixels after its rotation. */
1948
+ export interface InferenceToolSourceCrop {
1949
+ /** The frame's left edge, in the source's pixels from the source's left edge, or from its bounding box's when `rotate` turns it. Negative where the frame starts left of the source: the model fills that area. */
1950
+ x: number;
1951
+ /** The frame's top edge, in the source's pixels from the source's top edge, or from its bounding box's when `rotate` turns it. Negative where the frame starts above the source: the model fills that area. */
1952
+ y: number;
1953
+ /** The frame's width in the source's pixels. Where the frame reaches past the source's right edge, the model fills that area. */
1954
+ width: number;
1955
+ /** The frame's height in the source's pixels. Where the frame reaches past the source's bottom edge, the model fills that area. */
1956
+ height: number;
1957
+ }
1958
+ /** An edit's source by its size, before it is uploaded. */
1959
+ export interface InferenceToolSourceSizeInput {
1960
+ /** The source's width in pixels, as displayed. */
1961
+ width: number;
1962
+ /** The source's height in pixels, as displayed. */
1963
+ height: number;
1964
+ /** A video source's length in seconds. Required for a video; an image takes none. */
1965
+ duration_seconds?: number | null;
1966
+ }
1967
+ /**
1968
+ * Where an image reframe puts its source in the frame: the source turned by `rotate`, then the frame
1969
+ * drawn over it as `crop`. The frame's size in pixels is the run's own, so the crop's size sets how
1970
+ * large the source is in it.
1971
+ */
1972
+ export interface InferenceToolSourceTransform {
1973
+ /** The frame as a box over the source, in the source's pixels after `rotate`. Its shape is the frame's, the one `input.aspect_ratio` sets, to within 1.5%; its size against the source's sets the source's scale in the frame: a crop twice the source's width shows the source at half the frame's width. On an `AUTO` aspect ratio the crop is the frame, at the size the model renders. */
1974
+ crop: InferenceToolSourceCrop;
1975
+ /** Degrees to turn the source clockwise about its center before the crop, -360 to 360. The turned source's canvas grows to its bounding box, the source centered in it, and `crop` is measured from that box's top-left corner. */
1976
+ rotate?: number | null;
1977
+ }
1898
1978
  export interface InferenceToolSummary {
1899
1979
  /** The tool's key, such as `image.upscale`. */
1900
1980
  key: string;
@@ -2031,6 +2111,10 @@ export interface ListInvitesOutput {
2031
2111
  /** The workspace's invitations, newest first, at most 200. */
2032
2112
  invites: Array<InviteOutput>;
2033
2113
  }
2114
+ export interface ListMemberUsageOutput {
2115
+ members: Array<MemberUsageOutput>;
2116
+ pagination: PaginationOutput;
2117
+ }
2034
2118
  export interface ListMembersOutput {
2035
2119
  members: Array<MemberOutput>;
2036
2120
  pagination: PaginationOutput;
@@ -2039,6 +2123,10 @@ export interface ListModelsOutput {
2039
2123
  models: Array<ModelSummary>;
2040
2124
  pagination: PaginationOutput;
2041
2125
  }
2126
+ export interface ListProductsOutput {
2127
+ /** The project's products, oldest first. */
2128
+ products: Array<ProductOutput>;
2129
+ }
2042
2130
  export interface ListProjectsOutput {
2043
2131
  projects: Array<ProjectSummary>;
2044
2132
  pagination: PaginationOutput;
@@ -2076,6 +2164,8 @@ export interface ListWorkspacesOutput {
2076
2164
  workspaces: Array<WorkspaceInfo>;
2077
2165
  pagination: PaginationOutput;
2078
2166
  }
2167
+ /** What a masked edit returns. The outcomes exclude each other: a run returns one of them. */
2168
+ export type MaskedEditOutput = "composite" | "whole_frame" | "layers";
2079
2169
  export interface MemberOutput {
2080
2170
  /** The workspace membership's unique identifier. */
2081
2171
  membership_id: string;
@@ -2102,6 +2192,28 @@ export interface MemberUsageBucket {
2102
2192
  /** Creative Units the member spent in the bucket, inside the window. */
2103
2193
  creative_units: number;
2104
2194
  }
2195
+ export interface MemberUsageLimit {
2196
+ /** Where the cap is set: the workspace (or one above it), a group, or the membership itself. */
2197
+ source: UsageLimitSource;
2198
+ /** The group that sets the cap, for a group cap. */
2199
+ group_id?: string | null;
2200
+ /** The name of that group, for a group cap. */
2201
+ group_name?: string | null;
2202
+ /** How often the cap resets: daily, weekly or monthly (UTC). */
2203
+ period: UsageLimitPeriod;
2204
+ /** warn tells the member they are past the cap; block also stops anything that charges Creative Units. */
2205
+ mode: UsageLimitMode;
2206
+ /** Creative Units the member may spend in each period. */
2207
+ cu_limit: number;
2208
+ /** Percent of the cap at which the member is warned. */
2209
+ warn_threshold_pct: number;
2210
+ /** Creative Units the member has spent in the current period. */
2211
+ cu_used: number;
2212
+ /** Where the member stands against the cap: ok, warning or blocked. */
2213
+ state: UsageLimitState;
2214
+ /** When the current period ends and the cap resets. */
2215
+ period_resets_at: string;
2216
+ }
2105
2217
  export interface MemberUsageOutput {
2106
2218
  /** The member whose usage this is. */
2107
2219
  principal_id: string;
@@ -2115,6 +2227,8 @@ export interface MemberUsageOutput {
2115
2227
  total_creative_units: number;
2116
2228
  /** Creative Units the member spent per bucket, oldest first. A bucket with no spend is left out. By month, the first and last months count only the days inside the window. */
2117
2229
  buckets: Array<MemberUsageBucket>;
2230
+ /** The usage caps the member meters against now, outside any project, each with their spend in its current period rather than in the reported window. Empty when no cap applies, and below Enterprise. */
2231
+ limits: Array<MemberUsageLimit>;
2118
2232
  }
2119
2233
  /**
2120
2234
  * How many faces a mesh keeps, as a level the provider sizes adaptively.
@@ -2356,6 +2470,26 @@ export interface ParallaxSplit {
2356
2470
  * workflow-sandbox import graph and split pydantic class identity.
2357
2471
  */
2358
2472
  export type PoseMode = "A_POSE" | "T_POSE";
2473
+ export interface ProductIdentifierBody {
2474
+ /** The store or web identity: apple, google, steam, url or shopify. */
2475
+ type: ProductIdentifierType;
2476
+ /** The ID in that store, in the form the store uses, or a URL. */
2477
+ identifier: string;
2478
+ }
2479
+ export type ProductIdentifierType = "url" | "steam" | "apple" | "google" | "shopify";
2480
+ export interface ProductOutput {
2481
+ /** The product's unique identifier. */
2482
+ product_id: string;
2483
+ /** The project the product belongs to. */
2484
+ project_id: string;
2485
+ /** What the product is called. */
2486
+ name: string;
2487
+ /** `app` for a game or app published on stores, `site` for a website, `shopify` for an item in a Shopify store. */
2488
+ type: ProductType;
2489
+ /** The store and web identities the product is known by. An `app` takes `apple` (a numeric App Store ID), `google` (a Google Play package name) and `steam` (a numeric Steam app ID); a `site` takes `url`; a `shopify` product takes `shopify` (a product, variant or collection GID). */
2490
+ identifiers: Array<ProductIdentifierBody>;
2491
+ }
2492
+ export type ProductType = "app" | "site" | "shopify";
2359
2493
  export interface ProjectDetail {
2360
2494
  /** The project's unique identifier. */
2361
2495
  project_id: string;
@@ -2416,6 +2550,12 @@ export type ProjectVisibility = "workspace" | "members";
2416
2550
  * rewrites the prompt visibly before the request is made.
2417
2551
  */
2418
2552
  export type PromptEnhancement = "off" | "fast" | "standard" | "quality";
2553
+ export interface PromptRewriteV2Output {
2554
+ /** The refused prompt with every name replaced. Equal to the original when there was nothing to replace. */
2555
+ prompt: string;
2556
+ /** The names taken out, as written. Empty when there was nothing to replace, so a retry would be refused again. */
2557
+ replaced_terms: Array<string>;
2558
+ }
2419
2559
  export interface ReferenceSetFile {
2420
2560
  /** ID of a file attached to the reference set. */
2421
2561
  file_id: string;
@@ -2511,17 +2651,23 @@ export interface RunInferenceToolInput {
2511
2651
  base_model_id?: string | null;
2512
2652
  /** The file an edit works on, from this workspace or public. Required where the tool's schema has `x-source.required`; a tool that makes something new takes none. */
2513
2653
  source_file_id?: string | null;
2654
+ /** Estimate only: the size of an image or video source in place of `source_file_id`, to price an edit before its source is uploaded. The estimate prices what it would for a file of this size. A run refuses it. */
2655
+ source_size?: InferenceToolSourceSizeInput | null;
2656
+ /** Where an image reframe puts its source in the frame: the source turned by `rotate`, then the frame drawn over it as `crop`, in the source's pixels. The frame's size stays the one `input.aspect_ratio` sets, and the crop takes its shape. Without it, the reframe extends the source, centered, to the frame. Only on an image reframe, with `source_file_id` (or, on an estimate, `source_size`). */
2657
+ source_transform?: InferenceToolSourceTransform | null;
2514
2658
  /** An image the size of the source, white where the edit may change it and black where the source stays as it is. Only where the tool's schema has `x-source.takes_mask`. */
2515
2659
  mask_file_id?: string | null;
2660
+ /** What an edit with `mask_file_id` returns. `composite`, the default: the edit inside the mask blended into the source, the rest of the source as it was. `whole_frame`: the model's whole output with nothing blended into it, for you to mask. `layers`: a layered PSD, the source below and the model's whole output above it with the mask as its layer mask. Only with `mask_file_id`. */
2661
+ masked_edit_output?: MaskedEditOutput | null;
2516
2662
  /** How many outputs the run makes (1-16). More than 1 needs a tool and a model that batch. */
2517
2663
  batch_size?: number;
2518
- /** The fields of the tool's schema on the model (GET .../inference-schema), with files by `file_id`. A field left out takes its default, and the tool sets the values it fixes. */
2664
+ /** The fields of the tool's schema on the model (GET .../inference-schema), with files by `file_id`. A field left out takes the model's default from the AI policy in force for the run, else its own default, and the tool sets the values it fixes. A run needs every field the schema requires; an estimate prices the form as it stands, so it may leave some of them out. */
2519
2665
  input?: Record<string, unknown>;
2520
- /** Reference sets to apply, up to 25, from GET /v2/workspaces/{workspace_id}/reference-sets. Some models need one: an ElevenLabs voice for a voice change or speech, an animation preset for Tripo's animate. A run on such a model without one is refused with `REFERENCE_SET_REQUIRED`. */
2666
+ /** Reference sets to apply, up to 25, from GET /v2/workspaces/{workspace_id}/reference-sets. Some models need one: an ElevenLabs voice for a voice change or speech, an animation preset for Tripo's animate. A run on such a model without one is refused with `REFERENCE_SET_REQUIRED`; an estimate prices it without one. */
2521
2667
  reference_sets?: Array<InferenceReferenceSetInput>;
2522
2668
  /** Organize this run under this session, from GET /v2/workspaces/{workspace_id}/sessions. Takes precedence over `session_name`, and must belong to this workspace. Its project's AI policy decides the models the run may take and their defaults; an estimate with it prices the run in that project. */
2523
2669
  session_id?: string | null;
2524
- /** Organize this run under the most recent active session with this name, creating one if none matches. Ignored when `session_id` is given. */
2670
+ /** Organize this run under the most recent active session with this name, creating one if none matches. Ignored when `session_id` is given. An estimate with it prices the run in that session's project, or in the workspace when no session has the name yet. */
2525
2671
  session_name?: string | null;
2526
2672
  /** Deliver this run's terminal events to a URL instead of polling for them. See the Webhooks section of this document for the payload, headers and retry behavior. */
2527
2673
  webhook?: WebhookInput | null;
@@ -2555,7 +2701,7 @@ export interface RunInferenceToolOutput {
2555
2701
  export interface RunRefusal {
2556
2702
  /** The generation that was refused. */
2557
2703
  inference_id: string;
2558
- /** Machine-readable refusal code: `INPUT_GUARDRAIL_VIOLATION` (a guardrail the workspace or project set blocked it, and nothing reached the provider), `CONTENT_POLICY_VIOLATION` (the provider's content policy), `PROMPT_INTELLECTUAL_PROPERTY` (the provider refused protected IP) or `NO_MEDIA_GENERATED` (the provider returned no output and no reason, usually a silent refusal of the prompt). */
2704
+ /** Machine-readable refusal code: `INPUT_GUARDRAIL_VIOLATION` (a guardrail the workspace or project set blocked it, and nothing reached the provider), `CONTENT_POLICY_VIOLATION` (the provider's content policy), `PROMPT_INTELLECTUAL_PROPERTY` (the provider refused protected IP) or `NO_MEDIA_GENERATED` (the provider returned no output: a passing provider failure, a silent refusal of the prompt, or an input the model found nothing in; run it again before rewriting the prompt). A provider refusal of the prompt can be rewritten without the names it refuses with `POST .../inferences/{id}/prompt-rewrite`. */
2559
2705
  code: RefusalCode;
2560
2706
  /** Every guardrail that blocked the generation. Empty unless `code` is `INPUT_GUARDRAIL_VIOLATION`. */
2561
2707
  guardrails?: Array<RefusalGuardrail>;
@@ -2565,7 +2711,7 @@ export interface SceneLightingConfig {
2565
2711
  lights?: Array<OrbitLight>;
2566
2712
  }
2567
2713
  export interface ScoreFilesBody {
2568
- /** The files to score. Images, video and 3D can be judged; audio and text cannot. */
2714
+ /** The files to score. Images, video, 3D and PBR materials can be judged; audio and text cannot. */
2569
2715
  file_ids: Array<string>;
2570
2716
  /** Score under a project's policy as well as the workspace's. A project's rules are added to its workspace's, never replace them. */
2571
2717
  project_id?: string | null;
@@ -2965,6 +3111,10 @@ export interface TileMetadataView {
2965
3111
  base_outline: Array<TilePointView>;
2966
3112
  /** What the tile shows. Every facing of one subject shares it, so a tileset can group them. */
2967
3113
  subject_id?: string | null;
3114
+ /** How well the drawing stands on the grid once fitted, from 0 to 1. Null on an older tile. */
3115
+ fit?: number | null;
3116
+ /** True when the drawing did not settle on the grid and may not sit exactly on its cell. Check its placement before using it. */
3117
+ is_off_grid?: boolean;
2968
3118
  }
2969
3119
  /**
2970
3120
  * How a cell's outline is turned to the camera.
@@ -3208,6 +3358,12 @@ export interface UpdateMemberBody {
3208
3358
  /** New status (active to reactivate, suspended to suspend), if changing. */
3209
3359
  status?: WorkspaceMembershipStatus | null;
3210
3360
  }
3361
+ export interface UpdateProductBody {
3362
+ /** A new name. Omit to leave it unchanged. */
3363
+ name?: string | null;
3364
+ /** The store and web identities the product is known by. An `app` takes `apple` (a numeric App Store ID), `google` (a Google Play package name) and `steam` (a numeric Steam app ID); a `site` takes `url`; a `shopify` product takes `shopify` (a product, variant or collection GID). Replaces every identifier the product has; an empty list removes them all. Omit to leave them unchanged. */
3365
+ identifiers?: Array<ProductIdentifierBody> | null;
3366
+ }
3211
3367
  export interface UpdateProjectBody {
3212
3368
  name?: string | null;
3213
3369
  description?: string | null;
@@ -3233,6 +3389,10 @@ export type UsageGranularity = "day" | "month";
3233
3389
  export type UsageLimitMode = "warn" | "block";
3234
3390
  /** How often a usage cap resets: at midnight UTC, on Monday, or on the 1st of the month. */
3235
3391
  export type UsageLimitPeriod = "daily" | "weekly" | "monthly";
3392
+ /** The policy scope a member's cap comes from. */
3393
+ export type UsageLimitSource = "workspace" | "project" | "group" | "membership";
3394
+ /** How close a member is to a cap, from least to most severe. */
3395
+ export type UsageLimitState = "ok" | "warning" | "blocked";
3236
3396
  export interface ValidationError {
3237
3397
  loc: Array<string | number>;
3238
3398
  msg: string;
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.0.96";
1
+ export const VERSION = "1.0.125";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layer_ai/sdk",
3
- "version": "1.0.96",
3
+ "version": "1.0.125",
4
4
  "description": "Official JavaScript and TypeScript SDK for Layer \u2014 AI asset creation for game studios.",
5
5
  "keywords": [
6
6
  "ai",
@@ -21,6 +21,10 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "author": "Layer <info@layer.ai> (https://layer.ai)",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/layerai/sdk-ts.git"
27
+ },
24
28
  "files": [
25
29
  "dist",
26
30
  "README.md"