Skip to main content

Expose to apps

The Expose to apps tab lists the runtime operations your apps can call once Archie AI is active. The Expose to apps tab listing the aiChat, aiEmbed, and aiModels operations with their type, transport, and access.

Call it from your app

Below the list, Call it from your app shows an example POST /ai/v1/chat request through the gateway. Click Copy, then replace YOUR_TOKEN with a user token or an API key token. See API keys.

Gateway rules

The tab also lists the gateway rules:
  • Streaming responses use Server-Sent Events (SSE).
  • Timeout headers are set to 600 seconds.
  • Rate limit: 60 requests per minute per user.
  • Everything under /_internal is denied.

Playground

The Playground tab sends a prompt to a model so you can try it before building against it. The Playground tab with a system prompt section, an empty conversation area, a Message box, and a Send button.
The playground sends a real request to the model. It consumes AI credits from this environment.
  1. Pick a Model, or keep Console default to use your default model. The model list appears once you enable a provider.
  2. Optionally expand System prompt (optional) and add instructions.
  3. Type your prompt in Message and click Send, or press ⌘ + Enter.
The conversation area shows your message and the model’s response. Under a response, the playground shows the model that answered and its usage, such as credits and input and output tokens.

FAQ

aiChat and aiEmbed require a signed-in user. aiModels is available to all roles.