跳转到主要内容
This page should be streamlined.Options are:
  • on-chain vs off-chain
  • ai vs video vs dual
What it explains:
  • Discovery
  • Filtering
  • Routing
This page is a work in progress. Needs a lot of edits.

如何发现和连接市场上的服务

此页面解释了网关如何发现并提供可在市场上使用的编排器服务,供应用程序和开发者使用。

发现流程

网关通过编排器池发现编排器,位于discovery/discovery.go discovery.go:64-111
  1. 查询编排器获取OrchestratorInfo每个协调器
  2. 过滤功能和价格:根据所需功能和定价限制进行匹配,并可选择对结果进行排序
  3. 暴露结果:通过HTTP端点提供匹配的协调器服务
  4. 路由请求:将传入的请求转发到选定的协调器

查找所有协调器和报价

接口/getNetworkCapabilitiesserver/handlers.go 暴露所有可用的协调器服务
func (s *LivepeerServer) getNetworkCapabilitiesHandler() http.Handler {
    return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
        // Returns orchestrators with their capabilities, pricing, and hardware
    })
}
响应数据结构 响应使用来自common/types.go types.go:166-176
type NetworkCapabilities struct {
    Orchestrators []*OrchNetworkCapabilities `json:"orchestrators"`
}

type OrchNetworkCapabilities struct {
    Address            string                     `json:"address"`
    LocalAddress       string                     `json:"local_address"`
    OrchURI            string                     `json:"orch_uri"`
    Capabilities       *net.Capabilities          `json:"capabilities"`
    CapabilitiesPrices []*net.PriceInfo           `json:"capabilities_prices"`
    Hardware           []*net.HardwareInformation `json:"hardware"`
}

网关

网关暴露描述以下内容的服务:

1. 支持的模型

示例:
  • stable-diffusion-v1.5
  • depth-anything
  • controlnet_lineart
  • ip_adapter

2. 支持的流水线

  • Daydream 风格的实时风格迁移
  • ComfyStream 工作流
  • BYOC 容器
  • 自定义推理图

3. 定价

网关可以定价:
  • $0.004 / frame
  • $0.06 / second
  • $0.0005 / inference token

4. 区域

示例:
  • us-east
  • eu-central
  • ap-southeast

5. 可靠性评分

网关可能发布:
  • 可用性 %
  • 平均推理延迟
  • 故障转移配置
Last modified on March 1, 2026