Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions providers/sahabatmobile/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions providers/sahabatmobile/models/LongCat-2.0.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Price (USD/MTok) = official LongCat price (limited-time discounted rate): https://longcat.chat/platform/docs/pricing/longcat-2.0
# Toggle: thinking.type = enabled|disabled
# LongCat served as a direct provider (api.longcat.chat), via SahabatMobile's OpenAI-compatible API.
schema = 2
base_model = "meituan/longcat-2.0"

[capabilities]
reasoning = { supported = true, toggle = true }
temperature = false

[limit]
context = 1_048_576

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content", max_tokens_field = "max_tokens" }

[cost.text.input]
price = 0.3

[cost.text.output]
price = 1.2
21 changes: 21 additions & 0 deletions providers/sahabatmobile/models/LongCat-2.5-Preview.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Price (USD/MTok) = official LongCat price (limited-time discounted rate): https://longcat.chat/platform/docs/pricing/longcat-2.5
# Toggle: thinking.type = enabled|disabled
# LongCat served as a direct provider (api.longcat.chat), via SahabatMobile's OpenAI-compatible API.
schema = 2
base_model = "meituan/longcat-2.5-preview"

[capabilities]
reasoning = { supported = true, toggle = true }

[limit]
context = 1_048_576
output = 262_144

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content", max_tokens_field = "max_tokens" }

[cost.text.input]
price = 0.3

[cost.text.output]
price = 1.2
29 changes: 29 additions & 0 deletions providers/sahabatmobile/models/MiniMax-M3.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Price (USD/MTok) = official MiniMax price; source: https://platform.minimax.io/docs/pricing/overview#models/text
# Toggle: thinking.type = "adaptive"|"disabled" (default disabled; proxied to upstream MiniMax API)
# https://platform.minimax.io/docs/guides/text-generation
schema = 2
base_model = "minimax/MiniMax-M3"

[capabilities]
reasoning = { supported = true, default = { type = "toggle", value = false }, toggle = true }

[limit]
context = 1_000_000
output = 524_288

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content" }

[cost.text.input]
price = 0.30

[[cost.text.input.overrides]]
when = { context = { gt = 512_000 } }
price = 0.60

[cost.text.output]
price = 1.20

[[cost.text.output.overrides]]
when = { context = { gt = 512_000 } }
price = 2.40
29 changes: 29 additions & 0 deletions providers/sahabatmobile/models/claude-haiku-5-5.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Price (USD/MTok) = official Anthropic price, tiered by prompt length: prompts over 100,000 tokens bill at the higher tier (overrides below).
# source: https://platform.claude.com/docs/en/about-claude/pricing
# Toggle: thinking.type = adaptive|disabled (default adaptive; disabled accepted at effort <= high, rejected at xhigh/max)
# https://platform.claude.com/docs/en/about-claude/effort
# Served via SahabatMobile's OpenAI-compatible API over Anthropic direct.
schema = 2
base_model = "anthropic/claude-haiku-5-5"

[capabilities]
tools = { supported = true, choice = ["auto", "none", "required", "tool"] }
reasoning = { supported = true, toggle = true, effort = ["low", "medium", "high", "xhigh", "max"] }
structured_output = true

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content" }

[cost.text.input]
price = 0.1

[[cost.text.input.overrides]]
when = { context = { gt = 100_000 } }
price = 0.5

[cost.text.output]
price = 0.5

[[cost.text.output.overrides]]
when = { context = { gt = 100_000 } }
price = 2.5
18 changes: 18 additions & 0 deletions providers/sahabatmobile/models/claude-opus-4-6.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Price (USD/MTok) = official Anthropic price; source: https://platform.claude.com/docs/en/about-claude/pricing
# Served via SahabatMobile's OpenAI-compatible API over Anthropic direct.
schema = 2
base_model = "anthropic/claude-opus-4-6"

[capabilities]
tools = { supported = true, choice = ["auto", "none", "required", "tool"] }
reasoning = { supported = true, effort = ["low", "medium", "high", "max"], budget = { min = 1_024 } }
structured_output = true

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content" }

[cost.text.input]
price = 5

[cost.text.output]
price = 25
18 changes: 18 additions & 0 deletions providers/sahabatmobile/models/claude-opus-4-8.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Price (USD/MTok) = official Anthropic price; source: https://platform.claude.com/docs/en/about-claude/pricing
# Served via SahabatMobile's OpenAI-compatible API over Anthropic direct.
schema = 2
base_model = "anthropic/claude-opus-4-8"

[capabilities]
tools = { supported = true, choice = ["auto", "none", "required", "tool"] }
reasoning = { supported = true, effort = ["low", "medium", "high", "xhigh", "max"] }
structured_output = true

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content" }

[cost.text.input]
price = 5

[cost.text.output]
price = 25
17 changes: 17 additions & 0 deletions providers/sahabatmobile/models/claude-sonnet-5-5.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Price (USD/MTok) = official Anthropic price; source: https://platform.claude.com/docs/en/about-claude/pricing
# Served via SahabatMobile's OpenAI-compatible API over Anthropic direct.
schema = 2
base_model = "anthropic/claude-sonnet-5-5"

[capabilities]
reasoning = { supported = true, effort = ["low", "medium", "high", "xhigh", "max"] }
structured_output = true

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content" }

[cost.text.input]
price = 2

[cost.text.output]
price = 10
24 changes: 24 additions & 0 deletions providers/sahabatmobile/models/mimo-v2.5.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Price (USD/MTok) = official Xiaomi price; the V2.5 series is priced the same as V2.6: https://mimo.mi.com/static/docs/news/latest/v2-6.md
# Serving: Xiaomi retired the mimo-v2.5 upstream ID on 2026-10-21 (400 "Unsupported model"), but SahabatMobile's
# gateway aliases mimo-v2.5 -> mimo-v2.6-flash (ai.model_redirects in config/ai.php), so requests stay callable
# and are served by mimo-v2.6-flash over MiMo Direct (own master key), billed under the called slug.
# Toggle: thinking.type = "enabled"|"disabled" (default enabled)
# https://platform.xiaomimimo.com/static/docs/api/chat/openai-api.md
schema = 2
base_model = "xiaomi/mimo-v2.6-flash"
name = "MiMo V2.5"

[capabilities]
tools = { supported = true, strict = true, choice = ["auto"] }
reasoning = { supported = true, default = { type = "toggle", value = true }, toggle = true }
structured_output = true
top_k = false

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content" }

[cost.text.input]
price = 0.14

[cost.text.output]
price = 0.28
21 changes: 21 additions & 0 deletions providers/sahabatmobile/models/mimo-v2.6-flash.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Price (USD/MTok) = official Xiaomi MiMo price; upstream pricing per Xiaomi MiMo API docs:
# https://mimo.mi.com/static/docs/price/pay-as-you-go.md (MiMo Direct)
# Toggle: thinking.type = "enabled"|"disabled" (default enabled)
# Served via SahabatMobile's OpenAI-compatible API over MiMo Direct.
schema = 2
base_model = "xiaomi/mimo-v2.6-flash"

[capabilities]
tools = { supported = true, strict = true, choice = ["auto"] }
reasoning = { supported = true, default = { type = "toggle", value = true }, toggle = true }
structured_output = true
top_k = false

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content" }

[cost.text.input]
price = 0.14

[cost.text.output]
price = 0.28
21 changes: 21 additions & 0 deletions providers/sahabatmobile/models/mimo-v2.6-pro.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Price (USD/MTok) = official Xiaomi MiMo price; upstream pricing per Xiaomi MiMo API docs:
# https://mimo.mi.com/static/docs/price/pay-as-you-go.md (MiMo Direct)
# Toggle: thinking.type = "enabled"|"disabled" (default enabled)
# Served via SahabatMobile's OpenAI-compatible API over MiMo Direct.
schema = 2
base_model = "xiaomi/mimo-v2.6-pro"

[capabilities]
tools = { supported = true, strict = true, choice = ["auto"] }
reasoning = { supported = true, default = { type = "toggle", value = true }, toggle = true }
structured_output = true
top_k = false

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content" }

[cost.text.input]
price = 0.435

[cost.text.output]
price = 0.87
17 changes: 17 additions & 0 deletions providers/sahabatmobile/models/qwen3.8-max.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Price (USD/MTok) = official Alibaba Qwen price (qwen3.8-max, international): https://www.alibabacloud.com/help/en/model-studio/model-pricing (accessed 2026-11-16)
# Toggle: enable_thinking true|false; Effort: reasoning_effort = low|medium|xhigh; Budget: thinking_budget (0..262144, reasoning tokens, not combinable with reasoning_effort)
# Reasoning wire paths per upstream Qwen docs: https://docs.qwencloud.com/developer-guides/text-generation/thinking
schema = 2
base_model = "alibaba/qwen3.8-max"

[capabilities]
reasoning = { supported = true, default = { type = "effort", value = "xhigh" }, toggle = true, effort = ["low", "medium", "xhigh"], budget = { min = 0, max = 262_144 } }

[api.chat-completions]
compatibility = { reasoning_field = "reasoning_content" }

[cost.text.input]
price = 2.00

[cost.text.output]
price = 6.00
6 changes: 6 additions & 0 deletions providers/sahabatmobile/provider.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name = "SahabatMobile"
npm = "@ai-sdk/openai-compatible"
opencodeai = "@opencode/ai/providers/openai-compatible"
api = "https://www.sahabatmobile.com/api/v1"
env = ["SAHABAT_API_KEY"]
doc = "https://www.sahabatmobile.com/docs"
Loading