briyah 2.0.10 → 2.0.11
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/data/common/config/image_models.json +85 -6
- package/data/common/config/model_prices.json +30170 -32794
- package/dist-sdk/server/src/ai/LLM/anthropic.service.js +1 -1
- package/dist-sdk/server/src/ai/LLM/comfyui.service.js +1 -1
- package/dist-sdk/server/src/ai/LLM/deepseek.service.d.ts +1 -1
- package/dist-sdk/server/src/ai/LLM/deepseek.service.js +3 -2
- package/dist-sdk/server/src/ai/LLM/fal.service.d.ts +1 -1
- package/dist-sdk/server/src/ai/LLM/fal.service.js +4 -3
- package/dist-sdk/server/src/ai/LLM/googleai.service.d.ts +1 -1
- package/dist-sdk/server/src/ai/LLM/googleai.service.js +5 -4
- package/dist-sdk/server/src/ai/LLM/grok.service.d.ts +1 -1
- package/dist-sdk/server/src/ai/LLM/grok.service.js +3 -2
- package/dist-sdk/server/src/ai/LLM/mock.service.d.ts +1 -1
- package/dist-sdk/server/src/ai/LLM/mock.service.js +3 -2
- package/dist-sdk/server/src/ai/LLM/openai.service.js +2 -2
- package/dist-sdk/server/src/ai/LLM/self-hosted.service.js +1 -1
- package/dist-sdk/server/src/ai/LLM/together.service.d.ts +1 -1
- package/dist-sdk/server/src/ai/LLM/together.service.js +5 -4
- package/dist-sdk/server/src/ai/agent-config.d.ts +4 -0
- package/dist-sdk/server/src/ai/agent-store.service.js +3 -0
- package/dist-sdk/server/src/ai/agent.d.ts +7 -0
- package/dist-sdk/server/src/ai/agent.js +6 -0
- package/dist-sdk/server/src/app/balance.service.d.ts +155 -27
- package/dist-sdk/server/src/app/balance.service.js +290 -97
- package/dist-sdk/server/src/app/usage-context.d.ts +24 -0
- package/dist-sdk/server/src/app/usage-context.js +35 -0
- package/dist-sdk/server/src/app.controller.d.ts +5 -0
- package/dist-sdk/server/src/app.controller.js +13 -2
- package/dist-sdk/server/src/app.service.d.ts +39 -4
- package/dist-sdk/server/src/app.service.js +40 -3
- package/dist-sdk/server/src/common/errors.d.ts +13 -1
- package/dist-sdk/server/src/common/errors.js +21 -1
- package/dist-sdk/server/src/packs/pack-instantiation.service.js +1 -0
- package/dist-sdk/server/src/packs/pack-manifest.d.ts +3 -1
- package/dist-sdk/server/src/packs/pack-manifest.js +2 -0
- package/dist-sdk/server/src/room/illustration/illustration.service.d.ts +17 -2
- package/dist-sdk/server/src/room/illustration/illustration.service.js +35 -9
- package/dist-sdk/server/src/room/illustration/illustration.types.d.ts +6 -0
- package/dist-sdk/server/src/room/room-config.d.ts +11 -1
- package/dist-sdk/server/src/room/room-store.service.js +4 -0
- package/dist-sdk/server/src/room/room.d.ts +9 -1
- package/dist-sdk/server/src/room/room.js +16 -1
- package/dist-sdk/server/src/sdk/index.d.ts +5 -1
- package/dist-sdk/server/src/sdk/index.js +12 -1
- package/dist-sdk/server/src/tools/core/illustrate.tool.js +10 -1
- package/dist-sdk/server/src/tools/native-tool.types.d.ts +3 -2
- package/dist-sdk/shared/types/app.types.d.ts +27 -0
- package/dist-sdk/shared/types/app.types.js +6 -1
- package/package.json +1 -1
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"safety_tolerance": "2",
|
|
12
12
|
"num_images": 1,
|
|
13
13
|
"output_format": "png"
|
|
14
|
+
},
|
|
15
|
+
"aspects": {
|
|
16
|
+
"landscape": { "imageProperties": { "aspect_ratio": "3:2" } },
|
|
17
|
+
"portrait": { "imageProperties": { "aspect_ratio": "2:3" } }
|
|
14
18
|
}
|
|
15
19
|
},
|
|
16
20
|
"editing": {
|
|
@@ -22,6 +26,41 @@
|
|
|
22
26
|
"safety_tolerance": "2",
|
|
23
27
|
"num_images": 1,
|
|
24
28
|
"output_format": "png"
|
|
29
|
+
},
|
|
30
|
+
"aspects": {
|
|
31
|
+
"landscape": { "imageProperties": { "aspect_ratio": "3:2" } },
|
|
32
|
+
"portrait": { "imageProperties": { "aspect_ratio": "2:3" } }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "GPT Image 2.5",
|
|
38
|
+
"description": "Highest quality; consistent characters across scenes",
|
|
39
|
+
"generation": {
|
|
40
|
+
"service": "OpenAI",
|
|
41
|
+
"model": "gpt-image-2.5-sunburst",
|
|
42
|
+
"centsPerImage": 6,
|
|
43
|
+
"imageProperties": {
|
|
44
|
+
"size": "1024x1024",
|
|
45
|
+
"quality": "high",
|
|
46
|
+
"moderation": "low"
|
|
47
|
+
},
|
|
48
|
+
"aspects": {
|
|
49
|
+
"landscape": { "centsPerImage": 5, "imageProperties": { "size": "1536x1024" } },
|
|
50
|
+
"portrait": { "centsPerImage": 5, "imageProperties": { "size": "1024x1536" } }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"editing": {
|
|
54
|
+
"service": "OpenAI",
|
|
55
|
+
"model": "gpt-image-2.5-sunburst",
|
|
56
|
+
"centsPerImage": 12,
|
|
57
|
+
"imageProperties": {
|
|
58
|
+
"size": "1024x1024",
|
|
59
|
+
"quality": "high"
|
|
60
|
+
},
|
|
61
|
+
"aspects": {
|
|
62
|
+
"landscape": { "centsPerImage": 11, "imageProperties": { "size": "1536x1024" } },
|
|
63
|
+
"portrait": { "centsPerImage": 11, "imageProperties": { "size": "1024x1536" } }
|
|
25
64
|
}
|
|
26
65
|
}
|
|
27
66
|
},
|
|
@@ -36,6 +75,10 @@
|
|
|
36
75
|
"size": "1024x1024",
|
|
37
76
|
"quality": "auto",
|
|
38
77
|
"moderation": "low"
|
|
78
|
+
},
|
|
79
|
+
"aspects": {
|
|
80
|
+
"landscape": { "centsPerImage": 28, "imageProperties": { "size": "1536x1024" } },
|
|
81
|
+
"portrait": { "centsPerImage": 28, "imageProperties": { "size": "1024x1536" } }
|
|
39
82
|
}
|
|
40
83
|
},
|
|
41
84
|
"editing": {
|
|
@@ -44,6 +87,10 @@
|
|
|
44
87
|
"centsPerImage": 21,
|
|
45
88
|
"imageProperties": {
|
|
46
89
|
"size": "1024x1024"
|
|
90
|
+
},
|
|
91
|
+
"aspects": {
|
|
92
|
+
"landscape": { "centsPerImage": 28, "imageProperties": { "size": "1536x1024" } },
|
|
93
|
+
"portrait": { "centsPerImage": 28, "imageProperties": { "size": "1024x1536" } }
|
|
47
94
|
}
|
|
48
95
|
}
|
|
49
96
|
},
|
|
@@ -58,6 +105,10 @@
|
|
|
58
105
|
"size": "1024x1024",
|
|
59
106
|
"quality": "auto",
|
|
60
107
|
"moderation": "low"
|
|
108
|
+
},
|
|
109
|
+
"aspects": {
|
|
110
|
+
"landscape": { "centsPerImage": 15, "imageProperties": { "size": "1536x1024" } },
|
|
111
|
+
"portrait": { "centsPerImage": 15, "imageProperties": { "size": "1024x1536" } }
|
|
61
112
|
}
|
|
62
113
|
},
|
|
63
114
|
"editing": {
|
|
@@ -66,6 +117,10 @@
|
|
|
66
117
|
"centsPerImage": 10,
|
|
67
118
|
"imageProperties": {
|
|
68
119
|
"size": "1024x1024"
|
|
120
|
+
},
|
|
121
|
+
"aspects": {
|
|
122
|
+
"landscape": { "centsPerImage": 15, "imageProperties": { "size": "1536x1024" } },
|
|
123
|
+
"portrait": { "centsPerImage": 15, "imageProperties": { "size": "1024x1536" } }
|
|
69
124
|
}
|
|
70
125
|
}
|
|
71
126
|
},
|
|
@@ -75,23 +130,31 @@
|
|
|
75
130
|
"generation": {
|
|
76
131
|
"service": "TogetherAI",
|
|
77
132
|
"model": "black-forest-labs/FLUX.2-max",
|
|
78
|
-
"centsPerImage":
|
|
133
|
+
"centsPerImage": 8,
|
|
79
134
|
"imageProperties": {
|
|
80
135
|
"width": 1024,
|
|
81
136
|
"height": 1024,
|
|
82
137
|
"disable_safety_checker": false,
|
|
83
138
|
"response_format": "base64"
|
|
139
|
+
},
|
|
140
|
+
"aspects": {
|
|
141
|
+
"landscape": { "centsPerImage": 12, "imageProperties": { "width": 1536, "height": 1024 } },
|
|
142
|
+
"portrait": { "centsPerImage": 12, "imageProperties": { "width": 1024, "height": 1536 } }
|
|
84
143
|
}
|
|
85
144
|
},
|
|
86
145
|
"editing": {
|
|
87
146
|
"service": "TogetherAI",
|
|
88
147
|
"model": "black-forest-labs/FLUX.2-max",
|
|
89
|
-
"centsPerImage":
|
|
148
|
+
"centsPerImage": 8,
|
|
90
149
|
"imageProperties": {
|
|
91
150
|
"width": 1024,
|
|
92
151
|
"height": 1024,
|
|
93
152
|
"disable_safety_checker": false,
|
|
94
153
|
"response_format": "base64"
|
|
154
|
+
},
|
|
155
|
+
"aspects": {
|
|
156
|
+
"landscape": { "centsPerImage": 12, "imageProperties": { "width": 1536, "height": 1024 } },
|
|
157
|
+
"portrait": { "centsPerImage": 12, "imageProperties": { "width": 1024, "height": 1536 } }
|
|
95
158
|
}
|
|
96
159
|
}
|
|
97
160
|
},
|
|
@@ -127,10 +190,14 @@
|
|
|
127
190
|
"model": "fal-ai/nano-banana-pro",
|
|
128
191
|
"centsPerImage": 15,
|
|
129
192
|
"imageProperties": {
|
|
130
|
-
"
|
|
193
|
+
"aspect_ratio": "1:1",
|
|
131
194
|
"safety_tolerance": "2",
|
|
132
195
|
"num_images": 1,
|
|
133
196
|
"output_format": "png"
|
|
197
|
+
},
|
|
198
|
+
"aspects": {
|
|
199
|
+
"landscape": { "imageProperties": { "aspect_ratio": "3:2" } },
|
|
200
|
+
"portrait": { "imageProperties": { "aspect_ratio": "2:3" } }
|
|
134
201
|
}
|
|
135
202
|
},
|
|
136
203
|
"editing": {
|
|
@@ -138,10 +205,14 @@
|
|
|
138
205
|
"model": "fal-ai/nano-banana-pro",
|
|
139
206
|
"centsPerImage": 15,
|
|
140
207
|
"imageProperties": {
|
|
141
|
-
"
|
|
208
|
+
"aspect_ratio": "1:1",
|
|
142
209
|
"safety_tolerance": "2",
|
|
143
210
|
"num_images": 1,
|
|
144
211
|
"output_format": "png"
|
|
212
|
+
},
|
|
213
|
+
"aspects": {
|
|
214
|
+
"landscape": { "imageProperties": { "aspect_ratio": "3:2" } },
|
|
215
|
+
"portrait": { "imageProperties": { "aspect_ratio": "2:3" } }
|
|
145
216
|
}
|
|
146
217
|
}
|
|
147
218
|
},
|
|
@@ -153,10 +224,14 @@
|
|
|
153
224
|
"model": "fal-ai/nano-banana",
|
|
154
225
|
"centsPerImage": 4,
|
|
155
226
|
"imageProperties": {
|
|
156
|
-
"
|
|
227
|
+
"aspect_ratio": "1:1",
|
|
157
228
|
"safety_tolerance": "2",
|
|
158
229
|
"num_images": 1,
|
|
159
230
|
"output_format": "png"
|
|
231
|
+
},
|
|
232
|
+
"aspects": {
|
|
233
|
+
"landscape": { "imageProperties": { "aspect_ratio": "3:2" } },
|
|
234
|
+
"portrait": { "imageProperties": { "aspect_ratio": "2:3" } }
|
|
160
235
|
}
|
|
161
236
|
},
|
|
162
237
|
"editing": {
|
|
@@ -164,10 +239,14 @@
|
|
|
164
239
|
"model": "fal-ai/nano-banana",
|
|
165
240
|
"centsPerImage": 4,
|
|
166
241
|
"imageProperties": {
|
|
167
|
-
"
|
|
242
|
+
"aspect_ratio": "1:1",
|
|
168
243
|
"safety_tolerance": "2",
|
|
169
244
|
"num_images": 1,
|
|
170
245
|
"output_format": "png"
|
|
246
|
+
},
|
|
247
|
+
"aspects": {
|
|
248
|
+
"landscape": { "imageProperties": { "aspect_ratio": "3:2" } },
|
|
249
|
+
"portrait": { "imageProperties": { "aspect_ratio": "2:3" } }
|
|
171
250
|
}
|
|
172
251
|
}
|
|
173
252
|
},
|