@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.
- package/dist/contracts/imagePrompt.d.ts.map +1 -1
- package/dist/contracts/imagePrompt.js +6 -3
- package/dist/contracts/imagePrompt.js.map +1 -1
- package/dist/mcp/index.d.ts +1254 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +199 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/manifest.generated.d.ts +1240 -0
- package/dist/mcp/manifest.generated.d.ts.map +1 -0
- package/dist/mcp/manifest.generated.js +5 -0
- package/dist/mcp/manifest.generated.js.map +1 -0
- package/dist/media/gptImage.d.ts +15 -4
- package/dist/media/gptImage.d.ts.map +1 -1
- package/dist/media/gptImage.js +55 -7
- package/dist/media/gptImage.js.map +1 -1
- package/dist/media/imageEditRouting.d.ts +1 -1
- package/dist/media/imageEditRouting.d.ts.map +1 -1
- package/dist/media/imageEditRouting.js +1 -1
- package/dist/media/imageEditRouting.js.map +1 -1
- package/dist/openai-tools/_manifests.generated.d.ts.map +1 -1
- package/dist/openai-tools/_manifests.generated.js +45 -6
- package/dist/openai-tools/_manifests.generated.js.map +1 -1
- package/dist/openai-tools/generation-tools.json +45 -6
- package/dist/prompt-guides/image.js +2 -2
- package/dist/prompt-guides/image.js.map +1 -1
- package/dist/schemas/mcp/approve_cost.schema.json +57 -0
- package/dist/schemas/mcp/cancel_job.schema.json +26 -0
- package/dist/schemas/mcp/create_upload.schema.json +27 -0
- package/dist/schemas/mcp/generate_audio.schema.json +112 -0
- package/dist/schemas/mcp/generate_image.schema.json +115 -0
- package/dist/schemas/mcp/generate_video.schema.json +151 -0
- package/dist/schemas/mcp/get_balance.schema.json +9 -0
- package/dist/schemas/mcp/get_job.schema.json +37 -0
- package/dist/schemas/mcp/list_models.schema.json +33 -0
- package/dist/schemas/mcp/quote.schema.json +26 -0
- package/dist/schemas/mcp/result.schema.json +27 -0
- package/dist/schemas/mcp/run_creative_agent.schema.json +81 -0
- package/dist/schemas/mcp/transform_media.schema.json +97 -0
- package/dist/schemas/tools/edit_image.schema.json +17 -2
- package/dist/schemas/tools/generate_image.schema.json +32 -8
- package/dist/tools/definitions/edit-image/definition.d.ts.map +1 -1
- package/dist/tools/definitions/edit-image/definition.js +4 -0
- package/dist/tools/definitions/edit-image/definition.js.map +1 -1
- package/dist/tools/definitions/generate-image/definition.d.ts.map +1 -1
- package/dist/tools/definitions/generate-image/definition.js +6 -3
- package/dist/tools/definitions/generate-image/definition.js.map +1 -1
- package/dist/tools/shared/modelRegistry.d.ts +6 -0
- package/dist/tools/shared/modelRegistry.d.ts.map +1 -1
- package/dist/tools/shared/modelRegistry.js +4 -0
- package/dist/tools/shared/modelRegistry.js.map +1 -1
- package/dist/utils/imageReferenceModelIds.js +1 -1
- package/dist/utils/imageReferenceModelIds.js.map +1 -1
- package/dist-esm/contracts/imagePrompt.js +6 -3
- package/dist-esm/contracts/imagePrompt.js.map +1 -1
- package/dist-esm/mcp/index.js +193 -0
- package/dist-esm/mcp/index.js.map +1 -0
- package/dist-esm/mcp/manifest.generated.js +2 -0
- package/dist-esm/mcp/manifest.generated.js.map +1 -0
- package/dist-esm/media/gptImage.js +53 -7
- package/dist-esm/media/gptImage.js.map +1 -1
- package/dist-esm/media/imageEditRouting.js +1 -1
- package/dist-esm/media/imageEditRouting.js.map +1 -1
- package/dist-esm/openai-tools/_manifests.generated.js +45 -6
- package/dist-esm/openai-tools/_manifests.generated.js.map +1 -1
- package/dist-esm/openai-tools/generation-tools.json +45 -6
- package/dist-esm/prompt-guides/image.js +2 -2
- package/dist-esm/prompt-guides/image.js.map +1 -1
- package/dist-esm/schemas/mcp/approve_cost.schema.json +57 -0
- package/dist-esm/schemas/mcp/cancel_job.schema.json +26 -0
- package/dist-esm/schemas/mcp/create_upload.schema.json +27 -0
- package/dist-esm/schemas/mcp/generate_audio.schema.json +112 -0
- package/dist-esm/schemas/mcp/generate_image.schema.json +115 -0
- package/dist-esm/schemas/mcp/generate_video.schema.json +151 -0
- package/dist-esm/schemas/mcp/get_balance.schema.json +9 -0
- package/dist-esm/schemas/mcp/get_job.schema.json +37 -0
- package/dist-esm/schemas/mcp/list_models.schema.json +33 -0
- package/dist-esm/schemas/mcp/quote.schema.json +26 -0
- package/dist-esm/schemas/mcp/result.schema.json +27 -0
- package/dist-esm/schemas/mcp/run_creative_agent.schema.json +81 -0
- package/dist-esm/schemas/mcp/transform_media.schema.json +97 -0
- package/dist-esm/schemas/tools/edit_image.schema.json +17 -2
- package/dist-esm/schemas/tools/generate_image.schema.json +32 -8
- package/dist-esm/tools/definitions/edit-image/definition.js +4 -0
- package/dist-esm/tools/definitions/edit-image/definition.js.map +1 -1
- package/dist-esm/tools/definitions/generate-image/definition.js +6 -3
- package/dist-esm/tools/definitions/generate-image/definition.js.map +1 -1
- package/dist-esm/tools/shared/modelRegistry.js +4 -0
- package/dist-esm/tools/shared/modelRegistry.js.map +1 -1
- package/dist-esm/utils/imageReferenceModelIds.js +1 -1
- package/dist-esm/utils/imageReferenceModelIds.js.map +1 -1
- package/mcp/index.d.ts +1 -0
- package/mcp/index.js +1 -0
- package/package.json +20 -7
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/mcp/v1/generate_audio.schema.json",
|
|
4
|
+
"title": "Sogni MCP generate_audio",
|
|
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
|
+
"kind": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"enum": [
|
|
85
|
+
"music",
|
|
86
|
+
"speech"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"duration": {
|
|
90
|
+
"type": "number",
|
|
91
|
+
"exclusiveMinimum": 0
|
|
92
|
+
},
|
|
93
|
+
"voice_sample": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"format": "uri",
|
|
96
|
+
"pattern": "^https://.+",
|
|
97
|
+
"maxLength": 16384,
|
|
98
|
+
"description": "HTTPS media download URL; never a local path or upload URL."
|
|
99
|
+
},
|
|
100
|
+
"safe_content_filter": {
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"description": "Use the user's chosen content-filter setting. Omit to retain the normal Sogni API default."
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": [
|
|
106
|
+
"prompt",
|
|
107
|
+
"model",
|
|
108
|
+
"kind",
|
|
109
|
+
"request_id"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false
|
|
112
|
+
}
|
|
@@ -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,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
|
+
}
|