You need to enable JavaScript to run this app.
文档中心
火山方舟

火山方舟

复制全文
下载 pdf
管理推理接入点(Endpoint)
创建推理接入点
复制全文
下载 pdf
创建推理接入点
POST https://ark.cn-beijing.volcengineapi.com/?Action=CreateEndpoint&Version=2024-01-01​
创建一个推理接入点(Endpoint),用于调用模型服务。接入点是调用模型的入口资源,绑定模型后即可通过接入点 ID 发起推理请求。​
注意​
创建接入点为异步操作,返回 Id 后接入点进入调度(Scheduling)状态,运行就绪后转为 Running。计费随接入点进入 Running 状态开始;如需先校验参数而不实际创建,可设置 DryRun 为 true。​
鉴权​
本接口支持鉴权方式如下,详情请参见 Base URL 及鉴权。​
  • Access Key 鉴权,请在 Access Key 管理 页面,获取 Access Key。本接口仅支持 Access Key 鉴权。​
​​
请求参数​
Body 参数​
ModelReference object 必选 | 接入模型配置​
​
Name string 必选 | 接入点名称​
​
AgenticStrategy object | Agent 策略​
​
AllowDataCollected boolean | 允许数据采集​
​
BatchOnly boolean 默认值 false | 仅批量推理​
​
ContentGeneration object | 生图/生视频配置​
​
DataDelivery boolean 默认值 false | 数据回流​
​
DedicatedToDynamicPTU boolean | 动态模型单元​
​
DedicatedToPTU boolean 默认值 false | 独占模型单元​
​
DeploymentType string | 部署类型​
​
Description string | 接入点描述​
​
Domain string 默认值 Ark | 接入点类型​
​
DryRun boolean 默认值 false | 预检模式​
​
Fallback object | 降级配置​
​
InferenceFoundry object | 推理工厂配置​
​
IntelligentRouter object | 智能路由​
​
IsAgentic boolean | 启用 Agent 化​
​
IsIntelligent boolean | 启用智能路由​
​
LimitCoefficient object | 限流系数​
​
ModelUnitId string | 模型单元 ID​
​
Moderation object | 内容安全护栏​
​
NeedWatermark boolean | 启用水印​
​
ProjectName string 默认值 default | 项目名称​
​
RateLimit object | 限流配置​
​
ServiceInfo object | MLP 服务信息​
​
Tags object[] | 标签列表​
​
WatermarkInfo object | 水印主体信息​
​
​
响应参数​
Id string | 接入点 ID​
​
​

Request

curl 'https://ark.cn-beijing.volcengineapi.com/?Action=CreateEndpoint&Version=2024-01-01' \
  -H 'Content-Type: application/json' \
  -H 'X-Date: <X-Date>' \
  -H 'X-Content-Sha256: <X-Content-Sha256>' \
  -H 'Authorization: HMAC-SHA256 Credential=<AK>/<X-Date>/cn-beijing/ark/request, SignedHeaders=content-type;host;x-content-sha256;x-date, Signature=<Signature>' \
  -d '{
  "Name": "my-endpoint",
  "Description": "My model inference endpoint",
  "ModelReference": {
    "FoundationModel": {
      "Name": "doubao-seed-2-1-pro",
      "ModelVersion": "260628"
    }
  }
}
'

Response

{
  "ResponseMetadata": {
    "RequestId": "20240514212750152186163065FE5A2A",
    "Action": "CreateEndpoint",
    "Version": "2024-01-01",
    "Service": "ark",
    "Region": "cn-beijing"
  },
  "Result": {
    "Id": "ep-20240514212750-a3f8k"
  }
}
最近更新时间:2026.09.04 20:17:04
这个页面对您有帮助吗?
有用
有用
无用
无用