Python SDK untuk AksesAI — AI API Gateway Indonesia. 35+ model AI, bayar QRIS, tanpa kartu kredit.
Project description
AksesAI Python SDK
Satu baris, langsung akses 35+ model AI.
GPT, Claude, Gemini, DeepSeek — semua dalam Rupiah, tanpa kartu kredit.
Install
pip install aksesai
Quick Start
from aksesai import AksesAI
# Dapetin API key: https://aksesai.id/dashboard
ai = AksesAI("sk-xxxx")
# Chat biasa
print(ai.chat("Jelaskan AI dalam satu kalimat"))
# Pilih model
print(ai.chat("Buat puisi tentang Indonesia", model="claude-sonnet-4-6"))
# Streaming (kata per kata)
for chunk in ai.chat_stream("Ceritakan sejarah Jakarta"):
print(chunk, end="")
# System prompt
print(ai.chat(
"Siapa kamu?",
model="deepseek-v4-pro",
system="Kamu adalah asisten AI yang ramah dan helpful."
))
Model Tersedia
# Lihat semua model
print(ai.model_names())
# ['gpt-4o', 'gpt-4o-mini', 'claude-sonnet-4-6', 'gemini-2.5-pro', ...]
# Cek model tertentu
models = ai.list_models()
for m in models:
print(m.id, m.owned_by)
Async
import asyncio
from aksesai import AksesAI
async def main():
ai = AksesAI("sk-xxxx")
response = await ai.chat_async("Halo dari async!")
print(response)
asyncio.run(main())
Embeddings
vector = ai.embed("AksesAI adalah platform AI Indonesia")
print(len(vector)) # 1536
Test Koneksi
ai = AksesAI("sk-xxxx")
if ai.test():
print("🚀 Koneksi berhasil!")
else:
print("❌ Gagal — cek API key di https://aksesai.id/dashboard")
Environment Variable
export AKSESAI_API_KEY="sk-xxxx"
ai = AksesAI() # Auto baca dari env
🔗 Links
Dibuat di Indonesia ❤️🇮🇩
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aksesai-0.1.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aksesai-0.1.0.tar.gz.
File metadata
- Download URL: aksesai-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a33aa6e2d40ebba59b897505695ad353014634e082d43b2b67615586ac44082d
|
|
| MD5 |
fa1a2cac44dc11172bfc8a839391eea8
|
|
| BLAKE2b-256 |
c9cef3ceb78eb677b3845c19709a416d7e349ccc3447cbca23ba8068983c24ce
|
File details
Details for the file aksesai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aksesai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd2b5e35d181265cbc96862a26a675a773b439d5486a0c9a667588126231aa9e
|
|
| MD5 |
8933ca1096a6fbd1222fb5bec5dcccda
|
|
| BLAKE2b-256 |
2d80de6a8b17dc36824d2527702e2176537374747fca14c18e3b31ec832bcd67
|