Docs

Built-in AI: box.ai

Invite-only apps can ask an AI model a question on Makeship's own key, with no Connection or key of yours:

const { text } = await box.ai("Suggest three names for our book club");
const { data } = await box.ai({
  prompt: "Split this bill: " + bill,
  system: "You are a careful accountant.",
  schema: { type: "object", properties: { shares: { type: "array" } } },  // optional: answer parsed as data
});

It works only in invite-only apps, so only you and the people you invited can use it. Makeship picks the model and caps the length of each answer and the number of calls: a few an hour per visitor, and a monthly allowance shared by all your apps that's bigger on paid plans. When a limit is reached, or the app isn't invite-only, box.ai throws an error with a code (ai_visitor_limit, ai_monthly_limit, ai_invite_only) and a message you can show. Outside Makeship it throws not_on_boxfort. For another model or provider, use a Connection with your own key.