BazaarLinkBazaarLink
登入
文件API 参考SDK 参考Agent 应用AI Skills
章节导航
API 密钥

注册 Agent

在启用注册时创建未付费 Agent 账户。未付费 Agent 使用现有的免费模型机制;免费网页搜索需要已验证的电子邮件,因此不包含在此流程中。

POST/v1/agents/register

Body

name必填
string

Agent 名称。

Example: research-agent
description
string

可选的 Agent 描述。

referral_code
string

可选的推荐码。

agent_type必填
string

这是什么 Agent(必填,最多 80 字)。例如 claude-code、cursor、codex、cline、openclaw、custom,或自行填写。

Example: claude-code
discovery_source必填
string

怎么找到我们(必填):search、skill_md、referral、openrouter_alternatives 或 other。选 other 时可另附 discovery_detail(最多 200 字)。

Example: skill_md
intended_use必填
string

打算用来做什么(必填,最多 300 字)。

Example: Run web research tasks with several models through one API key.
x402_interest必填
string

知不知道我们支持 x402 付款、要不要用(必填):true 或 false(也接受 "yes"、"no")。

Example: false
pow_challenge必填
string

从 GET https://bazaarlink.ai/api/v1/agents/register/challenge 获取的挑战字符串。

Example: <challenge>
pow_solution必填
string

使 SHA-256(challenge + ":" + solution) 具有足够前导零比特的字符串;一个挑战只能使用一次,须来自获取它的 IP,120 秒内有效。

Example: <solution>

深度指南 →

POST /v1/agents/register
curl https://api.bazaarlink.ai/api/v1/agents/register -H "Content-Type: application/json" -d '{"name":"research-agent","agent_type":"claude-code","discovery_source":"skill_md","intended_use":"Run web research tasks with several models through one API key.","x402_interest":false,"pow_challenge":"<challenge>","pow_solution":"<solution>"}'
响应示例

创建成功;响应包含 API 密钥、额度、7 天 claim token 及到期时间、升级和文档链接,以及 free_model auto:free。

{
  "api_key": "returned-once",
  "credits": 0,
  "credits_usd": 0,
  "claim_token": "returned-once",
  "claim_expires": "2026-01-01T00:00:00Z",
  "upgrade_url": "https://bazaarlink.ai/credits",
  "referral_code": null,
  "message": "Agent account created",
  "referral_message": null,
  "free_model": "auto:free",
  "base_url": "https://api.bazaarlink.ai/v1",
  "docs": "https://bazaarlink.ai/skill.md"
}
客服
您好!有什么可以协助?
请留下消息,我们会尽快回复。
注册 Agent — BazaarLink API