开发文档Documentation
快速接入,立即开始使用大模型服务
Quick Integration, Start Using LLM Services Now
快速开始
Quick Start
注册账号
Register Account
Register Account
前往控制台注册账号,获取专属 API Key
Register at the console, get your API Key
选择模型
Choose Model
Choose Model
从已上线的模型中选择,发起 API 请求
Choose from available models, make API requests
按需充值
Recharge
Recharge
查看用量统计,余额不足时及时充值
Check usage stats, recharge when needed
API 基础信息
API Base Info
Base URL: http://47.99.105.150/v1
Base URL: http://47.99.105.150/v1
兼容性: 兼容 OpenAI API 格式,支持 OpenAI SDK 直接调用
Compatibility: OpenAI API compatible, use OpenAI SDK directly
聊天补全接口
Chat Completions API
POST /v1/chat/completions
POST /v1/chat/completions
请求参数
Request Parameters
| 参数名Param | 类型Type | 必填Required | 说明Description |
|---|---|---|---|
| model | string | 是Yes | 模型标识Model ID |
| messages | array | 是Yes | 消息数组Message array |
| stream | boolean | 否No | 流式返回Stream response |
| temperature | float | 否No | 采样温度Sampling temperature |
| max_tokens | integer | 否No | 最大Token数Max tokens |
请求示例
Request Examples
# cURL curl http://47.99.105.150/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "Doubao-pro-128k", "messages": [ {"role": "user", "content": "你好Hello"} ] }'
from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="http://47.99.105.150/v1" ) response = client.chat.completions.create( model="Doubao-pro-128k", messages=[{"role": "user", "content": "你好Hello"}] ) print(response.choices[0].message.content)
响应示例
Response Example
{
"id": "chatcmpl-xxx",
"object": "chat.completion",
"created": 1700000000,
"model": "Doubao-pro-128k",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "你好!有什么可以帮助你的吗?Hello! How can I help you?"
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 20,
"total_tokens": 30
}
}
模型列表接口
List Models API
GET /v1/models
GET /v1/models
# cURL curl http://47.99.105.150/v1/models \ -H "Authorization: Bearer YOUR_API_KEY"
错误码说明
Error Codes
常见问题
FAQ
智能体接入指南
Agent Integration Guide
行业智能体提供Web界面和API两种使用方式,具体接入方式请咨询商务团队获取详细方案。
Industry agents provide both Web interface and API access. Contact our sales team for detailed integration plans.
选择行业智能体
Choose Industry Agent
Choose Industry Agent
根据业务需求选择合适的行业智能体,或联系商务定制开发
Select the right agent for your needs, or contact us for custom development
配置业务参数
Configure Parameters
Configure Parameters
根据企业实际情况配置行业参数、知识库和业务规则
Configure industry parameters, knowledge base and business rules
接入使用
Integrate & Use
Integrate & Use
通过Web界面直接使用,或通过API接入您的业务系统
Use via Web interface directly, or integrate with your system via API
💡 使用方式:💡 Access Methods:
• Web界面 — 直接在浏览器中使用,适合快速体验和日常办公
• API接入 — 通过标准REST API与您的业务系统集成,支持批量处理
• Web Interface — Use directly in browser, perfect for quick testing and daily work
• API Integration — Integrate with your systems via REST API, supports batch processing