Add AI to your app with the Hercules AI Gateway

The Hercules AI Gateway lets the apps you build use AI for features such as a support chatbot, summaries and speech. It's built into every app, so you don't set up API keys before you start. Ask Hercules for the feature and it uses the gateway by default.

What can you add to your app with the AI Gateway?

Give customers a chatbot

Ask Hercules for a support chatbot that opens from a widget in the page corner. Replies can stream in as the model writes them.

AI Gateway
A customer support chatbot widget built on the AI Gateway
Staff assistant panel answering a request to summarize the open HVAC requests

Write and summarize text

Your app can draft product descriptions, condense a long document or pull the details from a message. Besides text, it reads images and PDFs.

AI Gateway
AI triage card beside the technician the request was routed to

Sort, route and score records

AI Decisions with Jev answers yes or no, choice and rating questions with a confidence for each. Your app can send a ticket to billing on its own and pass unclear cases to a person.

AI decisions

Generate images and speech

Turn a text prompt into an image, or read an article aloud in a choice of voices. Your app can also transcribe an uploaded audio or video file.

AI Gateway

Pick the model for the job

Hercules starts with a fast, low-cost default model, and you can name another in chat. Any current model from the four supported providers works in Chat Completions, the default format for sending requests, while the other two formats accept fewer.

AI Gateway
Cloud Usage table listing AI Gateway as a line item next to function calls, compute and storage

Pay for what your users run

Hercules bills gateway usage through Hercules Cloud, separate from the AI credits you spend building the app. Totals show under Settings, then Billing, then Hercules Cloud.

Hercules Cloud

How do you add AI to your app?

  1. 1. Describe the feature

    Read each new quote request email, extract the pickup city, delivery city and weight, and mark the ones worth quoting.

    Hercules builds it on the gateway with the default model.

  2. 2. Choose a model, or keep the default

    Use Anthropic for this.

    Hercules switches the feature to that provider.

  3. 3. Add a fallback, then publish

    If an AI request fails, mark the email for manual review.

    Hercules adds the fallback, and you publish the app.

What has a business done with it?

Petony Transportes uses the Hercules AI Gateway in their ERP to read incoming quote request emails. The AI flags the ones worth pursuing and extracts the details the team needs. Petony runs road freight across Brazil with 45 employees and 70 drivers. They used to get hundreds of quote requests a day, many of them junk.

Read the Petony Transportes story

“Before, we had to go to other sites to check pricing. Today those pricing sites are inside the system. I set the margin and send the quote. Our revenue has gone up ~20%.”
Pedro Amaral, Founder, Petony Transportes

Related features

Frequently asked questions

What should you know before you start?
  • When your Hercules Cloud balance runs out, AI requests fail until you add credits.
  • The gateway serves models from OpenAI, Anthropic and Google AI Studio. Cloudflare Workers AI is the only other provider.
  • In the default format, only OpenAI models take a whole PDF, so send other models the pages as images or text.
  • Realtime voice input and video output aren't available.
  • A chat or text request can be up to 8 MB. Audio transcription and image edit uploads can be up to 50 MB.
  • The gateway has a rate limit, which support can raise.
  • See what each plan includes on the pricing page.
Can I pay a model provider directly?

To pay a provider yourself, ask Hercules to remove the AI Gateway, then set up your own API key and model. AI Gateway

How do I send a large PDF?

Split a large PDF into batches of pages, since one request carries roughly 6 MB of file once encoded. AI Gateway

When should I use Jev instead of a chat model?

Use Jev when your app acts on the answer, such as a category. Use a chat model when a person reads the output. AI decisions

Can I see what each AI request costs?

Hercules can show what each AI request cost below the answer, exact for most models in the Responses and Messages formats and estimated in Chat Completions. AI Gateway

How do you get started?

Try one feature, such as ticket sorting, on a few real examples before you publish. Start building.