The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(create-3d): the second cloud wave of 3D studio models
purple82e57bd91a85
diff --git a/src/lib/render/__tests__/alter-server.test.ts b/src/lib/render/__tests__/alter-server.test.tsindex 1e17ad72..24242db6 100644--- a/src/lib/render/__tests__/alter-server.test.ts+++ b/src/lib/render/__tests__/alter-server.test.ts@@ -32,9 +32,10 @@ describe('der alte Katalog ist wirklich der alte', () => {expect(m.weights, m.id).toBeUndefined()}const ids = new Set(alt.map((m) => m.id))- // Eight of 02.10.2026, plus the ten 3D models of 3.1.0.+ // Eight of 02.10.2026, plus the ten 3D models of 3.1.0 and the thirteen of+ // its second wave (14.11.2026).expect(neueIds().filter((id) => !id.match(/3d|trellis|tripo|seed3d|rodin|meshy/))).toHaveLength(8)- expect(neueIds()).toHaveLength(18)+ expect(neueIds()).toHaveLength(31)for (const id of neueIds()) expect(ids.has(id), id).toBe(false)// Der neue Katalog hat dagegen alles.expect(neuerServer().length).toBeGreaterThanOrEqual(alt.length + 8)diff --git a/src/lib/render/provider-schemas.json b/src/lib/render/provider-schemas.jsonindex cd142b99..294a60d9 100644--- a/src/lib/render/provider-schemas.json+++ b/src/lib/render/provider-schemas.json@@ -10277,5 +10277,1516 @@"enable_animation","animation_action_id"]+ },+ "base/hunyuan3d-v3/text-to-3d": {+ "additionalProperties": false,+ "properties": {+ "enable_pbr": {+ "default": false,+ "description": "Whether to enable PBR material generation",+ "type": "boolean",+ "disabled": true+ },+ "face_count": {+ "default": 500000,+ "description": "Target face count. Range: 40000-1500000",+ "maximum": 1500000,+ "minimum": 40000,+ "type": "integer"+ },+ "generate_type": {+ "default": "Normal",+ "description": "Generation type. Normal: textured model. Geometry: white model without texture.",+ "enum": [+ "Normal",+ "Geometry"+ ],+ "type": "string",+ "disabled": true+ },+ "prompt": {+ "description": "Text description of the 3D content to generate. Supports up to 1024 UTF-8 characters.",+ "type": "string"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "enable_pbr",+ "face_count",+ "generate_type"+ ]+ },+ "base/hunyuan3d-v3/image-to-3d": {+ "additionalProperties": false,+ "properties": {+ "back_image": {+ "description": "Optional back view image URL for better 3D reconstruction.",+ "type": "string"+ },+ "enable_pbr": {+ "default": false,+ "description": "Whether to enable PBR material generation",+ "type": "boolean",+ "disabled": true+ },+ "face_count": {+ "default": 500000,+ "description": "Target face count. Range: 40000-1500000",+ "maximum": 1500000,+ "minimum": 40000,+ "type": "integer"+ },+ "generate_type": {+ "default": "Normal",+ "description": "Generation type. Normal: textured model. Geometry: white model without texture.",+ "enum": [+ "Normal",+ "Geometry"+ ],+ "type": "string",+ "disabled": true+ },+ "image": {+ "description": "The URL where the file can be downloaded from.",+ "type": "string"+ },+ "images": {+ "description": "Up to 4 pictures of the same object, in the order front, left, back, right.",+ "items": {+ "type": "string"+ },+ "maxItems": 4,+ "minItems": 1,+ "type": "array",+ "x-lu-views": [+ "image",+ "left_image",+ "back_image",+ "right_image"+ ]+ },+ "left_image": {+ "description": "Optional left view image URL for better 3D reconstruction.",+ "type": "string"+ },+ "right_image": {+ "description": "Optional right view image URL for better 3D reconstruction.",+ "type": "string"+ }+ },+ "required": [+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "images",+ "image",+ "back_image",+ "left_image",+ "right_image",+ "enable_pbr",+ "face_count",+ "generate_type"+ ]+ },+ "meshy/v7.1/text-to-3d": {+ "additionalProperties": false,+ "properties": {+ "animation_action_id": {+ "default": 92,+ "description": "Animation from the Meshy animation library applied when enable_animation is on.",+ "type": "integer",+ "disabled": true+ },+ "auto_size": {+ "default": false,+ "description": "Estimate the real-world size of the object and scale the model to it.",+ "type": "boolean"+ },+ "enable_animation": {+ "default": false,+ "description": "Rig and animate the character with animation_action_id. The animated model is returned last.",+ "type": "boolean",+ "disabled": true+ },+ "enable_pbr": {+ "default": false,+ "description": "Generate PBR maps (metallic, roughness, normal).",+ "type": "boolean"+ },+ "enable_rigging": {+ "default": false,+ "description": "Rig the generated character (humanoids). The rigged model is returned after the model.",+ "type": "boolean",+ "disabled": true+ },+ "geometry_resolution": {+ "default": "standard",+ "description": "Geometry detail: standard or Ultra (2k / 4k).",+ "enum": [+ "standard",+ "2k",+ "4k"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "mode": {+ "default": "full",+ "description": "preview returns an untextured mesh; full also textures it.",+ "enum": [+ "preview",+ "full"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "model_type": {+ "default": "standard",+ "description": "smart-topology builds a clean low-poly mesh (Meshy T2.5); cheaper, no quad topology.",+ "enum": [+ "standard",+ "smart-topology"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "negative_prompt": {+ "description": "What the model should avoid.",+ "type": "string"+ },+ "pose_mode": {+ "description": "Generate characters in an A-pose or T-pose (useful before rigging).",+ "enum": [+ "a-pose",+ "t-pose"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "prompt": {+ "description": "Description of the 3D object. Up to 600 characters.",+ "maxLength": 600,+ "type": "string",+ "x-ui-component": "textarea"+ },+ "remove_lighting": {+ "description": "Remove baked-in lighting from the textures.",+ "type": "boolean"+ },+ "rigging_height_meters": {+ "default": 1.7,+ "description": "Character height in meters used for rigging.",+ "type": "number",+ "disabled": true+ },+ "seed": {+ "description": "Seed; the same seed and prompt give the same result.",+ "type": "integer"+ },+ "should_remesh": {+ "default": true,+ "description": "Remesh to the target polycount and topology.",+ "type": "boolean"+ },+ "symmetry_mode": {+ "default": "auto",+ "description": "No longer has an effect; kept for compatibility.",+ "enum": [+ "off",+ "auto",+ "on"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "target_polycount": {+ "default": 30000,+ "description": "Target number of polygons (used when should_remesh is on).",+ "maximum": 300000,+ "minimum": 100,+ "type": "integer"+ },+ "texture_image": {+ "description": "Optional reference image for the texture. Takes priority over texture_prompt.",+ "type": "string"+ },+ "texture_prompt": {+ "description": "Optional description of the texture.",+ "type": "string"+ },+ "texture_resolution": {+ "default": "2k",+ "description": "Texture resolution: 2k, 4k or 8k (8k costs more).",+ "enum": [+ "2k",+ "4k",+ "8k"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "topology": {+ "default": "triangle",+ "description": "Mesh topology.",+ "enum": [+ "triangle",+ "quad"+ ],+ "type": "string",+ "x-ui-component": "select"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "mode",+ "negative_prompt",+ "seed",+ "model_type",+ "geometry_resolution",+ "texture_prompt",+ "texture_image",+ "enable_pbr",+ "texture_resolution",+ "topology",+ "target_polycount",+ "should_remesh",+ "symmetry_mode",+ "pose_mode",+ "remove_lighting",+ "auto_size",+ "enable_rigging",+ "rigging_height_meters",+ "enable_animation",+ "animation_action_id"+ ]+ },+ "meshy/v7.1/image-to-3d": {+ "additionalProperties": false,+ "properties": {+ "animation_action_id": {+ "default": 92,+ "description": "Animation from the Meshy animation library applied when enable_animation is on.",+ "type": "integer",+ "disabled": true+ },+ "auto_size": {+ "default": false,+ "description": "Estimate the real-world size of the object and scale the model to it.",+ "type": "boolean"+ },+ "enable_animation": {+ "default": false,+ "description": "Rig and animate the character with animation_action_id. The animated model is returned last.",+ "type": "boolean",+ "disabled": true+ },+ "enable_pbr": {+ "default": false,+ "description": "Generate PBR maps (metallic, roughness, normal).",+ "type": "boolean"+ },+ "enable_rigging": {+ "default": false,+ "description": "Rig the generated character (humanoids). The rigged model is returned after the model.",+ "type": "boolean",+ "disabled": true+ },+ "geometry_resolution": {+ "default": "standard",+ "description": "Geometry detail: standard or Ultra (2k / 4k).",+ "enum": [+ "standard",+ "2k",+ "4k"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "image": {+ "description": "Image of the object (JPEG, PNG or WebP).",+ "type": "string"+ },+ "image_enhancement": {+ "description": "Enhance the input image before generation.",+ "type": "boolean"+ },+ "model_type": {+ "default": "standard",+ "description": "smart-topology builds a clean low-poly mesh (Meshy T2.5); cheaper, no quad topology.",+ "enum": [+ "standard",+ "smart-topology"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "pose_mode": {+ "description": "Generate characters in an A-pose or T-pose (useful before rigging).",+ "enum": [+ "a-pose",+ "t-pose"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "remove_lighting": {+ "description": "Remove baked-in lighting from the textures.",+ "type": "boolean"+ },+ "rigging_height_meters": {+ "default": 1.7,+ "description": "Character height in meters used for rigging.",+ "type": "number",+ "disabled": true+ },+ "should_remesh": {+ "default": true,+ "description": "Remesh to the target polycount and topology.",+ "type": "boolean"+ },+ "should_texture": {+ "default": true,+ "description": "Texture the model. Turn off for an untextured mesh at a lower price.",+ "type": "boolean"+ },+ "symmetry_mode": {+ "default": "auto",+ "description": "No longer has an effect; kept for compatibility.",+ "enum": [+ "off",+ "auto",+ "on"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "target_polycount": {+ "default": 30000,+ "description": "Target number of polygons (used when should_remesh is on).",+ "maximum": 300000,+ "minimum": 100,+ "type": "integer"+ },+ "texture_image": {+ "description": "Optional reference image for the texture. Takes priority over texture_prompt.",+ "type": "string"+ },+ "texture_prompt": {+ "description": "Optional description of the texture.",+ "type": "string"+ },+ "texture_resolution": {+ "default": "2k",+ "description": "Texture resolution: 2k, 4k or 8k (8k costs more).",+ "enum": [+ "2k",+ "4k",+ "8k"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "topology": {+ "default": "triangle",+ "description": "Mesh topology.",+ "enum": [+ "triangle",+ "quad"+ ],+ "type": "string",+ "x-ui-component": "select"+ }+ },+ "required": [+ "image"+ ],+ "type": "object",+ "x-order-properties": [+ "image",+ "model_type",+ "geometry_resolution",+ "should_texture",+ "texture_prompt",+ "texture_image",+ "enable_pbr",+ "texture_resolution",+ "topology",+ "target_polycount",+ "should_remesh",+ "symmetry_mode",+ "pose_mode",+ "remove_lighting",+ "auto_size",+ "image_enhancement",+ "enable_rigging",+ "rigging_height_meters",+ "enable_animation",+ "animation_action_id"+ ]+ },+ "meshy/v7.1/multi-image-to-3d": {+ "additionalProperties": false,+ "properties": {+ "animation_action_id": {+ "default": 92,+ "description": "Animation from the Meshy animation library applied when enable_animation is on.",+ "type": "integer",+ "disabled": true+ },+ "auto_size": {+ "default": false,+ "description": "Estimate the real-world size of the object and scale the model to it.",+ "type": "boolean"+ },+ "enable_animation": {+ "default": false,+ "description": "Rig and animate the character with animation_action_id. The animated model is returned last.",+ "type": "boolean",+ "disabled": true+ },+ "enable_pbr": {+ "default": false,+ "description": "Generate PBR maps (metallic, roughness, normal).",+ "type": "boolean"+ },+ "enable_rigging": {+ "default": false,+ "description": "Rig the generated character (humanoids). The rigged model is returned after the model.",+ "type": "boolean",+ "disabled": true+ },+ "geometry_resolution": {+ "default": "standard",+ "description": "Geometry detail: standard or Ultra (2k).",+ "enum": [+ "standard",+ "2k"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "image_enhancement": {+ "description": "Enhance the input image before generation.",+ "type": "boolean"+ },+ "images": {+ "description": "1 to 4 images of the same object from different angles.",+ "items": {+ "type": "string"+ },+ "maxItems": 4,+ "minItems": 1,+ "type": "array"+ },+ "pose_mode": {+ "description": "Generate characters in an A-pose or T-pose (useful before rigging).",+ "enum": [+ "a-pose",+ "t-pose"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "remove_lighting": {+ "description": "Remove baked-in lighting from the textures.",+ "type": "boolean"+ },+ "rigging_height_meters": {+ "default": 1.7,+ "description": "Character height in meters used for rigging.",+ "type": "number",+ "disabled": true+ },+ "should_remesh": {+ "default": true,+ "description": "Remesh to the target polycount and topology.",+ "type": "boolean"+ },+ "should_texture": {+ "default": true,+ "description": "Texture the model. Turn off for an untextured mesh at a lower price.",+ "type": "boolean"+ },+ "symmetry_mode": {+ "default": "auto",+ "description": "No longer has an effect; kept for compatibility.",+ "enum": [+ "off",+ "auto",+ "on"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "target_polycount": {+ "default": 30000,+ "description": "Target number of polygons (used when should_remesh is on).",+ "maximum": 300000,+ "minimum": 100,+ "type": "integer"+ },+ "texture_image": {+ "description": "Optional reference image for the texture. Takes priority over texture_prompt.",+ "type": "string"+ },+ "texture_prompt": {+ "description": "Optional description of the texture.",+ "type": "string"+ },+ "texture_resolution": {+ "default": "2k",+ "description": "Texture resolution: 2k, 4k or 8k (8k costs more).",+ "enum": [+ "2k",+ "4k",+ "8k"+ ],+ "type": "string",+ "x-ui-component": "select",+ "disabled": true+ },+ "topology": {+ "default": "triangle",+ "description": "Mesh topology.",+ "enum": [+ "triangle",+ "quad"+ ],+ "type": "string",+ "x-ui-component": "select"+ }+ },+ "required": [+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "images",+ "geometry_resolution",+ "should_texture",+ "texture_prompt",+ "texture_image",+ "enable_pbr",+ "texture_resolution",+ "topology",+ "target_polycount",+ "should_remesh",+ "symmetry_mode",+ "pose_mode",+ "remove_lighting",+ "auto_size",+ "image_enhancement",+ "enable_rigging",+ "rigging_height_meters",+ "enable_animation",+ "animation_action_id"+ ]+ },+ "tripo3d/p1/text-to-3d": {+ "additionalProperties": false,+ "properties": {+ "auto_size": {+ "default": false,+ "description": "Scale the model to real-world size in meters. Needs a textured model.",+ "type": "boolean"+ },+ "delight": {+ "default": true,+ "description": "Remove the lighting baked into the source before texturing (texture model v3.5-20260815 only).",+ "type": "boolean"+ },+ "export_uv": {+ "default": true,+ "description": "Unwrap UVs during generation. Turn off for faster generation and a smaller file.",+ "type": "boolean"+ },+ "face_limit": {+ "description": "Maximum number of faces, 50 to 20,000. Omit for adaptive.",+ "maximum": 20000,+ "minimum": 50,+ "type": "integer"+ },+ "image_seed": {+ "description": "Seed for the text-to-image step.",+ "type": "integer",+ "x-hidden": true+ },+ "model_seed": {+ "description": "Seed for the geometry: the same seed and input give the same mesh.",+ "type": "integer"+ },+ "negative_prompt": {+ "description": "What the model should avoid. Up to 255 characters.",+ "maxLength": 255,+ "type": "string"+ },+ "pbr": {+ "default": true,+ "description": "Generate PBR materials (base color, metallic, roughness, normal). Turning it on also turns on texture.",+ "type": "boolean",+ "disabled": true+ },+ "prompt": {+ "description": "Description of the 3D object: shape, material, style and scale. Up to 1024 characters.",+ "maxLength": 1024,+ "type": "string",+ "x-ui-component": "textarea"+ },+ "texture": {+ "default": true,+ "description": "Generate texture maps. Turn off (with pbr) for an untextured model at a lower price.",+ "type": "boolean",+ "disabled": true+ },+ "texture_quality": {+ "default": "standard",+ "description": "Texture quality: standard, detailed (high resolution), extreme (8K) or fast (same size as standard, quicker; uses texture model v3.5-20260815).",+ "enum": [+ "standard",+ "detailed",+ "extreme",+ "fast"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_seed": {+ "description": "Seed for the texture: keep model_seed and change texture_seed for new textures on the same mesh.",+ "type": "integer"+ },+ "texture_version": {+ "default": "v3.0-20250812",+ "description": "Texture model. v3.5-20260815 is the newest; the fast quality and delight use it.",+ "enum": [+ "v3.0-20250812",+ "v3.5-20260815"+ ],+ "type": "string",+ "x-ui-component": "select"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "negative_prompt",+ "image_seed",+ "texture",+ "pbr",+ "texture_quality",+ "texture_version",+ "delight",+ "face_limit",+ "auto_size",+ "export_uv",+ "model_seed",+ "texture_seed"+ ]+ },+ "tripo3d/p1/image-to-3d": {+ "additionalProperties": false,+ "properties": {+ "auto_size": {+ "default": false,+ "description": "Scale the model to real-world size in meters. Needs a textured model.",+ "type": "boolean"+ },+ "delight": {+ "default": true,+ "description": "Remove the lighting baked into the source before texturing (texture model v3.5-20260815 only).",+ "type": "boolean"+ },+ "enable_image_autofix": {+ "default": false,+ "description": "Improve a low-quality source image before generation. Takes longer.",+ "type": "boolean"+ },+ "export_uv": {+ "default": true,+ "description": "Unwrap UVs during generation. Turn off for faster generation and a smaller file.",+ "type": "boolean"+ },+ "face_limit": {+ "description": "Maximum number of faces, 50 to 20,000. Omit for adaptive.",+ "maximum": 20000,+ "minimum": 50,+ "type": "integer"+ },+ "image": {+ "description": "Image of the object (PNG, JPEG or WebP, up to 20 MB). A clean background and little occlusion work best.",+ "type": "string"+ },+ "model_seed": {+ "description": "Seed for the geometry: the same seed and input give the same mesh.",+ "type": "integer"+ },+ "orientation": {+ "default": "default",+ "description": "align_image rotates the model to the source image viewpoint (textured models only).",+ "enum": [+ "default",+ "align_image"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "pbr": {+ "default": true,+ "description": "Generate PBR materials (base color, metallic, roughness, normal). Turning it on also turns on texture.",+ "type": "boolean",+ "disabled": true+ },+ "texture": {+ "default": true,+ "description": "Generate texture maps. Turn off (with pbr) for an untextured model at a lower price.",+ "type": "boolean",+ "disabled": true+ },+ "texture_alignment": {+ "default": "original_image",+ "description": "What the texture follows: the source image colors or the generated geometry.",+ "enum": [+ "original_image",+ "geometry"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_quality": {+ "default": "standard",+ "description": "Texture quality: standard, detailed (high resolution), extreme (8K) or fast (same size as standard, quicker; uses texture model v3.5-20260815).",+ "enum": [+ "standard",+ "detailed",+ "extreme",+ "fast"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_seed": {+ "description": "Seed for the texture: keep model_seed and change texture_seed for new textures on the same mesh.",+ "type": "integer"+ },+ "texture_version": {+ "default": "v3.0-20250812",+ "description": "Texture model. v3.5-20260815 is the newest; the fast quality and delight use it.",+ "enum": [+ "v3.0-20250812",+ "v3.5-20260815"+ ],+ "type": "string",+ "x-ui-component": "select"+ }+ },+ "required": [+ "image"+ ],+ "type": "object",+ "x-order-properties": [+ "image",+ "texture",+ "pbr",+ "texture_quality",+ "texture_version",+ "delight",+ "face_limit",+ "texture_alignment",+ "orientation",+ "enable_image_autofix",+ "auto_size",+ "export_uv",+ "model_seed",+ "texture_seed"+ ]+ },+ "tripo3d/p1/multiview-to-3d": {+ "additionalProperties": false,+ "properties": {+ "auto_size": {+ "default": false,+ "description": "Scale the model to real-world size in meters. Needs a textured model.",+ "type": "boolean"+ },+ "delight": {+ "default": true,+ "description": "Remove the lighting baked into the source before texturing (texture model v3.5-20260815 only).",+ "type": "boolean"+ },+ "enable_image_autofix": {+ "default": false,+ "description": "Improve a low-quality source image before generation. Takes longer.",+ "type": "boolean"+ },+ "export_uv": {+ "default": true,+ "description": "Unwrap UVs during generation. Turn off for faster generation and a smaller file.",+ "type": "boolean"+ },+ "face_limit": {+ "description": "Maximum number of faces, 50 to 20,000. Omit for adaptive.",+ "maximum": 20000,+ "minimum": 50,+ "type": "integer"+ },+ "images": {+ "description": "2 to 4 images of the same object, in the order front, left, back, right. The front view is required.",+ "items": {+ "type": "string"+ },+ "maxItems": 4,+ "minItems": 2,+ "type": "array"+ },+ "model_seed": {+ "description": "Seed for the geometry: the same seed and input give the same mesh.",+ "type": "integer"+ },+ "orientation": {+ "default": "default",+ "description": "align_image rotates the model to the source image viewpoint (textured models only).",+ "enum": [+ "default",+ "align_image"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "pbr": {+ "default": true,+ "description": "Generate PBR materials (base color, metallic, roughness, normal). Turning it on also turns on texture.",+ "type": "boolean",+ "disabled": true+ },+ "texture": {+ "default": true,+ "description": "Generate texture maps. Turn off (with pbr) for an untextured model at a lower price.",+ "type": "boolean",+ "disabled": true+ },+ "texture_alignment": {+ "default": "original_image",+ "description": "What the texture follows: the source image colors or the generated geometry.",+ "enum": [+ "original_image",+ "geometry"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_quality": {+ "default": "standard",+ "description": "Texture quality: standard, detailed (high resolution), extreme (8K) or fast (same size as standard, quicker; uses texture model v3.5-20260815).",+ "enum": [+ "standard",+ "detailed",+ "extreme",+ "fast"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_seed": {+ "description": "Seed for the texture: keep model_seed and change texture_seed for new textures on the same mesh.",+ "type": "integer"+ },+ "texture_version": {+ "default": "v3.0-20250812",+ "description": "Texture model. v3.5-20260815 is the newest; the fast quality and delight use it.",+ "enum": [+ "v3.0-20250812",+ "v3.5-20260815"+ ],+ "type": "string",+ "x-ui-component": "select"+ }+ },+ "required": [+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "images",+ "texture",+ "pbr",+ "texture_quality",+ "texture_version",+ "delight",+ "face_limit",+ "texture_alignment",+ "orientation",+ "enable_image_autofix",+ "auto_size",+ "export_uv",+ "model_seed",+ "texture_seed"+ ]+ },+ "tripo3d/p2/text-to-3d": {+ "additionalProperties": false,+ "properties": {+ "auto_size": {+ "default": false,+ "description": "Scale the model to real-world size in meters. Needs a textured model.",+ "type": "boolean"+ },+ "delight": {+ "default": true,+ "description": "Remove the lighting baked into the source before texturing (texture model v3.5-20260815 only).",+ "type": "boolean"+ },+ "export_uv": {+ "default": true,+ "description": "Unwrap UVs during generation. Turn off for faster generation and a smaller file.",+ "type": "boolean"+ },+ "face_limit": {+ "description": "Maximum number of faces: 48 to 50,000 triangles, or 48 to 25,000 quads. Omit for adaptive; 150+ for simple objects, 250+ for complex ones.",+ "maximum": 50000,+ "minimum": 48,+ "type": "integer"+ },+ "image_seed": {+ "description": "Seed for the text-to-image step.",+ "type": "integer",+ "x-hidden": true+ },+ "model_seed": {+ "description": "Seed for the geometry: the same seed and input give the same mesh.",+ "type": "integer"+ },+ "negative_prompt": {+ "description": "What the model should avoid. Up to 255 characters.",+ "maxLength": 255,+ "type": "string"+ },+ "pbr": {+ "default": true,+ "description": "Generate PBR materials (base color, metallic, roughness, normal). Turning it on also turns on texture.",+ "type": "boolean",+ "disabled": true+ },+ "prompt": {+ "description": "Description of the 3D object: shape, material, style and scale. Up to 1024 characters.",+ "maxLength": 1024,+ "type": "string",+ "x-ui-component": "textarea"+ },+ "quad": {+ "default": false,+ "description": "Output a native quad mesh (FBX).",+ "type": "boolean",+ "disabled": true+ },+ "texture": {+ "default": true,+ "description": "Generate texture maps. Turn off (with pbr) for an untextured model at a lower price.",+ "type": "boolean",+ "disabled": true+ },+ "texture_quality": {+ "default": "standard",+ "description": "Texture quality: standard, detailed (high resolution), extreme (8K) or fast (same size as standard, quicker; uses texture model v3.5-20260815).",+ "enum": [+ "standard",+ "detailed",+ "extreme",+ "fast"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_seed": {+ "description": "Seed for the texture: keep model_seed and change texture_seed for new textures on the same mesh.",+ "type": "integer"+ },+ "texture_version": {+ "default": "v3.0-20250812",+ "description": "Texture model. v3.5-20260815 is the newest; the fast quality and delight use it.",+ "enum": [+ "v3.0-20250812",+ "v3.5-20260815"+ ],+ "type": "string",+ "x-ui-component": "select"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "negative_prompt",+ "image_seed",+ "texture",+ "pbr",+ "texture_quality",+ "texture_version",+ "delight",+ "quad",+ "face_limit",+ "auto_size",+ "export_uv",+ "model_seed",+ "texture_seed"+ ]+ },+ "tripo3d/p2/image-to-3d": {+ "additionalProperties": false,+ "properties": {+ "auto_size": {+ "default": false,+ "description": "Scale the model to real-world size in meters. Needs a textured model.",+ "type": "boolean"+ },+ "delight": {+ "default": true,+ "description": "Remove the lighting baked into the source before texturing (texture model v3.5-20260815 only).",+ "type": "boolean"+ },+ "enable_image_autofix": {+ "default": false,+ "description": "Improve a low-quality source image before generation. Takes longer.",+ "type": "boolean"+ },+ "export_uv": {+ "default": true,+ "description": "Unwrap UVs during generation. Turn off for faster generation and a smaller file.",+ "type": "boolean"+ },+ "face_limit": {+ "description": "Maximum number of faces: 48 to 50,000 triangles, or 48 to 25,000 quads. Omit for adaptive; 150+ for simple objects, 250+ for complex ones.",+ "maximum": 50000,+ "minimum": 48,+ "type": "integer"+ },+ "image": {+ "description": "Image of the object (PNG, JPEG or WebP, up to 20 MB). A clean background and little occlusion work best.",+ "type": "string"+ },+ "model_seed": {+ "description": "Seed for the geometry: the same seed and input give the same mesh.",+ "type": "integer"+ },+ "orientation": {+ "default": "default",+ "description": "align_image rotates the model to the source image viewpoint (textured models only).",+ "enum": [+ "default",+ "align_image"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "pbr": {+ "default": true,+ "description": "Generate PBR materials (base color, metallic, roughness, normal). Turning it on also turns on texture.",+ "type": "boolean",+ "disabled": true+ },+ "quad": {+ "default": false,+ "description": "Output a native quad mesh (FBX).",+ "type": "boolean",+ "disabled": true+ },+ "texture": {+ "default": true,+ "description": "Generate texture maps. Turn off (with pbr) for an untextured model at a lower price.",+ "type": "boolean",+ "disabled": true+ },+ "texture_alignment": {+ "default": "original_image",+ "description": "What the texture follows: the source image colors or the generated geometry.",+ "enum": [+ "original_image",+ "geometry"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_quality": {+ "default": "standard",+ "description": "Texture quality: standard, detailed (high resolution), extreme (8K) or fast (same size as standard, quicker; uses texture model v3.5-20260815).",+ "enum": [+ "standard",+ "detailed",+ "extreme",+ "fast"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_seed": {+ "description": "Seed for the texture: keep model_seed and change texture_seed for new textures on the same mesh.",+ "type": "integer"+ },+ "texture_version": {+ "default": "v3.0-20250812",+ "description": "Texture model. v3.5-20260815 is the newest; the fast quality and delight use it.",+ "enum": [+ "v3.0-20250812",+ "v3.5-20260815"+ ],+ "type": "string",+ "x-ui-component": "select"+ }+ },+ "required": [+ "image"+ ],+ "type": "object",+ "x-order-properties": [+ "image",+ "texture",+ "pbr",+ "texture_quality",+ "texture_version",+ "delight",+ "quad",+ "face_limit",+ "texture_alignment",+ "orientation",+ "enable_image_autofix",+ "auto_size",+ "export_uv",+ "model_seed",+ "texture_seed"+ ]+ },+ "tripo3d/p2/multiview-to-3d": {+ "additionalProperties": false,+ "properties": {+ "auto_size": {+ "default": false,+ "description": "Scale the model to real-world size in meters. Needs a textured model.",+ "type": "boolean"+ },+ "delight": {+ "default": true,+ "description": "Remove the lighting baked into the source before texturing (texture model v3.5-20260815 only).",+ "type": "boolean"+ },+ "enable_image_autofix": {+ "default": false,+ "description": "Improve a low-quality source image before generation. Takes longer.",+ "type": "boolean"+ },+ "export_uv": {+ "default": true,+ "description": "Unwrap UVs during generation. Turn off for faster generation and a smaller file.",+ "type": "boolean"+ },+ "face_limit": {+ "description": "Maximum number of faces: 48 to 50,000 triangles, or 48 to 25,000 quads. Omit for adaptive; 150+ for simple objects, 250+ for complex ones.",+ "maximum": 50000,+ "minimum": 48,+ "type": "integer"+ },+ "images": {+ "description": "2 to 4 images of the same object, in the order front, left, back, right. The front view is required.",+ "items": {+ "type": "string"+ },+ "maxItems": 4,+ "minItems": 2,+ "type": "array"+ },+ "model_seed": {+ "description": "Seed for the geometry: the same seed and input give the same mesh.",+ "type": "integer"+ },+ "orientation": {+ "default": "default",+ "description": "align_image rotates the model to the source image viewpoint (textured models only).",+ "enum": [+ "default",+ "align_image"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "pbr": {+ "default": true,+ "description": "Generate PBR materials (base color, metallic, roughness, normal). Turning it on also turns on texture.",+ "type": "boolean",+ "disabled": true+ },+ "quad": {+ "default": false,+ "description": "Output a native quad mesh (FBX).",+ "type": "boolean",+ "disabled": true+ },+ "texture": {+ "default": true,+ "description": "Generate texture maps. Turn off (with pbr) for an untextured model at a lower price.",+ "type": "boolean",+ "disabled": true+ },+ "texture_alignment": {+ "default": "original_image",+ "description": "What the texture follows: the source image colors or the generated geometry.",+ "enum": [+ "original_image",+ "geometry"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_quality": {+ "default": "standard",+ "description": "Texture quality: standard, detailed (high resolution), extreme (8K) or fast (same size as standard, quicker; uses texture model v3.5-20260815).",+ "enum": [+ "standard",+ "detailed",+ "extreme",+ "fast"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "texture_seed": {+ "description": "Seed for the texture: keep model_seed and change texture_seed for new textures on the same mesh.",+ "type": "integer"+ },+ "texture_version": {+ "default": "v3.0-20250812",+ "description": "Texture model. v3.5-20260815 is the newest; the fast quality and delight use it.",+ "enum": [+ "v3.0-20250812",+ "v3.5-20260815"+ ],+ "type": "string",+ "x-ui-component": "select"+ }+ },+ "required": [+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "images",+ "texture",+ "pbr",+ "texture_quality",+ "texture_version",+ "delight",+ "quad",+ "face_limit",+ "texture_alignment",+ "orientation",+ "enable_image_autofix",+ "auto_size",+ "export_uv",+ "model_seed",+ "texture_seed"+ ]+ },+ "hitem3d/hi3d-v3.0/image-to-3d": {+ "additionalProperties": false,+ "properties": {+ "enable_pbr": {+ "default": true,+ "description": "Generate PBR material maps with the texture. Ignored when enable_texture is false.",+ "type": "boolean",+ "disabled": true+ },+ "enable_texture": {+ "default": true,+ "description": "Generate textures in addition to the geometry mesh.",+ "type": "boolean",+ "disabled": true+ },+ "export_format": {+ "default": "glb",+ "description": "File format of the generated 3D model.",+ "enum": [+ "glb",+ "obj",+ "stl",+ "fbx",+ "usdz"+ ],+ "type": "string",+ "disabled": true+ },+ "face_count": {+ "default": 2000000,+ "description": "Optional target face count. Hi3D recommends 2,000,000 for 2048quality and 5,000,000 for 2048master.",+ "maximum": 5000000,+ "minimum": 100000,+ "step": 1,+ "type": "integer",+ "x-ui-component": "slider"+ },+ "image": {+ "description": "Reference image for 3D model creation. PNG, JPEG, and WebP are supported, up to 20 MB.",+ "type": "string"+ },+ "resolution": {+ "default": "2048quality",+ "description": "Generation quality tier. 2048quality is faster; 2048master provides the highest quality.",+ "enum": [+ "2048quality",+ "2048master"+ ],+ "type": "string",+ "disabled": true+ },+ "shading": {+ "default": 0.5,+ "description": "De-shading strength applied to the input image.",+ "maximum": 1,+ "minimum": 0,+ "step": 0.1,+ "type": "number",+ "x-ui-component": "slider"+ }+ },+ "required": [+ "image"+ ],+ "type": "object",+ "x-order-properties": [+ "image",+ "resolution",+ "enable_texture",+ "enable_pbr",+ "face_count",+ "export_format",+ "shading"+ ]+ },+ "hitem3d/hi3d-v3.0/multi-view-to-3d": {+ "additionalProperties": false,+ "properties": {+ "back_image": {+ "description": "Optional back-view reference image, up to 20 MB.",+ "type": "string"+ },+ "enable_pbr": {+ "default": true,+ "description": "Generate PBR material maps with the texture. Ignored when enable_texture is false.",+ "type": "boolean",+ "disabled": true+ },+ "enable_texture": {+ "default": true,+ "description": "Generate textures in addition to the geometry mesh.",+ "type": "boolean",+ "disabled": true+ },+ "export_format": {+ "default": "glb",+ "description": "File format of the generated 3D model.",+ "enum": [+ "glb",+ "obj",+ "stl",+ "fbx",+ "usdz"+ ],+ "type": "string",+ "disabled": true+ },+ "face_count": {+ "default": 2000000,+ "description": "Optional target face count. Hi3D recommends 2,000,000 for 2048quality and 5,000,000 for 2048master.",+ "maximum": 5000000,+ "minimum": 100000,+ "step": 1,+ "type": "integer",+ "x-ui-component": "slider"+ },+ "front_image": {+ "description": "Front-view reference image. PNG, JPEG, and WebP are supported, up to 20 MB.",+ "minLength": 1,+ "type": "string"+ },+ "images": {+ "description": "2 to 4 pictures of the same object, in the order front, left, back, right.",+ "items": {+ "type": "string"+ },+ "maxItems": 4,+ "minItems": 2,+ "type": "array",+ "x-lu-views": [+ "front_image",+ "left_image",+ "back_image",+ "right_image"+ ]+ },+ "left_image": {+ "description": "Optional left-view reference image, up to 20 MB.",+ "type": "string"+ },+ "resolution": {+ "default": "2048quality",+ "description": "Generation quality tier. 2048quality is faster; 2048master provides the highest quality.",+ "enum": [+ "2048quality",+ "2048master"+ ],+ "type": "string",+ "disabled": true+ },+ "right_image": {+ "description": "Optional right-view reference image, up to 20 MB.",+ "type": "string"+ },+ "shading": {+ "default": 0.5,+ "description": "De-shading strength applied to the input images.",+ "maximum": 1,+ "minimum": 0,+ "step": 0.1,+ "type": "number",+ "x-ui-component": "slider"+ }+ },+ "required": [+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "images",+ "front_image",+ "back_image",+ "left_image",+ "right_image",+ "resolution",+ "enable_texture",+ "enable_pbr",+ "face_count",+ "export_format",+ "shading"+ ]}}diff --git a/src/lib/render/studio-contract.ts b/src/lib/render/studio-contract.tsindex 20572a28..53c8e8d7 100644--- a/src/lib/render/studio-contract.ts+++ b/src/lib/render/studio-contract.ts@@ -2,7 +2,7 @@import definitions from './studio-models.json'import schemas from './provider-schemas.json'import endpoints from './provider-endpoints.json'-export type Schema = { type?: string; properties?: Record<string, Schema>; required?: string[]; enum?: unknown[]; default?: unknown; minimum?: number; maximum?: number; minItems?: number; maxItems?: number; items?: Schema; description?: string; disabled?: boolean; format?: string }+export type Schema = { type?: string; properties?: Record<string, Schema>; required?: string[]; enum?: unknown[]; default?: unknown; minimum?: number; maximum?: number; minItems?: number; maxItems?: number; items?: Schema; description?: string; disabled?: boolean; format?: string; 'x-lu-views'?: string[] }// Stufe und Herkunft jedes Cloud-Modells (02.10.2026, Entscheid des Inhabers).// `tier` ordnet die Waehler: 'best' steht oben, 'older' gesammelt unten.// `weights` sagt, ob genau diese Version offene Gewichte hat ('open'), nur ihre@@ -24,7 +24,10 @@ export interface StudioModel {// gemessenen Eingabe. Alle vier sind an POST /model/price gemessen.price: { mode: string; rates: Record<string, number>; maxSeconds?: number; extraImage?: numberresolutionField?: string; durationField?: string; unitDivisor?: number; blockSeconds?: number; minSeconds?: number- perUnitField?: string }+ perUnitField?: string+ // `extraViews` (14.11.2026, Hunyuan3D 3): one flat surcharge as soon as a+ // run has more than one picture, however many further sides it has.+ extraViews?: number }}export const STUDIO_MODELS = definitions as Record<string, StudioModel>export function studioSchema(id: string): Schema {@@ -139,12 +142,14 @@ export function studioCredits(id: string, options: Record<string,unknown>, measu// Ein abgeschaltetes Feld (num_images) fehlt in den Optionen: der Anbieter nimmt dann seinen Standard 1.const units = m.price.perUnitField ? Number(options[m.price.perUnitField] ?? 1) : 1if (!Number.isFinite(units) || units <= 0) throw new Error('Invalid size')- return Math.ceil((rate * seconds * units + (m.price.extraImage ?? 0) * Math.max(0,imageCount-1)) * 100000 - 1e-8)+ return Math.ceil((rate * seconds * units + (m.price.extraImage ?? 0) * Math.max(0,imageCount-1) + (imageCount > 1 ? m.price.extraViews ?? 0 : 0)) * 100000 - 1e-8)}export function studioBaseCredits(id: string): number {const schema = studioSchema(id), m = STUDIO_MODELS[id]const options: Record<string, unknown> = { ...m.defaults }- for (const [key, s] of Object.entries(schema.properties ?? {})) if (!(key in options) && s.default !== undefined) options[key] = s.default+ // A disabled field never goes out (14.11.2026): the provider takes its own+ // default, which the run's price already is (Hi3D's resolution).+ for (const [key, s] of Object.entries(schema.properties ?? {})) if (!(key in options) && s.default !== undefined && !s.disabled) options[key] = s.defaultreturn studioCredits(id,options,5)}diff --git a/src/lib/render/studio-models.json b/src/lib/render/studio-models.jsonindex 491a0d74..0bfee4de 100644--- a/src/lib/render/studio-models.json+++ b/src/lib/render/studio-models.json@@ -1512,5 +1512,286 @@"defaults": {},"typical_s": 60,"baselineUsd": 0.6+ },+ "hunyuan-3d-v3-text": {+ "label": "Hunyuan3D 3",+ "endpoint": "base/hunyuan3d-v3/text-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "open-family",+ "price": {+ "mode": "flat",+ "rates": {+ "default": 0.63+ }+ },+ "inputs": {},+ "defaults": {},+ "typical_s": 244,+ "baselineUsd": 0.3+ },+ "hunyuan-3d-v3-image": {+ "label": "Hunyuan3D 3",+ "endpoint": "base/hunyuan3d-v3/image-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "open-family",+ "price": {+ "mode": "flat",+ "rates": {+ "default": 0.63+ },+ "extraViews": 0.18+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "typical_s": 143,+ "baselineUsd": 0.3+ },+ "meshy-7.1-text": {+ "label": "Meshy 7.1",+ "endpoint": "meshy/v7.1/text-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "default": 1.2+ }+ },+ "inputs": {},+ "defaults": {},+ "typical_s": 103,+ "baselineUsd": 1.2+ },+ "meshy-7.1-image": {+ "label": "Meshy 7.1",+ "endpoint": "meshy/v7.1/image-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "true": 1.2,+ "false": 0.8+ },+ "resolutionField": "should_texture"+ },+ "inputs": {+ "image": "source_path"+ },+ "defaults": {},+ "typical_s": 81,+ "baselineUsd": 1.2+ },+ "meshy-7.1-multi": {+ "label": "Meshy 7.1 \u2022 Multi-image",+ "endpoint": "meshy/v7.1/multi-image-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "true": 1.2,+ "false": 0.8+ },+ "resolutionField": "should_texture"+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "typical_s": 121,+ "baselineUsd": 1.2+ },+ "tripo-p1-text": {+ "label": "Tripo P1",+ "endpoint": "tripo3d/p1/text-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "standard": 0.48,+ "fast": 0.48,+ "detailed": 0.6,+ "extreme": 0.72+ },+ "resolutionField": "texture_quality"+ },+ "inputs": {},+ "defaults": {},+ "typical_s": 59,+ "baselineUsd": 0.48+ },+ "tripo-p1-image": {+ "label": "Tripo P1",+ "endpoint": "tripo3d/p1/image-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "standard": 0.6,+ "fast": 0.6,+ "detailed": 0.72,+ "extreme": 0.84+ },+ "resolutionField": "texture_quality"+ },+ "inputs": {+ "image": "source_path"+ },+ "defaults": {},+ "typical_s": 72,+ "baselineUsd": 0.6+ },+ "tripo-p1-multiview": {+ "label": "Tripo P1 \u2022 Multiview",+ "endpoint": "tripo3d/p1/multiview-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "standard": 0.6,+ "fast": 0.6,+ "detailed": 0.72,+ "extreme": 0.84+ },+ "resolutionField": "texture_quality"+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "typical_s": 77,+ "baselineUsd": 0.6+ },+ "tripo-p2-text": {+ "label": "Tripo P2",+ "endpoint": "tripo3d/p2/text-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "standard": 1.32,+ "fast": 1.32,+ "detailed": 1.44,+ "extreme": 1.56+ },+ "resolutionField": "texture_quality"+ },+ "inputs": {},+ "defaults": {},+ "typical_s": 103,+ "baselineUsd": 1.32+ },+ "tripo-p2-image": {+ "label": "Tripo P2",+ "endpoint": "tripo3d/p2/image-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "standard": 1.32,+ "fast": 1.32,+ "detailed": 1.44,+ "extreme": 1.56+ },+ "resolutionField": "texture_quality"+ },+ "inputs": {+ "image": "source_path"+ },+ "defaults": {},+ "typical_s": 85,+ "baselineUsd": 1.32+ },+ "tripo-p2-multiview": {+ "label": "Tripo P2 \u2022 Multiview",+ "endpoint": "tripo3d/p2/multiview-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "standard": 1.32,+ "fast": 1.32,+ "detailed": 1.44,+ "extreme": 1.56+ },+ "resolutionField": "texture_quality"+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "typical_s": 101,+ "baselineUsd": 1.32+ },+ "hi3d-3.0-image": {+ "label": "Hi3D 3.0",+ "endpoint": "hitem3d/hi3d-v3.0/image-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "default": 2.52+ }+ },+ "inputs": {+ "image": "source_path"+ },+ "defaults": {},+ "typical_s": 581,+ "baselineUsd": 2.52+ },+ "hi3d-3.0-multiview": {+ "label": "Hi3D 3.0 \u2022 Multiview",+ "endpoint": "hitem3d/hi3d-v3.0/multi-view-to-3d",+ "kind": "3d",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "default": 2.52+ }+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "typical_s": 691,+ "baselineUsd": 2.52}}diff --git a/src/lib/three/__tests__/three-d-wave2.test.ts b/src/lib/three/__tests__/three-d-wave2.test.tsnew file mode 100644index 00000000..d9c07e54--- /dev/null+++ b/src/lib/three/__tests__/three-d-wave2.test.ts@@ -0,0 +1,83 @@+// The second cloud wave of 3D (14.11.2026): thirteen studio models, taken+// over field for field from the web snapshot. Prices follow the formula on the+// provider's model pages until the measurement at /model/price.+import { beforeEach, describe, expect, it } from 'vitest'+import { STUDIO_MODELS, studioBaseCredits, studioCredits, studioFields, studioOptions, studioSchema } from '../../render/studio-contract'+import { presetModels, type StepRole } from '../../render/preset-models'+import { cloudDetailOf, threeDControlFacts, threeDDetailField, threeDMaxViews } from '../three-d-models'+import { useCloudCatalogStore } from '../../../stores/cloudCatalogStore'+import { neuerServer } from '../../render/__tests__/fixtures/test-catalogs'++// A server that lists every studio model, the second wave included.+beforeEach(() => {+ useCloudCatalogStore.setState({ models: neuerServer() })+})++const WAVE2 = [+ 'hunyuan-3d-v3-text', 'hunyuan-3d-v3-image',+ 'meshy-7.1-text', 'meshy-7.1-image', 'meshy-7.1-multi',+ 'tripo-p1-text', 'tripo-p1-image', 'tripo-p1-multiview',+ 'tripo-p2-text', 'tripo-p2-image', 'tripo-p2-multiview',+ 'hi3d-3.0-image', 'hi3d-3.0-multiview',+]++const roleOf = (id: string): StepRole[] =>+ (['mesh-text', 'mesh-image', 'mesh-views'] as StepRole[]).filter((r) => presetModels(r).some((m) => m.id === id))++describe('3D, second cloud wave', () => {+ it('every model is a 3D studio model, filtered until a measurement says otherwise', () => {+ for (const id of WAVE2) {+ expect(STUDIO_MODELS[id], id).toMatchObject({ kind: '3d', adult: false })+ expect(STUDIO_MODELS[id].typical_s, id).toBeGreaterThan(0)+ expect(() => studioOptions(id, 'a clay teapot', {}), id).not.toThrow()+ }+ })++ it('each stands in the way its inputs name', () => {+ for (const id of ['hunyuan-3d-v3-text', 'meshy-7.1-text', 'tripo-p1-text', 'tripo-p2-text']) expect(roleOf(id), id).toEqual(['mesh-text'])+ for (const id of ['meshy-7.1-image', 'tripo-p1-image', 'tripo-p2-image', 'hi3d-3.0-image']) expect(roleOf(id), id).toEqual(['mesh-image'])+ for (const id of ['hunyuan-3d-v3-image', 'meshy-7.1-multi', 'tripo-p1-multiview', 'tripo-p2-multiview', 'hi3d-3.0-multiview']) {+ expect(roleOf(id), id).toEqual(['mesh-views'])+ expect(threeDMaxViews(id), id).toBe(4)+ }+ expect(threeDMaxViews('hi3d-3.0-image')).toBe(1)+ })++ it('the Detail step moves the texture quality of Tripo P1 and P2 and nothing on the others', () => {+ for (const id of ['tripo-p1-text', 'tripo-p2-image', 'tripo-p2-multiview']) {+ expect(threeDDetailField(id)?.field, id).toBe('texture_quality')+ expect(cloudDetailOf(threeDDetailField(id)!, undefined, id), id).toBe('draft')+ }+ for (const id of ['hunyuan-3d-v3-text', 'hunyuan-3d-v3-image', 'meshy-7.1-image', 'hi3d-3.0-image', 'hi3d-3.0-multiview']) {+ expect(threeDDetailField(id), id).toBeNull()+ expect(threeDControlFacts('cloud', id).hasDetail, id).toBe(false)+ }+ })++ it('no field that changes the price or the file format can be chosen', () => {+ for (const id of ['hi3d-3.0-image', 'hi3d-3.0-multiview']) {+ expect(studioFields(id), id).not.toHaveProperty('resolution')+ expect(studioFields(id), id).not.toHaveProperty('export_format')+ expect(studioSchema(id).properties?.export_format?.default, id).toBe('glb')+ }+ for (const id of ['tripo-p2-text', 'tripo-p2-image', 'tripo-p2-multiview']) expect(studioFields(id), id).not.toHaveProperty('quad')+ for (const id of ['meshy-7.1-text', 'meshy-7.1-image', 'meshy-7.1-multi']) {+ for (const k of ['enable_rigging', 'enable_animation', 'texture_resolution', 'geometry_resolution']) expect(studioFields(id), `${id}.${k}`).not.toHaveProperty(k)+ }+ // The named sides are pictures, never an option.+ for (const k of ['image', 'left_image', 'back_image', 'right_image']) expect(studioFields('hunyuan-3d-v3-image'), k).not.toHaveProperty(k)+ })++ it('prices: the base of each model, and Hunyuan3D 3 charges one surcharge for further sides', () => {+ expect(Object.fromEntries(WAVE2.map((id) => [id, studioBaseCredits(id)]))).toEqual({+ 'hunyuan-3d-v3-text': 63_000, 'hunyuan-3d-v3-image': 63_000,+ 'meshy-7.1-text': 120_000, 'meshy-7.1-image': 120_000, 'meshy-7.1-multi': 120_000,+ 'tripo-p1-text': 48_000, 'tripo-p1-image': 60_000, 'tripo-p1-multiview': 60_000,+ 'tripo-p2-text': 132_000, 'tripo-p2-image': 132_000, 'tripo-p2-multiview': 132_000,+ 'hi3d-3.0-image': 252_000, 'hi3d-3.0-multiview': 252_000,+ })+ const o = studioOptions('hunyuan-3d-v3-image', '', {}, false)+ expect([1, 2, 4].map((n) => studioCredits('hunyuan-3d-v3-image', o, undefined, n))).toEqual([63_000, 81_000, 81_000])+ expect(studioCredits('meshy-7.1-image', studioOptions('meshy-7.1-image', '', { should_texture: false }, false))).toBe(80_000)+ })+})