Prerequisites
- ManyLayers installed and running (see Installation)
- An OpenAI API key
- Your ManyLayers admin API key
Steps
Add the provider credentials
Register your OpenAI API key with ManyLayers. Your key is stored encrypted and never exposed in logs or responses.
Create a logical model
A logical model is the name your clients use to make requests. It maps to a specific provider and model. Your applications call
gpt-4o — ManyLayers routes it to the right upstream.Create a team and allow the model
Teams control which models each group of users can access. Create a team and add
gpt-4o to its allow-list.Create an API key for the team
Generate a key scoped to your team. This is what your applications will use to authenticate.Save the returned key — it starts with
ml- and cannot be retrieved again.What’s happening under the hood
Your request flows through auth, RBAC (checking your team’s model allow-list), rate limits, and then routes to OpenAI. The response is logged to the audit trail with token counts. You can see this in Metrics and Audit logs immediately.Next steps
- Add guardrails to your team for content safety
- Configure routing strategies for failover across providers
- Set up a knowledge base for RAG applications