Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.seeoneapi.com/llms.txt

Use this file to discover all available pages before exploring further.

基本信息

项目
Base URLhttps://api.seeoneapi.com/v1
协议HTTPS
认证Bearer Token
格式JSON
编码UTF-8

兼容标准

SeeOneAPI 完全兼容 OpenAI API 格式。所有支持 OpenAI API 的 SDK 和工具都可以直接使用。

可用端点

端点方法说明
/v1/chat/completionsPOST对话补全(所有文本模型)
/v1/images/generationsPOST图像生成(gpt-image-2)
/v1/modelsGET查看可用模型列表

通用请求头

Content-Type: application/json
Authorization: Bearer sk-你的API密钥

通用响应格式

成功响应:
{
  "id": "chatcmpl-xxx",
  "object": "chat.completion",
  "created": 1716000000,
  "model": "claude-sonnet-4-20250514",
  "choices": [...],
  "usage": {
    "prompt_tokens": 10,
    "completion_tokens": 100,
    "total_tokens": 110
  }
}
错误响应:
{
  "error": {
    "message": "错误描述",
    "type": "error_type",
    "code": "error_code"
  }
}