{
    "displayName": "OpenCode",
    "baseUrl": "https://opencode.ai/inference/openai/v1",
    "apiKeyTemplate": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "models": [
        {
            "id": "grok-4.7-go",
            "name": "Grok-4.7 (Go)",
            "model": "grok-4.7",
            "sdkMode": "openai-responses",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 — Grok-4.7。",
            "contextSize": [500000, 256000, 192000],
            "maxInputTokens": 436000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["low", "medium", "high", "xhigh"],
            "reasoningDefault": "high",
            "capabilities": { "toolCalling": true, "imageInput": true },
            "webSearchTool": true,
            "tokenPricing": {
                "pricing": [2, 6, 0.5],
                "tiers": [{ "contextSizeMin": 200001, "pricing": [4, 12, 1] }]
            }
        },
        {
            "id": "grok-4.6-go",
            "name": "Grok-4.6 (Go)",
            "model": "grok-4.6",
            "sdkMode": "openai-responses",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - xAI Grok 4.6。",
            "maxInputTokens": 224000,
            "maxOutputTokens": 32000,
            "reasoningEffort": ["low", "medium", "high", "xhigh"],
            "webSearchTool": true,
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": {
                "pricing": [2, 6, 0.5],
                "tiers": [{ "contextSizeMin": 200001, "pricing": [4, 12, 1] }]
            }
        },
        {
            "id": "glm-5.3-flash-go",
            "name": "GLM-5.3-Flash (Go)",
            "model": "glm-5.3-flash",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 智谱 GLM-5.3-Flash 原生多模态视觉模型，支持 1M 上下文。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["high", "max", "low"],
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.15, 0.5, 0.03]
        },
        {
            "id": "glm-5.3-go",
            "name": "GLM-5.3 (Go)",
            "model": "glm-5.3",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 智谱 GLM-5.3 最新旗舰模型。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["high", "max", "low"],
            "capabilities": { "toolCalling": true, "imageInput": false },
            "tokenPricing": [1.4, 4.4, 0.26]
        },
        {
            "id": "glm-5.2-go",
            "name": "GLM-5.2 (Go)",
            "model": "glm-5.2",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 智谱 GLM-5.2 是面向长任务时代的旗舰模型，Go 套餐可用 256K 上下文。",
            "maxInputTokens": 224000,
            "maxOutputTokens": 32000,
            "reasoningEffort": ["high", "max", "none"],
            "thinkingFormat": "object-none",
            "capabilities": { "toolCalling": true, "imageInput": false },
            "tokenPricing": [1.4, 4.4, 0.26]
        },
        {
            "id": "gpt-5.6-luna-go",
            "name": "GPT-5.6-Luna (Go)",
            "model": "gpt-5.6-luna",
            "sdkMode": "openai-responses",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - GPT 5.6 Luna，OpenAI 最新编程模型。",
            "contextSize": [400000, 1000000],
            "maxInputTokens": 872000,
            "maxOutputTokens": 128000,
            "webSearchTool": true,
            "useInstructions": true,
            "reasoningEffort": ["none", "low", "medium", "high", "xhigh"],
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": {
                "pricing": [0.2, 1.2, 0.02, 0.25],
                "tiers": [{ "contextSizeMin": 272001, "pricing": [0.4, 1.8, 0.04, 0.5] }]
            },
            "extraBody": {
                "store": false,
                "tool_choice": "auto",
                "reasoning": {
                    "effort": "medium",
                    "summary": "auto"
                }
            }
        },
        {
            "id": "kimi-k3-go",
            "name": "Kimi-K3 (Go)",
            "model": "kimi-k3",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 月之暗面 Kimi K3，支持 1M 上下文与视觉输入。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["max", "high", "low"],
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [3, 15, 0.3]
        },
        {
            "id": "kimi-k2.7-code-go",
            "name": "Kimi-K2.7-Code (Go)",
            "model": "kimi-k2.7-code",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 月之暗面 Kimi K2.7 Code。",
            "maxInputTokens": 224000,
            "maxOutputTokens": 32000,
            "extraBody": { "thinking": { "type": "enabled" } },
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.95, 4.0, 0.19]
        },
        {
            "id": "kimi-k2.6-go",
            "name": "Kimi-K2.6 (Go)",
            "model": "kimi-k2.6",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 月之暗面 Kimi K2.6，最新编程模型，强思考能力与多步工具调用。",
            "maxInputTokens": 224000,
            "maxOutputTokens": 32000,
            "thinking": ["enabled", "disabled"],
            "thinkingFormat": "object",
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.95, 4.0, 0.16]
        },
        {
            "id": "longcat-2.0-go",
            "name": "LongCat-2.0 (Go)",
            "model": "longcat-2.0",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - LongCat-2.0，高性能 Agentic 模型，1M 上下文。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinking": ["enabled", "disabled"],
            "thinkingFormat": "object",
            "capabilities": { "toolCalling": true, "imageInput": false },
            "tokenPricing": [0.3, 1.2, 0.006]
        },
        {
            "id": "mimo-v2.6-pro-go",
            "name": "MiMo-V2.6-Pro (Go)",
            "model": "mimo-v2.6-pro",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 — MiMo-V2.6-Pro。",
            "sdkMode": "openai-sse",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinking": ["enabled", "disabled"],
            "thinkingFormat": "object",
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.435, 0.87, 0.0036]
        },
        {
            "id": "mimo-v2.6-flash-go",
            "name": "MiMo-V2.6-Flash (Go)",
            "model": "mimo-v2.6-flash",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 — MiMo-V2.6-Flash。",
            "sdkMode": "openai-sse",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinking": ["enabled", "disabled"],
            "thinkingFormat": "object",
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.14, 0.28, 0.0028]
        },
        {
            "id": "mimo-v2.5-go",
            "name": "MiMo-V2.5 (Go)",
            "model": "mimo-v2.5",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 小米 MiMo V2.5 开源编程模型。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinkingFormat": "object",
            "thinking": ["enabled", "disabled"],
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.14, 0.28, 0.0028]
        },
        {
            "id": "mimo-v2.5-pro-go",
            "name": "MiMo-V2.5-Pro (Go)",
            "model": "mimo-v2.5-pro",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 小米 MiMo V2.5 Pro 版本。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinkingFormat": "object",
            "thinking": ["enabled", "disabled"],
            "capabilities": { "toolCalling": true, "imageInput": false },
            "tokenPricing": [0.435, 0.87, 0.003625]
        },
        {
            "id": "minimax-m3-go",
            "name": "MiniMax-M3 (Go)",
            "model": "minimax-m3",
            "sdkMode": "anthropic",
            "baseUrl": "https://opencode.ai/inference/go/anthropic",
            "tooltip": "OpenCode Go 套餐 - MiniMax M3，原生多模态、1M 上下文的 Frontier Coding 模型。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.3, 1.2, 0.06]
        },
        {
            "id": "minimax-m2.7-go",
            "name": "MiniMax-M2.7 (Go)",
            "model": "minimax-m2.7",
            "sdkMode": "anthropic",
            "baseUrl": "https://opencode.ai/inference/go/anthropic",
            "tooltip": "OpenCode Go 套餐 - MiniMax M2.7，能够自行构建复杂 Agent Harness，完成高度复杂的生产力任务。",
            "maxInputTokens": 168000,
            "maxOutputTokens": 32000,
            "capabilities": { "toolCalling": true, "imageInput": false },
            "tokenPricing": [0.3, 1.2, 0.06, 0.375]
        },
        {
            "id": "muse-spark-1.3-contributor-go",
            "name": "Muse Spark 1.3 Contributor (Go)",
            "model": "muse-spark-1.3-contributor",
            "sdkMode": "openai-responses",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - Muse Spark 1.3 Contributor，仅限部分地区使用。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["high", "xhigh", "medium", "low", "minimal"],
            "reasoningDefault": "high",
            "thinkingFormat": "effort-only",
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.1, 0.2, 0.002],
            "extraBody": {
                "store": false,
                "include": ["reasoning.encrypted_content"],
                "reasoning": {
                    "effort": "high",
                    "summary": "auto"
                }
            }
        },
        {
            "id": "muse-spark-1.2-contributor-go",
            "name": "Muse Spark 1.2 Contributor (Go)",
            "model": "muse-spark-1.2-contributor",
            "sdkMode": "openai-responses",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - Muse Spark 1.2 Contributor。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["high", "xhigh", "medium", "low", "minimal"],
            "reasoningDefault": "high",
            "thinkingFormat": "effort-only",
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.1, 0.2, 0.002],
            "extraBody": {
                "store": false,
                "include": ["reasoning.encrypted_content"],
                "reasoning": {
                    "effort": "high",
                    "summary": "auto"
                }
            }
        },
        {
            "id": "qwen3.8-max-go",
            "name": "Qwen3.8-Max (Go)",
            "model": "qwen3.8-max",
            "sdkMode": "anthropic",
            "baseUrl": "https://opencode.ai/inference/go/anthropic",
            "tooltip": "OpenCode Go 套餐 - 通义千问 Qwen3.8 Max。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["xhigh", "medium", "low", "none"],
            "reasoningDefault": "xhigh",
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [2.0, 6.0, 0.25, 2.5]
        },
        {
            "id": "qwen3.8-flash-go",
            "name": "Qwen3.8-Flash (Go)",
            "model": "qwen3.8-flash",
            "sdkMode": "anthropic",
            "baseUrl": "https://opencode.ai/inference/go/anthropic",
            "tooltip": "OpenCode Go 套餐 - 通义千问 Qwen3.8 Flash。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["xhigh", "medium", "low", "none"],
            "reasoningDefault": "xhigh",
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [0.15, 0.47, 0.016, 0.2]
        },
        {
            "id": "qwen3.7-max-go",
            "name": "Qwen3.7-Max (Go)",
            "model": "qwen3.7-max",
            "sdkMode": "anthropic",
            "baseUrl": "https://opencode.ai/inference/go/anthropic",
            "tooltip": "OpenCode Go 套餐 - 通义千问 Qwen3.7 Max。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinking": ["enabled", "disabled"],
            "capabilities": { "toolCalling": true, "imageInput": false },
            "tokenPricing": [2.5, 7.5, 0.5, 3.125]
        },
        {
            "id": "qwen3.7-plus-go",
            "name": "Qwen3.7-Plus (Go)",
            "model": "qwen3.7-plus",
            "sdkMode": "anthropic",
            "baseUrl": "https://opencode.ai/inference/go/anthropic",
            "tooltip": "OpenCode Go 套餐 - 通义千问 Qwen3.7 Plus。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinking": ["enabled", "disabled"],
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": {
                "pricing": [0.4, 1.6, 0.04, 0.5],
                "tiers": [{ "contextSizeMin": 256001, "pricing": [1.2, 4.8, 0.12, 1.5] }]
            }
        },
        {
            "id": "deepseek-v4.1-flash-go",
            "name": "DeepSeek-V4.1-Flash (Go)",
            "model": "deepseek-v4.1-flash",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - DeepSeek V4.1 Flash，快速经济的 API 服务。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinkingFormat": "object-none",
            "reasoningEffort": ["high", "max", "low", "none"],
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": {
                "pricing": [0.15, 0.6, 0.003],
                "tiers": [{ "cron": "* 9-11,14-17 * * 1-5", "pricing": 2 }]
            }
        },
        {
            "id": "deepseek-v4-pro-go",
            "name": "DeepSeek-V4-Pro (Go)",
            "model": "deepseek-v4-pro",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - DeepSeek V4 Pro，Agent 能力显著增强，具备丰富的世界知识。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinkingFormat": "object-none",
            "reasoningEffort": ["high", "max", "low", "none"],
            "capabilities": { "toolCalling": true, "imageInput": false },
            "tokenPricing": {
                "pricing": [0.66, 1.98, 0.022],
                "tiers": [{ "cron": "* 9-11,14-17 * * 1-5", "pricing": 2 }]
            }
        },
        {
            "id": "hy4-preview-go",
            "name": "Hy4 Preview (Go)",
            "model": "hy4-preview",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 腾讯混元 Hy4 Preview。",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "thinking": ["enabled", "disabled"],
            "thinkingFormat": "object",
            "capabilities": { "toolCalling": true, "imageInput": false },
            "tokenPricing": [0.834, 2.501, 0.042]
        },
        {
            "id": "hy3-go",
            "name": "Hy3 (Go)",
            "model": "hy3",
            "sdkMode": "openai-sse",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 - 腾讯混元 Hy3，MoE 架构，256K 上下文，快慢思考融合的 Agent 模型。",
            "maxInputTokens": 192000,
            "maxOutputTokens": 64000,
            "thinking": ["enabled", "disabled"],
            "thinkingFormat": "object",
            "capabilities": { "toolCalling": true, "imageInput": false },
            "tokenPricing": [0.14, 0.58, 0.035]
        },
        {
            "id": "gpt-6-luna-go",
            "name": "GPT-6-Luna (Go)",
            "model": "gpt-6-luna",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 — GPT-6-Luna。",
            "sdkMode": "openai-responses",
            "contextSize": [400000, 1000000],
            "maxInputTokens": 872000,
            "maxOutputTokens": 128000,
            "reasoningEffort": ["none", "low", "medium", "high", "xhigh", "max"],
            "capabilities": { "toolCalling": true, "imageInput": true },
            "extraBody": {
                "store": false,
                "tool_choice": "auto",
                "reasoning": { "effort": "medium", "summary": "auto" }
            },
            "tokenPricing": {
                "pricing": [0.1, 0.5, 0.01, 0.125],
                "tiers": [
                    {
                        "contextSizeMin": 272001,
                        "pricing": [0.2, 0.75, 0.02, 0.25]
                    }
                ]
            }
        },
        {
            "id": "claude-haiku-5-5-go",
            "name": "Claude-Haiku-5.5 (Go)",
            "model": "claude-haiku-5-5",
            "baseUrl": "https://opencode.ai/inference/go/anthropic",
            "tooltip": "OpenCode Go 套餐 — Claude-Haiku-5.5。",
            "sdkMode": "anthropic",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["medium", "high", "max", "low", "none"],
            "reasoningDefault": "medium",
            "capabilities": { "toolCalling": true, "imageInput": true },
            "extraBody": {
                "thinking": { "type": "adaptive" }
            },
            "tokenPricing": {
                "pricing": [0.1, 0.5, 0.01, 0.125],
                "tiers": [
                    {
                        "contextSizeMin": 100001,
                        "pricing": [0.5, 2.5, 0.05, 0.625]
                    }
                ]
            }
        },
        {
            "id": "gemini-4-argon-contributor-go",
            "name": "Gemini-4-Argon-Contributor (Go)",
            "model": "gemini-4-argon-contributor",
            "baseUrl": "https://opencode.ai/inference/go/google/v1beta",
            "tooltip": "OpenCode Go 套餐 — Gemini-4-Argon-Contributor。",
            "sdkMode": "gemini-sse",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["low", "medium", "high"],
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [4, 20, 0.2]
        },
        {
            "id": "step-5-preview-go",
            "name": "Step-5-Preview (Go)",
            "model": "step-5-preview",
            "baseUrl": "https://opencode.ai/inference/go/openai/v1",
            "tooltip": "OpenCode Go 套餐 — Step-5-Preview。",
            "sdkMode": "openai-sse",
            "contextSize": [1000000, 512000, 400000, 256000, 192000],
            "maxInputTokens": 936000,
            "maxOutputTokens": 64000,
            "reasoningEffort": ["low", "medium", "high"],
            "capabilities": { "toolCalling": true, "imageInput": true },
            "tokenPricing": [1, 2.7, 0.1]
        }
    ]
}
