API Documentation

Ciyuano is fully compatible with OpenAI Chat Completions API. Just change base_url and api_key to integrate seamlessly.

Quick Start

Three steps to get started with AI LLM API.

1

Register & Get API Key

Create an API Key in the dashboard after registration. Format: sk-relay-***

2

Install SDK

Use the official OpenAI SDK, supporting Python, Node.js, and more.

3

Call API

Change base_url to Ciyuano endpoint, then call just like OpenAI.

Python
# 1. Install SDK
pip install openai

# 2. Create client
from openai import OpenAI
client = OpenAI(
    base_url="https://www.ciyuano.com/v1",
    api_key="sk-relay-your-key"
)

# 3. Call API
response = client.chat.completions.create(
    model="deepseek-v4-flash",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
API Documentation - Ciyuano | Ciyuano