Skip to content

yingsuan-ai/api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

YingSuan AI - API Examples

Quick start examples for the YingSuan AI LLM API platform.

Features

  • OpenAI-compatible API - Just change base_url, no code rewrite needed
  • No credit card required - Pay via Wise bank transfer
  • DeepSeek models - deepseek-chat and deepseek-reasoner
  • Targeted for Southeast Asia - Optimized for developers in VN/TH/ID/PH/MY/SG

Quick Start

Get Your API Key

Email yingsuan_service@163.com with your name, country, and desired plan.

Python

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-yingsuan-key",
    base_url="https://yingsuan.top/v1"
)

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

See examples/python/ for full examples.

Node.js

import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'sk-your-yingsuan-key',
  baseURL: 'https://yingsuan.top/v1',
});

const response = await client.chat.completions.create({
  model: 'deepseek-chat',
  messages: [{ role: 'user', content: 'Hello!' }],
});

See examples/nodejs/ for full examples.

cURL

curl https://yingsuan.top/v1/chat/completions   -H "Authorization: Bearer sk-your-yingsuan-key"   -H "Content-Type: application/json"   -d '{"model":"deepseek-chat","messages":[{"role":"user","content":"Hello!"}]}'

API Reference

Endpoint Method Description
/v1/chat/completions POST Chat completions
/v1/models GET List models
/v1/usage GET Check usage

Full docs: yingsuan.top/api.html

Pricing

Plan RPM Minimum
Starter 10 $50
Standard 30 $200
Professional 60 $500
Enterprise Unlimited Custom

License

MIT


yingsuan.top - GPU & LLM API for Southeast Asia

About

YingSuan AI API Examples - Python, Node.js, cURL quickstart for DeepSeek/OpenAI-compatible LLM API

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors