From 35678f7bd6bf156adaf4a0022039af53cf353035 Mon Sep 17 00:00:00 2001 From: Mayank Jain Date: Fri, 14 Aug 2026 14:16:16 +0530 Subject: [PATCH 1/2] feat(meta): add pricing and capabilities configuration for Meta provider --- general/meta.json | 26 ++++++++++++++ pricing/meta.json | 86 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 general/meta.json create mode 100644 pricing/meta.json diff --git a/general/meta.json b/general/meta.json new file mode 100644 index 00000000..aa999412 --- /dev/null +++ b/general/meta.json @@ -0,0 +1,26 @@ +{ + "name": "meta", + "description": "Meta Model API - Muse Spark reasoning models", + "default": { + "params": [ + { "key": "max_tokens", "defaultValue": 4096, "minValue": 1, "maxValue": 1048576 }, + { "key": "temperature", "defaultValue": 1.0, "minValue": 0, "maxValue": 2 }, + { "key": "top_p", "defaultValue": 1, "minValue": 0, "maxValue": 1 }, + { "key": "stream", "defaultValue": true, "type": "boolean" } + ], + "messages": { "options": ["system", "developer", "user", "assistant", "tool"] }, + "type": { "primary": "chat", "supported": ["tools"] } + }, + "muse-spark-1.1": { + "params": [{ "key": "max_tokens", "maxValue": 1048576 }], + "type": { "primary": "chat", "supported": ["tools", "image", "video"] } + }, + "muse-spark-1.2": { + "params": [{ "key": "max_tokens", "maxValue": 1048576 }], + "type": { "primary": "chat", "supported": ["tools", "image", "video"] } + }, + "muse-spark-1.2-contributor": { + "params": [{ "key": "max_tokens", "maxValue": 1048576 }], + "type": { "primary": "chat", "supported": ["tools", "image", "video"] } + } +} diff --git a/pricing/meta.json b/pricing/meta.json new file mode 100644 index 00000000..0d8f8d0b --- /dev/null +++ b/pricing/meta.json @@ -0,0 +1,86 @@ +{ + "default": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { "price": 0 }, + "response_token": { "price": 0 }, + "cache_read_input_token": { "price": 0 }, + "cache_write_input_token": { "price": 0 }, + "additional_units": { + "web_search": { "price": 0 } + } + }, + "calculate": { + "request": { + "operation": "sum", + "operands": [ + { + "operation": "multiply", + "operands": [ + { "value": "input_tokens" }, + { "value": "rates.request_token" } + ] + }, + { + "operation": "multiply", + "operands": [ + { "value": "cache_read_input_tokens" }, + { "value": "rates.cache_read_input_token" } + ] + } + ] + }, + "response": { + "operation": "multiply", + "operands": [ + { "value": "output_tokens" }, + { "value": "rates.response_token" } + ] + } + }, + "currency": "USD" + } + }, + "muse-spark-1.1": { + "pricing_config": { + "currency": "USD", + "pay_as_you_go": { + "request_token": { "price": 0.000125 }, + "response_token": { "price": 0.000425 }, + "cache_read_input_token": { "price": 0.000015 }, + "cache_write_input_token": { "price": 0 }, + "additional_units": { + "web_search": { "price": 0.0025 } + } + } + } + }, + "muse-spark-1.2": { + "pricing_config": { + "currency": "USD", + "pay_as_you_go": { + "request_token": { "price": 0.000125 }, + "response_token": { "price": 0.000425 }, + "cache_read_input_token": { "price": 0.000015 }, + "cache_write_input_token": { "price": 0 }, + "additional_units": { + "web_search": { "price": 0.0025 } + } + } + } + }, + "muse-spark-1.2-contributor": { + "pricing_config": { + "currency": "USD", + "pay_as_you_go": { + "request_token": { "price": 0.00001 }, + "response_token": { "price": 0.00002 }, + "cache_read_input_token": { "price": 0.0000002 }, + "cache_write_input_token": { "price": 0 }, + "additional_units": { + "web_search": { "price": 0.0025 } + } + } + } + } +} From a81f2f328af05c8667ac8178d90e1084032470bf Mon Sep 17 00:00:00 2001 From: Mayank Jain Date: Mon, 17 Aug 2026 11:21:45 +0530 Subject: [PATCH 2/2] fix(meta): align description with provider naming convention --- general/meta.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general/meta.json b/general/meta.json index aa999412..6c478c72 100644 --- a/general/meta.json +++ b/general/meta.json @@ -1,6 +1,6 @@ { "name": "meta", - "description": "Meta Model API - Muse Spark reasoning models", + "description": "Meta AI offers Muse Spark models for agentic and coding workflows via the Model API.", "default": { "params": [ { "key": "max_tokens", "defaultValue": 4096, "minValue": 1, "maxValue": 1048576 },