# Xenqo API

### 平台介绍

国内稳定 AI API 平台

支持：

* GPT-4o
* GPT-4.1-mini
* Claude 3.7 Sonnet
* Gemini 2.5 Pro
* Gemini 2.5 Flash
* DeepSeek Chat
* DeepSeek Reasoner

特点：

* 无需翻墙
* 中国大陆直连
* 支持 OpenAI SDK
* 支持微信支付宝
* 低延迟稳定

***

## 快速开始

### 1. 注册账号

<https://api.xenqo.io>

### 2. 获取 API Key

进入控制台创建 API Key

### 3. 调用接口

Base URL：\
兼容 OpenAI API 格式，\
支持 OpenAI SDK 直接调用。

```bash
https://api.xenqo.io/v1
```

### Python 示例

```
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.xenqo.io/v1"
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {
            "role": "user",
            "content": "你好"
        }
    ]
)

print(response.choices[0].message.content)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xenqo.gitbook.io/product-docs/xenqo-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
