Getting Started with Asiatek AI

5 minutes to integrate. OpenAI compatible, zero migration cost.

Start Building in Minutes

Three simple steps to integrate Asiatek AI into your application.

1

Get Your API Key

Sign up for free and get your API key instantly. No credit card required.

Get API Key →
2

Install the SDK

Use the standard OpenAI SDK - just install with pip or npm.

pip install openai
3

Update Your Code

Replace the base_url and API key to start using Asiatek AI.

View Examples ↓

Drop-in Replacement

Your existing OpenAI code works with Asiatek AI. Just change the endpoint.

python
# OpenAI → Asiatek AI Migration (Python)

from openai import OpenAI

# Just change the API key and base URL
client = OpenAI(
    api_key="asiatek_sk_xxxxxxxxxxxx",  # Your Asiatek AI key
    base_url="https://api.asiatekai.com/v1"    # Asiatek AI endpoint
)

# Everything else stays the same!
response = client.chat.completions.create(
    model="qwen-turbo",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello! How are you?"}
    ],
    temperature=0.7,
    max_tokens=150
)

print(response.choices[0].message.content)

OpenAI Compatible API

Full compatibility with OpenAI API format. Zero migration effort.

POST /chat/completions

Chat Completions

Generate conversational AI responses. Supports multi-turn对话, system prompts, and function calling.

POST /completions

Text Completions

Generate text completions using legacy completions API format for backward compatibility.

POST /embeddings

Embeddings

Generate vector embeddings for text, useful for semantic search and similarity matching.

Request Parameters

Parameter Type Required Description
model string Yes Model ID (e.g., qwen-turbo, deepseek-chat)
messages array Yes Array of message objects with role and content
temperature float No Sampling temperature (0-2). Default: 0.7
max_tokens integer No Maximum tokens to generate. Default varies by model
stream boolean No Enable streaming responses. Default: false
tools array No Tools for function calling capability

Choose Your Model

Access to leading models from Qwen and DeepSeek with competitive pricing.

Model Type Context Input Output Best For
deepseek-chat Chat 128K $0.32/M $1.32/M 通用对话,长文本
deepseek-coder Code 128K $0.32/M $1.32/M 代码生成与理解
deepseek-reasoner Reasoning 128K $0.66/M $2.63/M 复杂推理任务
qwen-turbo Chat 1M $0.08/M $0.16/M 超低成本快速响应
qwen-plus Chat 128K $0.84/M $2.50/M 高质量多语言
qwen-max Chat 32K $5.56/M $16.66/M 旗舰级能力
qwen-coder-plus Code 128K $1.12/M $3.34/M 代码专家
qwen-coder-turbo Code 1M $0.16/M $0.48/M 低成本代码助手
qwen-long Long Context 10M $1.38/M $4.16/M 超长文档处理
qwen-math-plus Math 128K $0.84/M $2.50/M 数学推理
qwen-vl-plus Vision 128K $1.38/M $4.16/M 图像理解

Production-Ready Capabilities

Everything you need for building robust AI applications.

Streaming Responses

Enable real-time streaming for faster perceived response times and better user experience.

python
from openai import OpenAI

client = OpenAI(
    api_key="asiatek_sk_xxxxxxxxxxxx",
    base_url="https://api.asiatekai.com/v1"
)

# Stream responses in real-time
stream = client.chat.completions.create(
    model="qwen-turbo",
    messages=[{"role": "user", "content": "Write a haiku about code"}],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Function Calling / Tools

Enable AI models to call functions and use tools for more powerful applications.

python
from openai import OpenAI

client = OpenAI(
    api_key="asiatek_sk_xxxxxxxxxxxx",
    base_url="https://api.asiatekai.com/v1"
)

# Define tools/functions the model can call
tools = [
    {
        "type": "function",
        "function": {
            "name": "get_weather",
            "description": "Get weather for a location",
            "parameters": {
                "type": "object",
                "properties": {
                    "location": {"type": "string"}
                }
            }
        }
    }
]

response = client.chat.completions.create(
    model="qwen-plus",
    messages=[{"role": "user", "content": "What's the weather in Singapore?"}],
    tools=tools
)

print(response.choices[0].message.tool_calls)

Error Handling

Handle API errors gracefully with standard HTTP status codes.

Status Code Error Description
400 Bad Request Invalid request parameters or malformed JSON
401 Unauthorized Invalid or missing API key
403 Forbidden Rate limit exceeded or subscription required
429 Too Many Requests Rate limit exceeded. Check Retry-After header
500 Server Error Internal server error. Retry with exponential backoff

Use Your Favorite Tools

Any OpenAI-compatible SDK works with Asiatek AI.

🐍

Python SDK

Official OpenAI Python library. Install with pip and change the base URL.

pip install openai
📦

Node.js SDK

Official OpenAI JavaScript/TypeScript library. Works with Node.js and browsers.

npm install openai
🌐

Other Languages

Any SDK supporting OpenAI API format works. Go, Java, Ruby, and more.

curl, httpie, etc.

Usage Limits by Plan

Choose the plan that fits your needs.

Plan RPM Daily Limit
Free 10 $1/day
Pro ($29/mo) 60 $50/day
Enterprise ($99/mo) 200 Custom

Frequently Asked Questions

Quick answers to common questions.

Yes! Asiatek AI is fully compatible with the OpenAI API format. You only need to change the base_url from "https://api.openai.com/v1" to "https://api.asiatekai.com/v1" and update your API key. All existing code, SDKs, and integrations will work without modification.
We offer access to Qwen models (from Alibaba Cloud) and DeepSeek models. This includes chat models, code-specialized models, reasoning models, vision models, and long-context models. Prices start at just $0.08/M tokens for input, making us up to 98% cheaper than GPT-4o.
Our servers are located in Singapore, providing low latency for Southeast Asian users. We're PDPA compliant (Thailand, Singapore) and meet enterprise security standards including SOC 2 and ISO 27001 certifications.
We use token-based billing. You pay per million tokens processed. The Free tier includes $1 of free credits daily. Pro ($29/mo) and Enterprise ($99/mo) plans offer pay-per-use with higher rate limits. No hidden fees or subscriptions beyond the base plan.
Yes! We support all advanced features including streaming responses (Server-Sent Events), function calling/tools, and system prompts. These work exactly like the OpenAI API, so your existing code will work without changes.