世界模型 API

数万种大模型 / 图片 / 视频 API 极速聚合 · 无限并发

🚀 零成本迁移,1 分钟接入

将官方 Base URL 替换为:

https://base-url.cn/v1

即可直接调用下文全部端点,无需更改任何业务代码。

1. 聊天完成 /v1/chat/completions 点击展开
curl https://base-url.cn/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $YOUR_KEY" \
  -d '{
  "model": "gpt-3.5-turbo",
  "messages": [{"role": "user", "content": "Hello!"}]
}'
2. 图片生成 /v1/images/generations 点击展开
curl https://base-url.cn/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $YOUR_KEY" \
  -d '{
  "prompt": "A cute cat sitting on a chair",
  "n": 1,
  "size": "1024x1024"
}'
3. 图片编辑 /v1/images/edits 点击展开
curl https://base-url.cn/v1/images/edits \
  -H "Authorization: Bearer $YOUR_KEY" \
  -F "image=@cat.png" \
  -F "mask=@mask.png" \
  -F "prompt=A sunlit indoor lounge area with a pool" \
  -F "n=1" \
  -F "size=1024x1024"
立即注册 生成令牌 技术支持