API 参考
基础 URL:https://api.jarvisclaw.ai/v1
认证方式:Authorization: Bearer sk-your-api-key 或 PAYMENT-SIGNATURE(x402)
AI 模型
| API | 端点 | 计费方式 |
|---|---|---|
| Responses API | POST /v1/responses | 按 token |
| Anthropic Messages | POST /v1/messages | 按 token |
| Chat Completions | POST /v1/chat/completions | 按 token |
| Embeddings | POST /v1/embeddings | 按 token |
| Rerank | POST /v1/rerank | 按次 |
| 图像生成 | POST /v1/images/generations | 按张 |
| 视频生成 | POST /v1/videos/generations | 按条 |
| 音乐生成 | POST /v1/audio/generations | 按曲 |
| 语音 & TTS | POST /v1/audio/speech | 按 token |
| 网页搜索 | POST /v1/search | 按次 |
| Prompt Coach | POST /v1/prompt-coach/optimize | 按次 |
市场服务
| API | 端点 | 计费方式 |
|---|---|---|
| Marketplace 总览 | /v1/marketplace/* | 按次 |
| 预测市场 | /v1/marketplace/prediction/* | 按次 |
| DEX 交易 (0x) | /v1/marketplace/dex/* | 按次 |
| 算力(沙箱) | /v1/marketplace/compute/* | 按次 |
| 加密数据 (Surf) | /v1/marketplace/surf/* | 按次 |
| 电话 & 语音 | /v1/marketplace/phone/* | 按次 |
| 交易市场 | /v1/marketplace/markets/* | 按次 |
| RealFace & 肖像 | /v1/marketplace/realface/* | 按次 |
Agent 意图协议 (AIP)
| API | 端点 | 计费方式 |
|---|---|---|
| AIP 协议 | POST /v1/intent/resolve | 按次 |
| AIP 执行 | POST /v1/intent/execute | 按意图 |
| AIP 网络 | /v1/network/* | 免费(execute 付费) |
| Agent 经济 | 概览 | — |
| 钱包 | /v1/wallet/* | 免费 |
发现 & 协议
| API | 端点 | 描述 |
|---|---|---|
| 发现 | /.well-known/x402 | x402 服务发现 |
| AIP 发现 | /.well-known/agent-intent-protocol.json | AIP Agent 发现 |
| A2A 发现 | /.well-known/agent-card.json | A2A Agent Card |
| MCP | /mcp | Model Context Protocol 服务器 |
参考
| 页面 | 描述 |
|---|---|
| 错误码 | 错误码与处理方式 |
| 模型 | 可用模型列表 |
| 安全 | 认证、加密、限流 |