Technical Documentation

API Reference

Complete guide to integrating Aichixia's AI models. Chat, images, voice, and more — all through one unified API.

OpenAI Compatible
Anthropic Compatible
Image Generation
Text-to-Speech

Getting Started

Get your API key and start building in under 60 seconds. Supports both OpenAI and Anthropic SDK.

1. Get API Key

Sign up and generate your free API key from the console

2. Make Request

Use OpenAI SDK, Anthropic SDK, or plain HTTP client

3. Ship Fast

Deploy your AI features with confidence and scale

OpenAI SDK

npm install openai

Anthropic SDK

npm install @anthropic-ai/sdk

Endpoints

Chat Completions (OpenAI)https://www.aichixia.xyz/api/v1/chat/completions
Messages (Anthropic)https://www.aichixia.xyz/api/v1/messages
Image Generationhttps://www.aichixia.xyz/api/v1/images/generations
Text-to-Speechhttps://www.aichixia.xyz/api/v1/audio/speech

Built-in Tool Calling

Several models have native tool calling and web search built-in — you do not need to define or pass a tools array. Just send your prompt and the model handles it automatically. Models with built-in tools: gemini-3-flash, deepseek-v3.1, groq-compound, kimi-k2, cohere-command-a and more.

TypeScript (OpenAI SDK)
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "YOUR_API_KEY",
  baseURL: "https://www.aichixia.xyz/api/v1",
});

const response = await client.chat.completions.create({
  model: "claude-opus-4.5",
  messages: [
    { role: "user", content: "Explain quantum computing" }
  ],
  temperature: 0.7,
  max_tokens: 1000,
});

console.log(response.choices[0].message.content);
TypeScript (Anthropic SDK)
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: "YOUR_API_KEY",
  baseURL: "https://www.aichixia.xyz/api/v1",
});

const message = await client.messages.create({
  model: "claude-opus-4.5",
  max_tokens: 1024,
  messages: [
    { role: "user", content: "Explain quantum computing" }
  ],
});

console.log(message.content[0].text);