1. 获取 API Key
- 注册 https://portix.ai/dashboard/overview
- 充值余额
- 创建 API Key
2. 发起第一个请求
- OpenAI
- Anthropic
- Gemini
3. 探索更多
OpenAI 通用
GPT 系列、Grok 系列、GLM 系列、DeepSeek 系列
Anthropic
Opus 系列、Sonnet 系列、Haiku 系列
Gemini
Gemini 3 系列、2.5 系列、2.0 系列
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl https://portix.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "你好!"}]
}'
curl https://portix.ai/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "claude-sonnet-4-5-latest",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "你好!"}]
}'
curl "https://portix.ai/v1beta/models/gemini-3-flash-preview:generateContent" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $PIPELLM_API_KEY" \
-d '{
"contents": [
{
"role": "user",
"parts": [{"text": "你好!"}]
}
]
}'