This is about AI inside the app you build. It doesn’t change the AI that builds your app. Newly chooses the model behind Newly Agent.
Add an AI feature
1
Describe the feature
Say what it should do. For example: “Add a button that turns the user’s photo into a watercolor painting” or “Let users ask questions about their saved notes.” The agent picks a suitable model for you.
2
Pick the model yourself (optional)
In Newly for Mac, click + in the prompt box, then AI models, to filter by Text, Images, Audio or Video and add a specific model to your message before describing the feature. Models marked “Unavailable” can’t be picked right now. The list can change over time.
How it works
- Newly Backend with sign-in is required. Your app calls AI models through its own Newly Backend, on behalf of a signed-in user. See Sign-in for your app.
- No keys in your app. The access your backend uses to reach AI models is added when the backend is deployed. It never goes into the app itself.
- Each environment is separate. Models are turned on separately for dev and production.
Credits
Every AI request your app makes uses your organization’s credits, in dev and in production. That includes requests from your app’s users, not only your own testing. It’s the same credit balance you use for the agent. There’s no separate AI wallet.- Before a request runs, Newly sets aside the most it can cost. You’re never charged more than that amount, and you’re charged for what the request actually used.
- Failed requests don’t use credits.
- Requests cancelled before they start don’t use credits. Once a request has started, it can’t be cancelled.
Limits
These limits apply to each project environment, with dev and production counted separately:
If your app needs to keep a generated image, audio clip or video longer than 7 days, ask the agent to save a copy in your app’s storage.
Messages your app may receive
Ask the agent to show a friendly message in your app for each of these.Turn on AI models for production
The agent can only turn models on for dev. For your released app, turn them on for production yourself with the newly CLI. You need to be the project’s owner or a project Admin. Otherwise you’ll see “An owner or admin must manage backend AI access.”1
Set up the newly CLI
Install the tool, sign in and pull your project. Follow the steps in Production and secrets.
2
Find the model ids
From your project folder, run:
3
Turn the models on
List every model your app uses in dev, separated by commas. The command replaces the production list, so include all of them each time:
4
Deploy the backend to production
In Settings then Project, select Deploy backend to prod. Or from the CLI:The deploy connects your production backend to the models.
Related
How credits work
What uses credits and what doesn’t.
Production and secrets
Deploy your backend to production.