1. 快速开始1. Quick Start

5 步接入万能API,从注册到第一次调用不超过 5 分钟。 Get up and running in under 5 minutes — from sign-up to your first API call.

  1. 注册账号Create an account

    访问Visit 注册Register 填写邮箱即可开通 TRIAL 套餐,永久免费。and sign up with your email to start the free TRIAL plan.

  2. 创建 API KeyCreate an API Key

    进入控制台 → API Key → 创建新 Key。请妥善保存明文,关闭页面后无法再次查看。Key 格式:sk- + 64 位 hex,共 67 字符。Go to Dashboard → API Keys → Create new. Save the plaintext immediately — you won't see it again. Key format: sk- + 64 hex chars = 67 chars total.

  3. 选一个客户端工具Pick a client tool

    跳到 第 2 节「工具快速入口」挑一个 — Claude Code / Codex / OpenCode / Gemini CLI / OpenClaw / Dify / n8n / ComfyUI。每个工具都有"复制粘贴即用"的配置示例。Jump to section 2 Tools Index and pick one — Claude Code / Codex / OpenCode / Gemini CLI / OpenClaw / Dify / n8n / ComfyUI. Each tool ships a copy-paste-ready config.

  4. 第一次调用(cURL 测试)Your first call (cURL test)

    base_url 指向万能API,使用任意 OpenAI 兼容模型 ID:Point base_url to Universal API and use any OpenAI-compatible model ID:

    curl https://api.wannapi.com/v1/chat/completions \
      -H "Authorization: Bearer $YOUR_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "gpt-5.4",
        "messages": [{"role": "user", "content": "你好Hello"}]
      }'
  5. 查看用量Check usage

    控制台 → 用量 实时显示 Token 消耗、调用次数、剩余配额。Dashboard → Usage shows real-time token consumption, call counts, and remaining quota.