addedInput schema / $schema
Added value: +"http://json-schema.org/draft-07/schema#"
addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / imageConfig
Added value: +{
+ "additionalProperties": false,
+ "properties": {
+ "aspectRatio": {
+ "enum": [
+ "1:1",
+ "2:3",
+ "3:2",
+ "3:4",
+ "4:3",
+ "4:5",
+ "5:4",
+ "9:16",
+ "16:9",
+ "21:9",
+ "1:4",
+ "4:1",
+ "1:8",
+ "8:1"
+ ],
+ "type": "string"
+ },
+ "imageSize": {
+ "enum": [
+ "1K",
+ "2K",
+ "4K"
+ ],
+ "type": "string"
+ },
+ "quality": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+}
addedInput schema / properties / model
Added value: +{
+ "description": "图片生成模型,默认 gemini-3-pro-image。选择建议:gemini-3-pro-image 综合最强、指令遵循和文字渲染好(15 积分/1K-2K);gemini-3.1-flash-image 快速便宜的日常生成(10 积分);gpt-image-2 性价比最高(4 积分起);gpt-image-2.5-flare 偏快速出图,gpt-image-2.5-sunburst 偏细节密集;两者同价,具体尺寸和积分先用 estimate_credits 查询;wan2.7-image-pro / wan2.7-image 写实与海报风格;seedream-5-0-pro 擅长精准局部编辑(配合参考图使用)",
+ "enum": [
+ "gemini-3-pro-image",
+ "gemini-3.1-flash-image",
+ "gpt-image-2",
+ "gpt-image-2.5-flare",
+ "gpt-image-2.5-sunburst",
+ "wan2.7-image-pro",
+ "wan2.7-image",
+ "seedream-5-0-pro"
+ ],
+ "type": "string"
+}
addedInput schema / properties / outputMode
Added value: +{
+ "description": "结果返回方式:hybrid(默认)保存原图并内联有界预览,跨客户端兼容性最好;file 只保存原图并返回定位信息;inline 不保存到 saveDir,有 URL 时返回有界预览,无 URL 时把原图保存到默认恢复目录并返回有界预览",
+ "enum": [
+ "hybrid",
+ "file",
+ "inline"
+ ],
+ "type": "string"
+}
addedInput schema / properties / prompt
Added value: +{
+ "minLength": 1,
+ "type": "string"
+}
addedInput schema / properties / referenceImages
Added value: +{
+ "description": "图生图 / 改图的参考图片,支持 fileUri(gs:// 或 https://)或 base64 inlineData",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "fileData": {
+ "additionalProperties": false,
+ "properties": {
+ "fileUri": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "mimeType": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "fileUri"
+ ],
+ "type": "object"
+ },
+ "inlineData": {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "mimeType": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "maxItems": 14,
+ "type": "array"
+}
addedInput schema / properties / saveDir
Added value: +{
+ "description": "hybrid/file 模式下的保存目录,默认取 LABNANA_OUTPUT_DIR 或当前目录下的 labnana-images/",
+ "minLength": 1,
+ "type": "string"
+}
addedInput schema / properties / timeoutSeconds
Added value: +{
+ "description": "生成总超时秒数,默认 300(仅 4K 等异步路径需要等待时生效)",
+ "maximum": 3600,
+ "minimum": 1,
+ "type": "integer"
+}
addedInput schema / required
Added value: +[
+ "prompt"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "details": {},
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "message"
+ ],
+ "type": "object"
+ },
+ "generation": {
+ "additionalProperties": false,
+ "properties": {
+ "finishReason": {
+ "type": "string"
+ },
+ "modelVersion": {
+ "type": "string"
+ },
+ "responseId": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "images": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "byteLength": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "filePath": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "height": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "index": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "mimeType": {
+ "type": "string"
+ },
+ "preview": {
+ "additionalProperties": false,
+ "properties": {
+ "byteLength": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "height": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "included": {
+ "type": "boolean"
+ },
+ "mimeType": {
+ "type": "string"
+ },
+ "width": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "included"
+ ],
+ "type": "object"
+ },
+ "sha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "width": {
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "index",
+ "mimeType",
+ "preview"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "status": {
+ "enum": [
+ "succeeded",
+ "pending",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "taskId": {
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schemaVersion",
+ "status",
+ "images"
+ ],
+ "type": "object"
+}