火山引擎Coding Plan免费体验

AI大语言模型

注册火山引擎后,会陆续收到3.6元、18元、54元等不同面额的代金券。部分代金券可用于购买Coding Plan套餐。

注意,代金券适用的Coding Plan套餐须在以下页面购买:

方舟Coding Plan

Lite Plan套餐经常缺货,可以每天在上午时段尝试下单。

火山引擎Coding Plan套餐配额

套餐适用场景用量限制
Lite 套餐中等强度的开发任务,适合大多数开发者。每 5 小时:最多约 1,200 次请求。每周:最多约 9,000 次请求。每订阅月:最多约 18,000 次请求。
Pro 套餐复杂项目开发,适合高强度工作的开发者。Lite 套餐的 5 倍用量。每 5 小时:最多约 6,000 次请求。每周:最多约 45,000 次请求。每订阅月:最多约 90,000 次请求。

在开通管理页面可以查看套餐使用情况:

火山引擎Coding Plan用量查询

Lite Plan套餐能用多久?使用OpenCode轻量开发一个小应用,使用了13天。如果仅代码补全,应该可以用得更久;如果高频使用,或项目较大,上下文比较长,则需要Pro Plan。

OpenCode接入火山引擎

opencode.json中添加如下代码:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "volcengine-agent-plan/ark-code-latest",
  "provider": {
    "volcengine-agent-plan": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Volcano Engine",
      "options": {
        "baseURL": "https://ark.cn-beijing.volces.com/api/plan/v3",
        "apiKey": "<ARK_API_KEY>"
      },
      "models": {
        "ark-code-latest": {
          "name": "ark-code-latest",
          "limit": {
            "context": 256000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          }
        },
        "glm-5.2": {
          "name": "glm-5.2",
          "limit": {
            "context": 1024000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text"
            ],
            "output": [
              "text"
            ]
          }
        },
        "glm-latest": {
          "name": "glm-latest",
          "limit": {
            "context": 1024000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text"
            ],
            "output": [
              "text"
            ]
          }
        },
        "deepseek-v4-flash": {
          "name": "deepseek-v4-flash",
          "limit": {
            "context": 1024000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text"
            ],
            "output": [
              "text"
            ]
          }
        },
        "deepseek-v4-pro": {
          "name": "deepseek-v4-pro",
          "limit": {
            "context": 1024000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text"
            ],
            "output": [
              "text"
            ]
          }
        },
        "doubao-seed-2.0-code": {
          "name": "doubao-seed-2.0-code",
          "limit": {
            "context": 256000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          }
        },
        "doubao-seed-2.0-pro": {
          "name": "doubao-seed-2.0-pro",
          "limit": {
            "context": 256000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          }
        },
        "doubao-seed-2.0-lite": {
          "name": "doubao-seed-2.0-lite",
          "limit": {
            "context": 256000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          }
        },
        "doubao-seed-2.0-mini": {
          "name": "doubao-seed-2.0-mini",
          "limit": {
            "context": 256000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          }
        },
        "minimax-m2.7": {
          "name": "minimax-m2.7",
          "limit": {
            "context": 200000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text"
            ],
            "output": [
              "text"
            ]
          }
        },
        "minimax-m3": {
          "name": "minimax-m3",
          "limit": {
            "context": 512000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          }
        },
        "kimi-k2.6": {
          "name": "kimi-k2.6",
          "limit": {
            "context": 256000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          }
        },
        "kimi-k2.7-code": {
          "name": "kimi-k2.7-code",
          "limit": {
            "context": 256000,
            "output": 4096
          },
          "modalities": {
            "input": [
              "text"
            ],
            "output": [
              "text"
            ]
          }
        }
      }
    }
  }
}

将以上代码中的<ARK_API_KEY>替换为你的API Key。

创建火山引擎Coding Plan API Key

火山引擎API Key支持IP白名单设置,从而降低被盗用的风险:

火山引擎API Key创建

IP调用白名单支持配置IP段,例如:8.8.8.0/24

在Coding Plan配置里选择要使用的API Key:

为Coding Plan选择API Key

AI大语言模型