AI APIs

The AI APIs let you call multiple AI providers, such as OpenAI, Anthropic, and Runware, from site or app code. Wix handles provider authentication and billing. You choose a provider and model, send a prompt, and get a result, without holding your own provider credentials or setting up billing.

Developer Preview: The AI APIs are in developer preview and subject to change.

You can call the AI APIs 2 ways:

  • REST: Call the providers through the REST API.
  • SDK: Use the @wix/ai package, built on the Vercel AI SDK, so you work with a familiar interface and swap models with a one-line change.

Each call draws on your Wix AI credits.

What you can build

The AI APIs cover 3 kinds of model tasks:

  • Text generation: Generate or stream natural-language text from a prompt, like writing a product description or summarizing customer reviews.
  • Image generation: Create images from text prompts, like generating a hero image for a marketing campaign.
  • Embeddings: Turn text into vectors for semantic comparison and search, like powering a "find similar products" feature on a store.

Providers, models, and billing

Wix brokers access to multiple providers, each suited to different tasks:

  • OpenAI: Text generation and embeddings.
  • Anthropic: Text generation.
  • Runware: Image generation.

You select a model by name when you make a call, and Wix adds support for new models from these providers over time. For the current provider list and the suggested and supported models, see About the AI APIs in the API Reference.

Because Wix handles provider authentication, you don't manage provider accounts or keys. Wix bills usage as AI credits instead of charging each provider separately. Who Wix bills depends on your development path, covered next.

Billing across development paths

Wix meters AI usage as AI credits. Who Wix bills depends on your development path:

  • Sites: Wix bills the site's account.
  • Apps: Wix bills the Wix users who install your app, so you don't set up any billing integration. Your app must include the INVOKE AI MODELS permission scope. See About App Permissions in Build Apps.
  • Headless projects: Wix bills the project's account.

See also

Last updated: 2 August 2026

Did this help?