Skip to content

curl 第一次调用

curl 可以从终端直接测试 API,适合在配置第三方软件前排除地址和 Key 问题。

查看模型列表

bash
curl https://api.iruoke.top/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

发送聊天请求

bash
curl https://api.iruoke.top/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-flash",
    "messages": [
      {"role": "user", "content": "只回复 OK"}
    ],
    "stream": false
  }'

替换位置

只替换 YOUR_API_KEY。模型下线时,再到模型广场复制一个当前可用 ID。

不要直接截图终端

终端命令历史和错误输出可能包含完整 Key。发给别人前必须打码。

撩梦中转站 · Simple API, More Possibilities.