Skip to documentation content
Alyachan API
API Documentation
v3.0.0 REST API

API Documentation

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

Account Setup

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

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

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

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).

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.

Standard Responses

CodeMeaningDescription
200OKRequest successfully processed.
400Bad RequestInput parameters are incorrect or missing.
401UnauthorizedInvalid API Key or not provided.
429Rate LimitDaily request limit exceeded.
Main server
https://api.alyachan.dev
Reserve serverhttps://api-v2.alyachan.dev
AuthenticationBearer
Authorization: Bearer sk_prod_xxxxxxxx
IP WhitelistingSubscribe Plan
Client Libraries
POST/api/ai/text2img
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)
  }
}

main()