01
Get an API Key
Create an account, open the API Keys page, and generate a secure SarangAI key.
Get StartedConnect to 200+ AI models through one OpenAI-compatible API in three simple steps.
Create an account, open the API Keys page, and generate a secure SarangAI key.
Get StartedPoint your OpenAI-compatible SDK or HTTP client to the SarangAI Gateway endpoint.
https://sarangai.id/api/gateway/v1Choose a model, send a message, and receive a standard chat completion response.
curl -X POST https://sarangai.id/api/gateway/v1/chat/completions \
-H "Authorization: Bearer sk-sarang-xxx" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"Hello SarangAI!"}]}'npm install -g sarangai-cli
sarang login
sarang run "Hello SarangAI!"Use the official SarangAI CLI for terminal-based model access. View the source and setup guide on GitHub.
Review authentication, model IDs, streaming, errors, and billing in the documentation.
Read API Docs