GenAI applications¶
A GenAI application represents a real AI application inside AI Workspace, with the API keys it uses attached to it. This gives you application-level visibility and control instead of tracking usage only at the individual key level.
Without GenAI applications, usage is tied only to the API keys generated for large language model (LLM) providers or App LLM proxies. AI Workspace then tracks three metrics—models, tokens, and cost—against each key rather than against an application. That makes attribution hard when several developers generate keys for the same project.
With a GenAI application, you can:
- Group API keys under a named application
- View usage and analytics at the application level
- Improve governance and accountability for shared GenAI workloads
When to use GenAI applications¶
Use a GenAI application when:
- Multiple developers work on the same AI application
- The application uses more than one API key
- You want analytics grouped by application rather than by key alone
- Platform teams need clearer visibility into which applications drive usage
Examples include customer support copilots, internal knowledge assistants, document analysis apps, or workflow-specific AI agents.
How it works¶
The typical flow is:
- Generate one or more API keys for an LLM provider or App LLM proxy.
- Create a GenAI application in the AI Workspace.
- Attach the generated API keys to that application.
- Invoke the gateway using those mapped keys.
- View analytics and usage for that application in Insights.
The same application can have multiple API keys mapped to it. This is useful when different developers, environments, or services within the same project need separate keys while still rolling up usage to one application.
Prerequisites¶
- At least one configured LLM provider or App LLM proxy
- At least one generated API key
- Access to the AI Workspace project that holds the GenAI application
Create a GenAI application¶
- Navigate to AI Workspace in your API Platform dashboard.
- Open GenAI Applications from the left navigation menu.
- Click + Create Application.
-
Provide the application details:
- Name: A human-readable name for the application
- Description: Optional details to identify the app's purpose
-
Click Create.
The application is created within the current project and becomes the shared representation of that GenAI workload.
Attach API keys to an application¶
After creating the application, attach the API keys that the application already uses.
- Open the GenAI application.
- Go to the API Keys section.
- Click Attach API Keys.
- Select one or more API keys generated for your LLM providers or App LLM proxies.
- Save the mapping.
Only existing keys are mapped. This workflow doesn't create new keys. It links previously generated keys to the application so usage can be attributed correctly.
View and manage attached keys¶
The GenAI application details page shows the keys mapped to the application.
For each mapped key, you can view details such as:
- The associated provider or proxy
- The key status
- The user who created the key
- The creation and update timestamps
- The expiry details, when applicable
You can remove mappings for keys that should no longer be associated with the application.
Removing a mapping only detaches the key from that GenAI application. It doesn't delete the underlying key unless you remove it from the provider or proxy separately.
Insights for GenAI applications¶
Once a mapped key is used to invoke the gateway, the gateway can identify the owning GenAI application and publish analytics accordingly.
This lets you analyze usage by application, including:
- Request volume
- Token consumption
- Latency trends
- Error patterns
- Cost and resource usage by application
This is especially useful for teams that need to understand which GenAI applications are driving traffic and spend.
See Insights for more on the analytics experience.
Best practices¶
- Create one GenAI application per real application or agent workload, not per developer.
- Map all keys used by the same application so analytics stay complete.
- Use clear names such as
Docs Assistant,Support Copilot, orInvoice Analyzer. - Review mappings periodically and remove keys that are no longer in use.
- Combine GenAI applications with App LLM proxies when an application also needs its own authentication, guardrails, or routing behavior.
Related¶
- App LLM proxies overview: create application-specific endpoints and controls
- Insights: analyze usage by application
- Invoke providers and proxies via SDKs: use mapped keys when calling providers and proxies