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 ❤️🇮🇩
Metadata
Release files for aksesai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aksesai-0.1.0.tar.gz | 4.6 kB | Without provenance | Details for aksesai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aksesai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aksesai-0.1.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / aksesai-0.1.0.tar.gz
| Download URL | aksesai-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a33aa6e2d40ebba59b897505695ad353014634e082d43b2b67615586ac44082d
|
|
BLAKE2b-256 checksum How to use checksums |
c9cef3ceb78eb677b3845c19709a416d7e349ccc3447cbca23ba8068983c24ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / aksesai-0.1.0-py3-none-any.whl
| Download URL | aksesai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd2b5e35d181265cbc96862a26a675a773b439d5486a0c9a667588126231aa9e
|
|
BLAKE2b-256 checksum How to use checksums |
2d80de6a8b17dc36824d2527702e2176537374747fca14c18e3b31ec832bcd67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for aksesai 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.