MeUtils 2025.5.29.18.35.35__py3-none-any.whl → 2025.5.30.18.30.42__py3-none-any.whl
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.
- {MeUtils-2025.5.29.18.35.35.dist-info → MeUtils-2025.5.30.18.30.42.dist-info}/METADATA +267 -267
- {MeUtils-2025.5.29.18.35.35.dist-info → MeUtils-2025.5.30.18.30.42.dist-info}/RECORD +20 -18
- examples/_openaisdk/openai_modelscope.py +1 -1
- meutils/apis/fal/images.py +88 -12
- meutils/apis/hailuoai/videos.py +3 -2
- meutils/apis/images/openai_edits.py +66 -0
- meutils/apis/search/metaso.py +3 -3
- meutils/apis/translator/deeplx.py +6 -1
- meutils/apis/volcengine_apis/tasks.py +13 -1
- meutils/data/VERSION +1 -1
- meutils/llm/check_utils.py +25 -1
- meutils/llm/openai_utils/adapters.py +48 -0
- meutils/llm/openai_utils/common.py +25 -19
- meutils/notice/feishu.py +3 -1
- meutils/schemas/image_types.py +16 -0
- meutils/schemas/oneapi/common.py +23 -4
- {MeUtils-2025.5.29.18.35.35.dist-info → MeUtils-2025.5.30.18.30.42.dist-info}/LICENSE +0 -0
- {MeUtils-2025.5.29.18.35.35.dist-info → MeUtils-2025.5.30.18.30.42.dist-info}/WHEEL +0 -0
- {MeUtils-2025.5.29.18.35.35.dist-info → MeUtils-2025.5.30.18.30.42.dist-info}/entry_points.txt +0 -0
- {MeUtils-2025.5.29.18.35.35.dist-info → MeUtils-2025.5.30.18.30.42.dist-info}/top_level.txt +0 -0
meutils/schemas/image_types.py
CHANGED
@@ -493,6 +493,22 @@ class ImageProcess(BaseModel):
|
|
493
493
|
# extra = "allow"
|
494
494
|
|
495
495
|
|
496
|
+
class ImageEditRequest(BaseModel):
|
497
|
+
model: Union[str, Literal["dall-e-2", "dall-e-3", "gpt-image-1"]]
|
498
|
+
|
499
|
+
prompt: str
|
500
|
+
image: Any # 图片
|
501
|
+
mask: Optional[Any] = None # 图片
|
502
|
+
background: Optional[Literal["transparent", "opaque", "auto"]] = None
|
503
|
+
|
504
|
+
n: Optional[int] = None
|
505
|
+
quality: Optional[Literal["standard", "low", "medium", "high", "auto"]] = None
|
506
|
+
size: Optional[Union[str, Literal["256x256", "512x512", "1024x1024", "1536x1024", "1024x1536", "auto"]]] = None
|
507
|
+
response_format: Optional[Literal["url", "b64_json"]] = None
|
508
|
+
|
509
|
+
user: Optional[str] = None
|
510
|
+
|
511
|
+
|
496
512
|
if __name__ == '__main__':
|
497
513
|
# print(ASPECT_RATIOS.items())
|
498
514
|
|
meutils/schemas/oneapi/common.py
CHANGED
@@ -48,7 +48,7 @@ MODEL_PRICE = {
|
|
48
48
|
"kling_virtual_try_on": 1,
|
49
49
|
"kling_effects": 1,
|
50
50
|
|
51
|
-
"kling_video": 1
|
51
|
+
"kling_video": 1,
|
52
52
|
"kling_extend": 1,
|
53
53
|
"kling_lip_sync": 1,
|
54
54
|
|
@@ -149,6 +149,10 @@ MODEL_PRICE = {
|
|
149
149
|
"ideogram-ai/ideogram-v2": 0.2,
|
150
150
|
"ideogram-ai/ideogram-v2-turbo": 0.1,
|
151
151
|
|
152
|
+
"imagen4": 0.05 * 2,
|
153
|
+
"flux-kontext-pro": 0.04 * 2,
|
154
|
+
"flux-kontext-max": 0.08 * 2,
|
155
|
+
|
152
156
|
"api-asr": 0.01,
|
153
157
|
"api-stt": 0.01,
|
154
158
|
"api-tts": 0.01,
|
@@ -545,6 +549,8 @@ MODEL_RATIO = {
|
|
545
549
|
"farui-plus": 10, # 法律大模型
|
546
550
|
'qwen2-math-72b-instruct': 4.13,
|
547
551
|
|
552
|
+
"qwenlong-l1-32b": 0.5,
|
553
|
+
|
548
554
|
# 讯飞 https://xinghuo.xfyun.cn/sparkapi?scr=price
|
549
555
|
'spark-lite': 0.05, # 特价
|
550
556
|
'spark-pro': 15 / 5, # 特价
|
@@ -586,6 +592,7 @@ MODEL_RATIO = {
|
|
586
592
|
"yi-medium-200k": 6,
|
587
593
|
|
588
594
|
# minimax https://platform.minimaxi.com/document/price?id=6433f32294878d408fc8293e
|
595
|
+
"minimax-text-01": 0.5,
|
589
596
|
"abab6.5-chat": 15 / 7.5,
|
590
597
|
"abab6.5s-chat": 5,
|
591
598
|
"abab6.5t-chat": 2.5,
|
@@ -617,6 +624,8 @@ MODEL_RATIO = {
|
|
617
624
|
'deepseek-reasoner-8k': 1,
|
618
625
|
"deepseek-r1-250120": 2,
|
619
626
|
"deepseek-r1-0528": 2,
|
627
|
+
"deepseek-r1-250528": 2,
|
628
|
+
"deepseek-r1-250528-qwen3-8b": 0.3,
|
620
629
|
|
621
630
|
"deepseek-search": 1,
|
622
631
|
'deepseek-r1-search': 2,
|
@@ -825,6 +834,8 @@ MODEL_RATIO = {
|
|
825
834
|
"gemini-2.5-flash-thinking": 0.075,
|
826
835
|
"gemini-2.5-flash-preview-04-17-thinking": 0.075,
|
827
836
|
"gemini-2.5-flash-preview-05-20-thinking": 0.075,
|
837
|
+
|
838
|
+
"gemini-2.5-pro-think": 0.625,
|
828
839
|
"gemini-2.5-pro-thinking": 0.625,
|
829
840
|
"gemini-2.5-pro-exp-03-25-thinking": 0.625,
|
830
841
|
"gemini-2.5-pro-preview-03-25-thinking": 0.625,
|
@@ -949,6 +960,8 @@ MODEL_RATIO = {
|
|
949
960
|
}
|
950
961
|
|
951
962
|
COMPLETION_RATIO = {
|
963
|
+
"minimax-text-01": 8,
|
964
|
+
|
952
965
|
# 智能体
|
953
966
|
"gpt-4-plus": 5,
|
954
967
|
"gpt-4o-plus": 5,
|
@@ -1102,9 +1115,11 @@ COMPLETION_RATIO = {
|
|
1102
1115
|
"gemini-2.5-flash-preview-04-17-thinking": 23,
|
1103
1116
|
"gemini-2.5-flash-preview-05-20-thinking": 23,
|
1104
1117
|
|
1105
|
-
"gemini-2.5-pro-
|
1106
|
-
|
1107
|
-
"gemini-2.5-pro-
|
1118
|
+
"gemini-2.5-pro-think": 4,
|
1119
|
+
|
1120
|
+
"gemini-2.5-pro-thinking": 4,
|
1121
|
+
"gemini-2.5-pro-exp-03-25-thinking": 4,
|
1122
|
+
"gemini-2.5-pro-preview-03-25-thinking": 4,
|
1108
1123
|
|
1109
1124
|
"hunyuan-a52b-instruct": 5,
|
1110
1125
|
"qwen2.5-coder-32b-instruct": 3,
|
@@ -1156,6 +1171,7 @@ COMPLETION_RATIO = {
|
|
1156
1171
|
"qwen3-32b": 4,
|
1157
1172
|
"qwen3-30b-a3b": 4,
|
1158
1173
|
"qwen3-235b-a22b": 3,
|
1174
|
+
"qwenlong-l1-32b": 4,
|
1159
1175
|
|
1160
1176
|
"deepseek-vl2": 4,
|
1161
1177
|
"deepseek-ai/deepseek-vl2": 4,
|
@@ -1232,6 +1248,9 @@ COMPLETION_RATIO = {
|
|
1232
1248
|
"deepseek-reasoner-164k": 8,
|
1233
1249
|
"deepseek-r1-250120": 4,
|
1234
1250
|
"deepseek-r1-0528": 4,
|
1251
|
+
"deepseek-r1-250528": 4,
|
1252
|
+
|
1253
|
+
"deepseek-r1-250528-qwen3-8b": 4,
|
1235
1254
|
|
1236
1255
|
"deepseek-chat:function": 4,
|
1237
1256
|
|
File without changes
|
File without changes
|
{MeUtils-2025.5.29.18.35.35.dist-info → MeUtils-2025.5.30.18.30.42.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|