数万种大模型 / 图片 / 视频 API 极速聚合 · 无限并发
将官方 Base URL 替换为:
https://base-url.cn/v1
即可直接调用下文全部端点,无需更改任何业务代码。
/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!"}]
}'
/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"
}'
/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"