5 minutes to integrate. OpenAI compatible, zero migration cost.
Three simple steps to integrate Asiatek AI into your application.
Sign up for free and get your API key instantly. No credit card required.
Get API Key →Use the standard OpenAI SDK - just install with pip or npm.
pip install openai
Your existing OpenAI code works with Asiatek AI. Just change the endpoint.
# 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)
Full compatibility with OpenAI API format. Zero migration effort.
Generate conversational AI responses. Supports multi-turn对话, system prompts, and function calling.
Generate text completions using legacy completions API format for backward compatibility.
Generate vector embeddings for text, useful for semantic search and similarity matching.
| 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 |
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 | 图像理解 |
Everything you need for building robust AI applications.
Enable real-time streaming for faster perceived response times and better user experience.
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="")
Enable AI models to call functions and use tools for more powerful applications.
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)
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 |
Any OpenAI-compatible SDK works with Asiatek AI.
Official OpenAI Python library. Install with pip and change the base URL.
Official OpenAI JavaScript/TypeScript library. Works with Node.js and browsers.
Any SDK supporting OpenAI API format works. Go, Java, Ruby, and more.
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 |
Quick answers to common questions.