v3.0.0

API Documentation

Complete guide to integrating Alyachan API services. Access AI endpoints, media downloaders, and data utilities with secure and scalable RESTful standards.

01 — Getting Started

Account Setup

Access to API endpoints requires a verified account. We provide flexible registration options (Email, Google, Discord) to speed up your integration process.

Register UI

API Keys Management

After logging in, navigate to the Account Dashboard on the "API KEY" tab. This key is your application's secret credential.

◦ To retrieve your API Key, please press the "Copy" button

API Key Dashboard

◦ To change your API Key, please press the "Generate Key" button followed by the "Update Key" button

API Key Dashboard

IP Whitelisting Subscribe Plan

Security feature to restrict API Key access only from registered server IP addresses. You must set up IP before using your API Key

  • Static IP: Register production server IP manually.
  • Allowed All: Check this option if the server uses Dynamic IP (Not recommended for production).
IP Whitelist

02 — Integration

Library Installation

Official SDK
npm install @alyachan/api
Generic HTTP
npm install axios

Usage Examples

To get / search for endpoints, please visit the API Reference

Main server : https://api.alyachan.dev

Reserve server :

  • https://api-v2.alyachan.dev
index.js (SDK)Recommended
const AlyaApi = require('@alyachan/api').default
const Api = AlyaApi('https://api.alyachan.dev/api', 'sk_prod_xxxxxxxx')

async function main() {
  try {
    const res = await Api.post('/ai/text2img', {
      'prompt': 'Cyberpunk city',
      'models': 'Japanese'
    })
    console.log(res)
  } catch (e) {
    console.error(e)
  }
}
request.js (Axios) POST
const axios = require('axios')

const config = {
  'method': 'POST',
  'url': 'https://api.alyachan.dev/api/ai/text2img',
  'headers': {
    'Authorization': 'Bearer sk_prod_xxxxxxxx',
    'Content-Type': 'application/json'
  },
  'data': { 'prompt': 'Cyberpunk city', 'models': 'Japanese' }
}

axios(config)
  .then(r => console.log(r.data))
  .catch(e => console.error(e))

Standard Responses

CodeMeaningDescription
200OKRequest successfully processed.
400Bad RequestInput parameters are incorrect or missing.
401UnauthorizedInvalid API Key or not provided.
429Rate LimitDaily request limit exceeded.

© 2026 Alyachan API. All rights reserved.