Skip to content
smol.Docs

    Open console

    Connect your backend

    Use an application credential from a server process and verify a single inference request.

    You need: the saved client secret, a connected endpoint with request access enabled, and a server process that can reach the authentication and inference addresses. Browser and mobile frontends should call your backend; they should not hold the client secret.

    1. In Applications → your application → Backend integration, select the granted endpoint when prompted. Use the environment-specific addresses and identifiers displayed by the console.
    2. Store the Application’s Client ID and secret in your server environment. Follow Get an access token to exchange the client credentials for a short-lived bearer token. The workload token, not the client secret or a human console session, authenticates inference.
    3. Use the generated endpoint example. Choose a small synthetic prompt first. If testing explicit context, select Use shared context space, the proper space and the exact content version. Otherwise leave it off; endpoint automatic context may still apply.
    4. Send the example from your backend. Keep one Idempotency-Key with one logical request, and capture the returned request ID when available. A model invocation can incur charges.
    5. In Inference → your endpoint → Activity, match the request ID and inspect the outcome. For a context test, check a specific expected fact, not just that a response arrived.

    For a new, intentional request use a new key. If the previous result is ambiguous, check its outcome before deciding what to do; changing the key or sending the prompt again may produce a second billable generation. Renew an expired token through the original client-credentials exchange rather than replacing the Application.

    See Authentication for credentials and Your first request for a complete example.