Integration Tutorials

All software below is compatible with OpenAI API format. Just change Base URL and API Key to connect.

ChatGPT Next Web

Open source ChatGPT web client

Environment Variables

OPENAI_API_KEY=sk-relay-your-key OPENAI_API_BASE_URL=https://www.ciyuano.com/v1

Set these environment variables when deploying. Select model deepseek-v4-flash or mimo-v2.5-pro in chat settings.

LobeChat

Open source AI chat application framework

Settings Path

Settings β†’ Language Model β†’ OpenAI β†’ Custom

Configuration

API Proxy: https://www.ciyuano.com/v1 API Key: sk-relay-your-key

Cursor

AI code editor

Settings Path

Settings β†’ Models β†’ OpenAI API Key

Steps

  1. Enter API Key: sk-relay-your-key
  2. Click "Override OpenAI Base URL"
  3. Enter: https://www.ciyuano.com/v1
  4. Add models to the model list

Python

Using OpenAI Python SDK

pip install openai from openai import OpenAI client = OpenAI( base_url="https://www.ciyuano.com/v1", api_key="sk-relay-your-key" ) response = client.chat.completions.create( model="deepseek-v4-flash", messages=[{"role": "user", "content": "Hello"}] ) print(response.choices[0].message.content)

Node.js

Using OpenAI Node SDK

npm install openai import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://www.ciyuano.com/v1", apiKey: "sk-relay-your-key" }); const res = await client.chat.completions.create({ model: "deepseek-v4-flash", messages: [{ role: "user", content: "Hello" }] }); console.log(res.choices[0].message.content);

cURL

Command line direct call

curl https://www.ciyuano.com/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-relay-your-key" \ -d '{ "model": "deepseek-v4-flash", "messages": [{"role":"user","content":"Hello"}] }'

Universal Configuration Rule

Any software compatible with OpenAI API can connect to Ciyuano. Just two steps:

1

Change Base URL to https://www.ciyuano.com/v1

2

Change API Key to Ciyuano Key (format sk-relay-***)