@sogni-ai/sogni-intelligence-client 4.23.0 → 4.25.0

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.
Files changed (93) hide show
  1. package/dist/contracts/imagePrompt.d.ts.map +1 -1
  2. package/dist/contracts/imagePrompt.js +6 -3
  3. package/dist/contracts/imagePrompt.js.map +1 -1
  4. package/dist/mcp/index.d.ts +1254 -0
  5. package/dist/mcp/index.d.ts.map +1 -0
  6. package/dist/mcp/index.js +199 -0
  7. package/dist/mcp/index.js.map +1 -0
  8. package/dist/mcp/manifest.generated.d.ts +1240 -0
  9. package/dist/mcp/manifest.generated.d.ts.map +1 -0
  10. package/dist/mcp/manifest.generated.js +5 -0
  11. package/dist/mcp/manifest.generated.js.map +1 -0
  12. package/dist/media/gptImage.d.ts +15 -4
  13. package/dist/media/gptImage.d.ts.map +1 -1
  14. package/dist/media/gptImage.js +55 -7
  15. package/dist/media/gptImage.js.map +1 -1
  16. package/dist/media/imageEditRouting.d.ts +1 -1
  17. package/dist/media/imageEditRouting.d.ts.map +1 -1
  18. package/dist/media/imageEditRouting.js +1 -1
  19. package/dist/media/imageEditRouting.js.map +1 -1
  20. package/dist/openai-tools/_manifests.generated.d.ts.map +1 -1
  21. package/dist/openai-tools/_manifests.generated.js +45 -6
  22. package/dist/openai-tools/_manifests.generated.js.map +1 -1
  23. package/dist/openai-tools/generation-tools.json +45 -6
  24. package/dist/prompt-guides/image.js +2 -2
  25. package/dist/prompt-guides/image.js.map +1 -1
  26. package/dist/schemas/mcp/approve_cost.schema.json +57 -0
  27. package/dist/schemas/mcp/cancel_job.schema.json +26 -0
  28. package/dist/schemas/mcp/create_upload.schema.json +27 -0
  29. package/dist/schemas/mcp/generate_audio.schema.json +112 -0
  30. package/dist/schemas/mcp/generate_image.schema.json +115 -0
  31. package/dist/schemas/mcp/generate_video.schema.json +151 -0
  32. package/dist/schemas/mcp/get_balance.schema.json +9 -0
  33. package/dist/schemas/mcp/get_job.schema.json +37 -0
  34. package/dist/schemas/mcp/list_models.schema.json +33 -0
  35. package/dist/schemas/mcp/quote.schema.json +26 -0
  36. package/dist/schemas/mcp/result.schema.json +27 -0
  37. package/dist/schemas/mcp/run_creative_agent.schema.json +81 -0
  38. package/dist/schemas/mcp/transform_media.schema.json +97 -0
  39. package/dist/schemas/tools/edit_image.schema.json +17 -2
  40. package/dist/schemas/tools/generate_image.schema.json +32 -8
  41. package/dist/tools/definitions/edit-image/definition.d.ts.map +1 -1
  42. package/dist/tools/definitions/edit-image/definition.js +4 -0
  43. package/dist/tools/definitions/edit-image/definition.js.map +1 -1
  44. package/dist/tools/definitions/generate-image/definition.d.ts.map +1 -1
  45. package/dist/tools/definitions/generate-image/definition.js +6 -3
  46. package/dist/tools/definitions/generate-image/definition.js.map +1 -1
  47. package/dist/tools/shared/modelRegistry.d.ts +6 -0
  48. package/dist/tools/shared/modelRegistry.d.ts.map +1 -1
  49. package/dist/tools/shared/modelRegistry.js +4 -0
  50. package/dist/tools/shared/modelRegistry.js.map +1 -1
  51. package/dist/utils/imageReferenceModelIds.js +1 -1
  52. package/dist/utils/imageReferenceModelIds.js.map +1 -1
  53. package/dist-esm/contracts/imagePrompt.js +6 -3
  54. package/dist-esm/contracts/imagePrompt.js.map +1 -1
  55. package/dist-esm/mcp/index.js +193 -0
  56. package/dist-esm/mcp/index.js.map +1 -0
  57. package/dist-esm/mcp/manifest.generated.js +2 -0
  58. package/dist-esm/mcp/manifest.generated.js.map +1 -0
  59. package/dist-esm/media/gptImage.js +53 -7
  60. package/dist-esm/media/gptImage.js.map +1 -1
  61. package/dist-esm/media/imageEditRouting.js +1 -1
  62. package/dist-esm/media/imageEditRouting.js.map +1 -1
  63. package/dist-esm/openai-tools/_manifests.generated.js +45 -6
  64. package/dist-esm/openai-tools/_manifests.generated.js.map +1 -1
  65. package/dist-esm/openai-tools/generation-tools.json +45 -6
  66. package/dist-esm/prompt-guides/image.js +2 -2
  67. package/dist-esm/prompt-guides/image.js.map +1 -1
  68. package/dist-esm/schemas/mcp/approve_cost.schema.json +57 -0
  69. package/dist-esm/schemas/mcp/cancel_job.schema.json +26 -0
  70. package/dist-esm/schemas/mcp/create_upload.schema.json +27 -0
  71. package/dist-esm/schemas/mcp/generate_audio.schema.json +112 -0
  72. package/dist-esm/schemas/mcp/generate_image.schema.json +115 -0
  73. package/dist-esm/schemas/mcp/generate_video.schema.json +151 -0
  74. package/dist-esm/schemas/mcp/get_balance.schema.json +9 -0
  75. package/dist-esm/schemas/mcp/get_job.schema.json +37 -0
  76. package/dist-esm/schemas/mcp/list_models.schema.json +33 -0
  77. package/dist-esm/schemas/mcp/quote.schema.json +26 -0
  78. package/dist-esm/schemas/mcp/result.schema.json +27 -0
  79. package/dist-esm/schemas/mcp/run_creative_agent.schema.json +81 -0
  80. package/dist-esm/schemas/mcp/transform_media.schema.json +97 -0
  81. package/dist-esm/schemas/tools/edit_image.schema.json +17 -2
  82. package/dist-esm/schemas/tools/generate_image.schema.json +32 -8
  83. package/dist-esm/tools/definitions/edit-image/definition.js +4 -0
  84. package/dist-esm/tools/definitions/edit-image/definition.js.map +1 -1
  85. package/dist-esm/tools/definitions/generate-image/definition.js +6 -3
  86. package/dist-esm/tools/definitions/generate-image/definition.js.map +1 -1
  87. package/dist-esm/tools/shared/modelRegistry.js +4 -0
  88. package/dist-esm/tools/shared/modelRegistry.js.map +1 -1
  89. package/dist-esm/utils/imageReferenceModelIds.js +1 -1
  90. package/dist-esm/utils/imageReferenceModelIds.js.map +1 -1
  91. package/mcp/index.d.ts +1 -0
  92. package/mcp/index.js +1 -0
  93. package/package.json +20 -7
@@ -0,0 +1,115 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/mcp/v1/generate_image.schema.json",
4
+ "title": "Sogni MCP generate_image",
5
+ "type": "object",
6
+ "properties": {
7
+ "prompt": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "maxLength": 64000,
11
+ "description": "Complete user prompt; preserve all requested details."
12
+ },
13
+ "model": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 256,
17
+ "description": "Concrete model ID from list_models."
18
+ },
19
+ "parameters": {
20
+ "type": "object",
21
+ "additionalProperties": true,
22
+ "description": "Additional native Sogni tool parameters. Preserved and validated by the API; do not duplicate named fields."
23
+ },
24
+ "reference_images": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string",
28
+ "format": "uri",
29
+ "pattern": "^https://.+",
30
+ "maxLength": 16384,
31
+ "description": "HTTPS media download URL; never a local path or upload URL."
32
+ },
33
+ "maxItems": 16
34
+ },
35
+ "reference_audios": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string",
39
+ "format": "uri",
40
+ "pattern": "^https://.+",
41
+ "maxLength": 16384,
42
+ "description": "HTTPS media download URL; never a local path or upload URL."
43
+ },
44
+ "maxItems": 16
45
+ },
46
+ "reference_videos": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": "string",
50
+ "format": "uri",
51
+ "pattern": "^https://.+",
52
+ "maxLength": 16384,
53
+ "description": "HTTPS media download URL; never a local path or upload URL."
54
+ },
55
+ "maxItems": 16
56
+ },
57
+ "token_type": {
58
+ "type": "string",
59
+ "enum": [
60
+ "auto",
61
+ "spark",
62
+ "sogni"
63
+ ],
64
+ "description": "Payment currency. Auto follows account coverage."
65
+ },
66
+ "billing_mode": {
67
+ "type": "string",
68
+ "enum": [
69
+ "auto",
70
+ "subscription",
71
+ "tokens"
72
+ ],
73
+ "description": "Billing preference passed to Sogni. Auto uses eligible subscription coverage; tokens opts into token billing. Premium models retain their normal charges."
74
+ },
75
+ "request_id": {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "maxLength": 128,
79
+ "description": "Stable unique request ID for this operation. Reuse it when retrying the same request; change it for new work.",
80
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
81
+ },
82
+ "width": {
83
+ "type": "integer",
84
+ "minimum": 1
85
+ },
86
+ "height": {
87
+ "type": "integer",
88
+ "minimum": 1
89
+ },
90
+ "count": {
91
+ "type": "integer",
92
+ "minimum": 1
93
+ },
94
+ "seed": {
95
+ "type": "integer"
96
+ },
97
+ "mask": {
98
+ "type": "string",
99
+ "format": "uri",
100
+ "pattern": "^https://.+",
101
+ "maxLength": 16384,
102
+ "description": "HTTPS media download URL; never a local path or upload URL."
103
+ },
104
+ "safe_content_filter": {
105
+ "type": "boolean",
106
+ "description": "Use the user's chosen content-filter setting. Omit to retain the normal Sogni API default."
107
+ }
108
+ },
109
+ "required": [
110
+ "prompt",
111
+ "model",
112
+ "request_id"
113
+ ],
114
+ "additionalProperties": false
115
+ }
@@ -0,0 +1,151 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/mcp/v1/generate_video.schema.json",
4
+ "title": "Sogni MCP generate_video",
5
+ "type": "object",
6
+ "properties": {
7
+ "prompt": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "maxLength": 64000,
11
+ "description": "Complete user prompt; preserve all requested details."
12
+ },
13
+ "model": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 256,
17
+ "description": "Concrete model ID from list_models."
18
+ },
19
+ "parameters": {
20
+ "type": "object",
21
+ "additionalProperties": true,
22
+ "description": "Additional native Sogni tool parameters. Preserved and validated by the API; do not duplicate named fields."
23
+ },
24
+ "reference_images": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string",
28
+ "format": "uri",
29
+ "pattern": "^https://.+",
30
+ "maxLength": 16384,
31
+ "description": "HTTPS media download URL; never a local path or upload URL."
32
+ },
33
+ "maxItems": 16
34
+ },
35
+ "reference_audios": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string",
39
+ "format": "uri",
40
+ "pattern": "^https://.+",
41
+ "maxLength": 16384,
42
+ "description": "HTTPS media download URL; never a local path or upload URL."
43
+ },
44
+ "maxItems": 16
45
+ },
46
+ "reference_videos": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": "string",
50
+ "format": "uri",
51
+ "pattern": "^https://.+",
52
+ "maxLength": 16384,
53
+ "description": "HTTPS media download URL; never a local path or upload URL."
54
+ },
55
+ "maxItems": 16
56
+ },
57
+ "token_type": {
58
+ "type": "string",
59
+ "enum": [
60
+ "auto",
61
+ "spark",
62
+ "sogni"
63
+ ],
64
+ "description": "Payment currency. Auto follows account coverage."
65
+ },
66
+ "billing_mode": {
67
+ "type": "string",
68
+ "enum": [
69
+ "auto",
70
+ "subscription",
71
+ "tokens"
72
+ ],
73
+ "description": "Billing preference passed to Sogni. Auto uses eligible subscription coverage; tokens opts into token billing. Premium models retain their normal charges."
74
+ },
75
+ "request_id": {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "maxLength": 128,
79
+ "description": "Stable unique request ID for this operation. Reuse it when retrying the same request; change it for new work.",
80
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
81
+ },
82
+ "mode": {
83
+ "type": "string",
84
+ "enum": [
85
+ "t2v",
86
+ "i2v",
87
+ "flf",
88
+ "r2v",
89
+ "a2v",
90
+ "ia2v",
91
+ "flfa2v",
92
+ "v2v"
93
+ ]
94
+ },
95
+ "duration": {
96
+ "type": "number",
97
+ "exclusiveMinimum": 0
98
+ },
99
+ "first_frame": {
100
+ "type": "string",
101
+ "format": "uri",
102
+ "pattern": "^https://.+",
103
+ "maxLength": 16384,
104
+ "description": "HTTPS media download URL; never a local path or upload URL."
105
+ },
106
+ "last_frame": {
107
+ "type": "string",
108
+ "format": "uri",
109
+ "pattern": "^https://.+",
110
+ "maxLength": 16384,
111
+ "description": "HTTPS media download URL; never a local path or upload URL."
112
+ },
113
+ "audio": {
114
+ "type": "string",
115
+ "format": "uri",
116
+ "pattern": "^https://.+",
117
+ "maxLength": 16384,
118
+ "description": "HTTPS media download URL; never a local path or upload URL."
119
+ },
120
+ "source_video": {
121
+ "type": "string",
122
+ "format": "uri",
123
+ "pattern": "^https://.+",
124
+ "maxLength": 16384,
125
+ "description": "HTTPS media download URL; never a local path or upload URL."
126
+ },
127
+ "width": {
128
+ "type": "integer",
129
+ "minimum": 1
130
+ },
131
+ "height": {
132
+ "type": "integer",
133
+ "minimum": 1
134
+ },
135
+ "count": {
136
+ "type": "integer",
137
+ "minimum": 1
138
+ },
139
+ "safe_content_filter": {
140
+ "type": "boolean",
141
+ "description": "Use the user's chosen content-filter setting. Omit to retain the normal Sogni API default."
142
+ }
143
+ },
144
+ "required": [
145
+ "prompt",
146
+ "model",
147
+ "duration",
148
+ "request_id"
149
+ ],
150
+ "additionalProperties": false
151
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/mcp/v1/get_balance.schema.json",
4
+ "title": "Sogni MCP get_balance",
5
+ "type": "object",
6
+ "properties": {},
7
+ "required": [],
8
+ "additionalProperties": false
9
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/mcp/v1/get_job.schema.json",
4
+ "title": "Sogni MCP get_job",
5
+ "type": "object",
6
+ "properties": {
7
+ "job_id": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "maxLength": 256,
11
+ "description": "Job ID returned by a previous call."
12
+ },
13
+ "kind": {
14
+ "type": "string",
15
+ "enum": [
16
+ "workflow",
17
+ "run"
18
+ ]
19
+ },
20
+ "artifact_offset": {
21
+ "type": "integer",
22
+ "minimum": 0,
23
+ "description": "Output page offset. Use next_artifact_offset from the previous response."
24
+ },
25
+ "artifact_limit": {
26
+ "type": "integer",
27
+ "minimum": 1,
28
+ "maximum": 100,
29
+ "description": "Outputs per page; defaults to 50."
30
+ }
31
+ },
32
+ "required": [
33
+ "job_id",
34
+ "kind"
35
+ ],
36
+ "additionalProperties": false
37
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/mcp/v1/list_models.schema.json",
4
+ "title": "Sogni MCP list_models",
5
+ "type": "object",
6
+ "properties": {
7
+ "media_type": {
8
+ "type": "string",
9
+ "enum": [
10
+ "image",
11
+ "video",
12
+ "audio",
13
+ "text",
14
+ "model"
15
+ ]
16
+ },
17
+ "network": {
18
+ "type": "string",
19
+ "enum": [
20
+ "fast",
21
+ "relaxed"
22
+ ]
23
+ },
24
+ "model": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "maxLength": 256,
28
+ "description": "Return details for one model ID."
29
+ }
30
+ },
31
+ "required": [],
32
+ "additionalProperties": false
33
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/mcp/v1/quote.schema.json",
4
+ "title": "Sogni MCP quote",
5
+ "type": "object",
6
+ "properties": {
7
+ "tool": {
8
+ "type": "string",
9
+ "enum": [
10
+ "generate_image",
11
+ "generate_video",
12
+ "generate_audio",
13
+ "transform_media"
14
+ ]
15
+ },
16
+ "arguments": {
17
+ "type": "object",
18
+ "additionalProperties": true
19
+ }
20
+ },
21
+ "required": [
22
+ "tool",
23
+ "arguments"
24
+ ],
25
+ "additionalProperties": false
26
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/mcp/v1/result.schema.json",
4
+ "title": "Sogni MCP result",
5
+ "type": "object",
6
+ "properties": {
7
+ "kind": {
8
+ "type": "string",
9
+ "enum": [
10
+ "models",
11
+ "account",
12
+ "quote",
13
+ "job",
14
+ "upload"
15
+ ]
16
+ },
17
+ "data": {
18
+ "type": "object",
19
+ "additionalProperties": true
20
+ }
21
+ },
22
+ "required": [
23
+ "kind",
24
+ "data"
25
+ ],
26
+ "additionalProperties": false
27
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/mcp/v1/run_creative_agent.schema.json",
4
+ "title": "Sogni MCP run_creative_agent",
5
+ "type": "object",
6
+ "properties": {
7
+ "brief": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "maxLength": 64000,
11
+ "description": "Complete user prompt; preserve all requested details."
12
+ },
13
+ "reference_images": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "string",
17
+ "format": "uri",
18
+ "pattern": "^https://.+",
19
+ "maxLength": 16384,
20
+ "description": "HTTPS media download URL; never a local path or upload URL."
21
+ },
22
+ "maxItems": 16
23
+ },
24
+ "reference_audios": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string",
28
+ "format": "uri",
29
+ "pattern": "^https://.+",
30
+ "maxLength": 16384,
31
+ "description": "HTTPS media download URL; never a local path or upload URL."
32
+ },
33
+ "maxItems": 16
34
+ },
35
+ "reference_videos": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string",
39
+ "format": "uri",
40
+ "pattern": "^https://.+",
41
+ "maxLength": 16384,
42
+ "description": "HTTPS media download URL; never a local path or upload URL."
43
+ },
44
+ "maxItems": 16
45
+ },
46
+ "token_type": {
47
+ "type": "string",
48
+ "enum": [
49
+ "auto",
50
+ "spark",
51
+ "sogni"
52
+ ],
53
+ "description": "Payment currency. Auto follows account coverage."
54
+ },
55
+ "billing_mode": {
56
+ "type": "string",
57
+ "enum": [
58
+ "auto",
59
+ "subscription",
60
+ "tokens"
61
+ ],
62
+ "description": "Billing preference passed to Sogni. Auto uses eligible subscription coverage; tokens opts into token billing. Premium models retain their normal charges."
63
+ },
64
+ "request_id": {
65
+ "type": "string",
66
+ "minLength": 1,
67
+ "maxLength": 128,
68
+ "description": "Stable unique request ID for this operation. Reuse it when retrying the same request; change it for new work.",
69
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
70
+ },
71
+ "safe_content_filter": {
72
+ "type": "boolean",
73
+ "description": "Use the user's chosen content-filter setting. Omit to retain the normal Sogni API default."
74
+ }
75
+ },
76
+ "required": [
77
+ "brief",
78
+ "request_id"
79
+ ],
80
+ "additionalProperties": false
81
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.sogni.ai/mcp/v1/transform_media.schema.json",
4
+ "title": "Sogni MCP transform_media",
5
+ "type": "object",
6
+ "properties": {
7
+ "operation": {
8
+ "type": "string",
9
+ "enum": [
10
+ "upscale_image",
11
+ "upscale_video",
12
+ "remove_background",
13
+ "restore_photo",
14
+ "extend_video",
15
+ "stitch_video"
16
+ ]
17
+ },
18
+ "prompt": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 64000,
22
+ "description": "Complete user prompt; preserve all requested details."
23
+ },
24
+ "parameters": {
25
+ "type": "object",
26
+ "additionalProperties": true,
27
+ "description": "Additional native Sogni tool parameters. Preserved and validated by the API; do not duplicate named fields."
28
+ },
29
+ "reference_images": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "format": "uri",
34
+ "pattern": "^https://.+",
35
+ "maxLength": 16384,
36
+ "description": "HTTPS media download URL; never a local path or upload URL."
37
+ },
38
+ "maxItems": 16
39
+ },
40
+ "reference_audios": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "string",
44
+ "format": "uri",
45
+ "pattern": "^https://.+",
46
+ "maxLength": 16384,
47
+ "description": "HTTPS media download URL; never a local path or upload URL."
48
+ },
49
+ "maxItems": 16
50
+ },
51
+ "reference_videos": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string",
55
+ "format": "uri",
56
+ "pattern": "^https://.+",
57
+ "maxLength": 16384,
58
+ "description": "HTTPS media download URL; never a local path or upload URL."
59
+ },
60
+ "maxItems": 16
61
+ },
62
+ "token_type": {
63
+ "type": "string",
64
+ "enum": [
65
+ "auto",
66
+ "spark",
67
+ "sogni"
68
+ ],
69
+ "description": "Payment currency. Auto follows account coverage."
70
+ },
71
+ "billing_mode": {
72
+ "type": "string",
73
+ "enum": [
74
+ "auto",
75
+ "subscription",
76
+ "tokens"
77
+ ],
78
+ "description": "Billing preference passed to Sogni. Auto uses eligible subscription coverage; tokens opts into token billing. Premium models retain their normal charges."
79
+ },
80
+ "request_id": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 128,
84
+ "description": "Stable unique request ID for this operation. Reuse it when retrying the same request; change it for new work.",
85
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
86
+ },
87
+ "safe_content_filter": {
88
+ "type": "boolean",
89
+ "description": "Use the user's chosen content-filter setting. Omit to retain the normal Sogni API default."
90
+ }
91
+ },
92
+ "required": [
93
+ "operation",
94
+ "request_id"
95
+ ],
96
+ "additionalProperties": false
97
+ }
@@ -21,9 +21,11 @@
21
21
  "qwen",
22
22
  "krea-identity-edit",
23
23
  "dark-beast-krea2-identity-edit",
24
- "flux-3-klein"
24
+ "flux-3-klein",
25
+ "gpt-image-2.6-sunburst",
26
+ "gpt-image-2.6-flare"
25
27
  ],
26
- "description": "The app auto-selects Fast→Qwen Lightning and HQ/Pro→full Qwen only for ordinary identity-neutral edits. REQUIRED IDENTITY DEFAULT: set \"krea-identity-edit\" whenever an edit of a referenced person or character must keep likeness or character identity while changing clothing, hair or makeup, pose or position, face/head/body, background, lighting, or visual style. Infer that semantic intent in any language; never route from keyword or regex matching. Also use it for a non-Pro single-character sheet. This default applies even when the user did not name Krea; an explicitly requested model always wins. Set \"dark-beast-krea2-identity-edit\" only when the user explicitly requests that model, its uncensored/community variant, or dark_beast_krea2_identity_edit_v1_2. Set \"gpt-image-2\" only when the user explicitly names legacy GPT Image 2 (GPT Image 2, GPT-2, or gpt-image-2); it is never a default. A ChatGPT, OpenAI, GPT, or GPT Image edit request that names no version uses \"gpt-image-2.5-flare\". Set \"gpt-image-2.5-sunburst\" when precise typography, dense labels, or a professional multi-panel layout is the primary requirement; Pro character sheets use Sunburst unless the user names another model. If GPT Image 2.5 Sunburst is unavailable for detail-critical layout work, fall back to full \"qwen\", never \"qwen-lightning\". Krea identity edit models require at least one reference image, accept up to two context images, and work best at 512-2048px. Set \"flux-3-klein\" when the user asks for FLUX 3 or FLUX 3 Image Klein; it accepts 1-10 reference images and works at 256-4096px, including 4K. For it, describe the whole result as a full scene caption that folds the requested change into a description of the reference, and refer to references in order (the first image, the second image); guidance is fixed and a negative prompt has no effect, so do not send one. Let the model tier and worker choose current steps, guidance, sampler, scheduler, grounding, and reference-boost defaults; do not send a negative prompt. When Krea is selected, override the generic prompt-length guidance with a concise 1-4 sentence delta instruction; name only the requested change and details that must remain fixed. Put the base scene/image first and an optional person/detail reference second. Z-image, Z-image Turbo, and base Krea 2 Turbo are generate_image img2img models, not edit_image selectors. If the user names another edit/image model, honor it. GPT Image 2 always processes input images at high fidelity; do not set input_fidelity. GPT Image 2.5 adds two distinct models: use \"gpt-image-2.5-sunburst\" for an explicit Sunburst request and \"gpt-image-2.5-flare\" for an explicit Flare request. For GPT Image 2.5 without a named variant, use Flare. Preserve explicit GPT Image 2.0 as \"gpt-image-2\". Sunburst is positioned for difficult images and precise edits; Flare for faster everyday generation. Both generate and edit. Model choice is independent of rendering quality."
28
+ "description": "The app auto-selects Fast→Qwen Lightning and HQ/Pro→full Qwen only for ordinary identity-neutral edits. REQUIRED IDENTITY DEFAULT: set \"krea-identity-edit\" whenever an edit of a referenced person or character must keep likeness or character identity while changing clothing, hair or makeup, pose or position, face/head/body, background, lighting, or visual style. Infer that semantic intent in any language; never route from keyword or regex matching. Also use it for a non-Pro single-character sheet. This default applies even when the user did not name Krea; an explicitly requested model always wins. Set \"dark-beast-krea2-identity-edit\" only when the user explicitly requests that model, its uncensored/community variant, or dark_beast_krea2_identity_edit_v1_2. Set \"gpt-image-2\" only when the user explicitly names legacy GPT Image 2 (GPT Image 2, GPT-2, or gpt-image-2); it is never a default. A ChatGPT, OpenAI, GPT, or GPT Image edit request that names no version uses \"gpt-image-2.5-flare\". Set \"gpt-image-2.5-sunburst\" when precise typography, dense labels, or a professional multi-panel layout is the primary requirement; Pro character sheets use Sunburst unless the user names another model. If GPT Image 2.5 Sunburst is unavailable for detail-critical layout work, fall back to full \"qwen\", never \"qwen-lightning\". Krea identity edit models require at least one reference image, accept up to two context images, and work best at 512-2048px. Set \"flux-3-klein\" when the user asks for FLUX 3 or FLUX 3 Image Klein; it accepts 1-10 reference images and works at 256-4096px, including 4K. For it, describe the whole result as a full scene caption that folds the requested change into a description of the reference, and refer to references in order (the first image, the second image); guidance is fixed and a negative prompt has no effect, so do not send one. Let the model tier and worker choose current steps, guidance, sampler, scheduler, grounding, and reference-boost defaults; do not send a negative prompt. When Krea is selected, override the generic prompt-length guidance with a concise 1-4 sentence delta instruction; name only the requested change and details that must remain fixed. Put the base scene/image first and an optional person/detail reference second. Z-image, Z-image Turbo, and base Krea 2 Turbo are generate_image img2img models, not edit_image selectors. If the user names another edit/image model, honor it. GPT Image 2 always processes input images at high fidelity; do not set input_fidelity. GPT Image 2.5 adds two distinct models: use \"gpt-image-2.5-sunburst\" for an explicit Sunburst request and \"gpt-image-2.5-flare\" for an explicit Flare request. For GPT Image 2.5 without a named variant, use Flare. Preserve explicit GPT Image 2.0 as \"gpt-image-2\". Sunburst is positioned for difficult images and precise edits; Flare for faster everyday generation. Both generate and edit. Model choice is independent of rendering quality. Honor an explicitly selected GPT Image 2.6 Sunburst or Flare. For an animated GIF use generate_image with a 2.6 model and outputFormat=gif; describe the motion and loop. Do not use edit_image for GIFs."
27
29
  },
28
30
  "sourceImageIndex": {
29
31
  "type": "number",
@@ -109,6 +111,19 @@
109
111
  "type": "number"
110
112
  },
111
113
  "description": "Strength for each LoRA in loras, in the same order. Omitting the array uses 1.0 for every LoRA, which is not each LoRA's catalog default — krea2-chest-firmness, krea2-nipple-projection and krea2-height default to 0 (no effect) — so prefer explicit values. Do NOT clamp to 0-1: most Krea 2 LoRAs are bipolar, so krea2-warm-light warms the grade at 2 and cools it at -2. Usable bands vary per LoRA — roughly -2..5 for krea2-detail-enhancer, -3..3 for krea2-warm-light, 3..9 for krea2-candid, 0.5..1 for krea2-realism-engine, 1..2 for the filter-bypass pair. Scale the magnitude to how strongly the user asked; the server clamps out-of-range values, and pushing past a LoRA's recommended band costs image quality rather than adding effect. Preserve explicit user values. Example: loras=[\"krea2-detail-enhancer\",\"krea2-amateur\"], loraStrengths=[3,-2]."
114
+ },
115
+ "gptImageComplexity": {
116
+ "type": "string",
117
+ "enum": [
118
+ "low",
119
+ "medium",
120
+ "high"
121
+ ],
122
+ "description": "GPT Image 2.6 planning complexity. Default high; quality is separate."
123
+ },
124
+ "markup_image_url": {
125
+ "type": "string",
126
+ "description": "GPT Image 2.6 edit annotation layer for the first reference. Cannot combine with mask_image_url."
112
127
  }
113
128
  },
114
129
  "required": [