Chat widget code and cost control: models, response caps and daily limits
A public chat widget should never produce a surprise bill. These are the controls that cap what your chat widget code can spend, and how to combine them.
Read the guideWe use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Widgets
Give your visitors chat, image, voice or music generation under your own brand. Pick a model, style it, paste one line of code.
No account needed. Pick a type and a model, style it and try it right here.
Demo: results are simulated. Add an API key or sign in to see real output.
Type a message in the preview to try it.
Your widget is ready
Create a free account to connect the model, add your sites and get the embed code. Your design is saved.
Save and get the codeVerify your email and get $1.00 of gift credit. No credit card needed.
Paste your API key to see real results with the selected model. It stays in this tab and is only sent to our own API.
No API key yet? Sign in or create a free account to get one in a minute.
Embed code
<script src="https://api14.com/widget.js" data-widget="your-widget-id" async></script>Paste it inside <body>. Your widget id is filled in when you save the widget in your dashboard.
A support or sales assistant that streams answers and follows your private instructions.
Guides: ChatVisitors describe a picture and get it generated on your page.
Guides: ImageTurn any text into natural speech with the voice you choose.
Guides: SpeechShort music clips from a text prompt, played right in the widget.
Guides: MusicShort video clips from a text prompt, generated and played right in the widget.
Guides: VideoThe widget renders in an isolated Shadow DOM, so your page styles stay untouched.
<script src="https://api14.com/widget.js" data-widget="your-widget-id" async></script>No logo, no “powered by”. Texts, colors and theme are yours.
Requests are accepted only from the domains you list in your settings.
Switch models any time without touching your site.
Visitor requests are charged to your USD balance at the model’s price, with rate limits per visitor.
White-label AI widgets for your website
Create a widgetStep by step guides for every widget type: embedding, prompts, models and spend limits.
A public chat widget should never produce a surprise bill. These are the controls that cap what your chat widget code can spend, and how to combine them.
Read the guideThe same widget code can run any image model in the catalog. Here is how to compare models for an image widget and switch between them without touching your site.
Read the guideMusic generation costs more per request than a chat message. Here is how to choose a model, guide visitor prompts and set limits so your music widget stays within budget.
Read the guideSome visitors prefer to listen rather than read. A speech widget gives them an audio option with one line of code. Here is how to set it up thoughtfully.
Read the guideVideo is the most expensive widget type to run. These are the settings that keep a public video widget affordable, and how to pick the right limits for a store or a campaign page.
Read the guideThe embed code is the same for every chat widget. What makes yours useful is the private instruction behind it. Here is how to write one that keeps answers accurate and on brand.
Read the guide