Call a model from your application
Wire a published model, agent or prompt into a Bank system through its API, with the right identity, cost centre and scopes.
For: Consumer, Builder / Publisher, MLOps Engineer · 1 min read
Every asset has its own API
Each published model, agent and prompt has its own endpoint with its own request and response schema, limits and chargeback rate. The developer portal lists them all. The alliance_ai SDK is one Python client for all of them; you can also call REST directly.
Steps
- 1Find the asset in the developer portal. Tick Callable by me to see what you can call today.
- 2If it is locked, request access on the asset page first.
- 3In API keys, create a service account for your application and cost centre, and add the asset's scope.
- 4Store the secret in Secret Manager for the application. Never put it in code.
- 5Copy the cURL, SDK or REST snippet from the asset's reference and send your first request from the build environment.
- 6Log the request_id from each response with your own transaction, so a call can be traced end to end.
- 7Before go-live, agree the expected volume with MLOps if you need a dedicated endpoint.
Developer portal Service accounts Getting started for developers
Rules that apply to every call
- Every call carries a cost centre and is charged back to it.
- Every call is written to the audit trail with the application, asset and entitlement checked.
- Credit decision outputs must be stored with their reason codes. Financial crime scores must never reach the customer.
- Production calls are served in Google Cloud Malaysia.
Read next
Was this helpful?