Embed an OpenAI integration in your product
Add OpenAI to your product for your customers, and give your AI agents governed access to it.
Embed an OpenAI integration so each of your customers can bring their own OpenAI account instead of drawing down a single key you own and pay for. The connector covers the calls a product actually makes: model listing, chat completions, embeddings, image generation and file upload for the features that need it. Each customer supplies their own API key and organization, so usage bills to them, their rate limits apply to them alone, and one customer's traffic cannot exhaust another's allowance. Keys are stored encrypted per customer and every call is logged, which is what makes an in-product AI feature reviewable after the fact. fastn owns the credential handling, retries and rate limits, and monitors the integration, proposing a fix for your review when OpenAI changes its API, and the same governed connection is what your AI agents use.
In your product
Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.
- Let customers connect their own OpenAI account so the AI features in your product run on their key, their models and their spend.
- Generate embeddings for a customer's own content so search and similarity features work per customer without a shared index.
- List the models a customer's account can actually reach so your product offers the right options rather than a hard-coded list.
- Keep per-customer keys, organizations and usage isolated so one customer's traffic never draws down another's rate limit.
For your AI agents
Governed, audited access for the agents you build, through the MCP server.
- An agent calls a completion on the customer's own OpenAI account within the limits you set, with every call logged.
- An agent creates embeddings for newly added content so later questions are answered from that customer's own material.
- An agent reports how much a customer's connected OpenAI account has been used by your product over a period.
Example prompt
Summarize these support threads using our own OpenAI account and tell me how many tokens it took.
Set up OpenAI in 4 steps
- 01Enable the OpenAI connector in your fastn dashboard.
- 02Have each customer supply their own OpenAI API key so calls run under their account and allowance.
- 03Configure the models, prompts and request options your product uses, per customer.
- 04Call it from your product and expose the same connection to your agents through the MCP gateway.
Why teams use the OpenAI integration
- Ship an OpenAI integration without building it. Your customers connect their own OpenAI account inside your product and work their models, requests and outputs there, and nothing lands on your team.
- Handle the part that actually costs time: per-customer keys, quotas and cost attribution matter more than schema here, because every call is billed. fastn handles the auth, token refresh, rate limits and pagination, and when OpenAI changes, its maintainer agent proposes a tested fix, so an OpenAI update does not start in your backlog.
Used by these teams
Often used alongside
Tools the same teams tend to run next to OpenAI, across other categories.
More in AI & Models
Other AI & Models apps your customers can connect the same way. All AI & Models integrations
OpenAI integration FAQ
Can AI agents use this OpenAI integration?
Yes, through the fastn MCP gateway, scoped per customer and audited. An agent calls a completion on the customer's own OpenAI account within the limits you set, with every call logged. For example: "Summarize these support threads using our own OpenAI account and tell me how many tokens it took."
Whose OpenAI API key and quota does each call use?
Each customer authorises their own OpenAI account, so usage, rate limits and cost land on the customer that caused them. You are not metering a shared key and re-billing it, and one heavy customer cannot exhaust another's quota.
Are inputs and outputs auditable?
Yes. Every call is logged per tenant with the call, the input and the result, so an output can be traced back to what produced it. That matters more here than in most integrations, because a generated answer or an extracted field cannot be reconstructed from the request alone.
What can I build with the OpenAI integration?
A common starting point: connect their own OpenAI account so the AI features in your product run on their key, their models and their spend. The use cases above list the rest.
Add OpenAI to your product
Start free with 3 customer connections. No sales call required, and no per-customer integration code.