> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/generated-content-v1/introduction.md

## Article Content:

# About the Generated Content API

The Generated Content API lets you create post content, captions, titles, and images with AI from a text prompt, a source image, or a site's assets. Generated content is optional: you can use it to seed a draft before publishing, or write post content yourself when you call the Items API.

With the Generated Content API, you can:

- Generate ready-to-use post content for one or more channels with [Generate Post Data](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/generated-content-v1/generate-post-data.md). The response mirrors the structure of an item's channel-specific data, so you can pass it directly into [Create Draft Item](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/item-v1/create-draft-item.md).
- Generate caption or title suggestions from a prompt with [Generate Text](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/generated-content-v1/generate-text.md).
- Generate an image from a prompt and a source image with [Generate Image](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/generated-content-v1/generate-image.md). Generation is asynchronous: it returns an `executionId`, and you poll [Get Generated Image](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/generated-content-v1/get-generated-image.md) until the status is `READY` (the image's `imageUrl` and `fileId` are then populated) or `FAILED`.

[Generate Post Data](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/generated-content-v1/generate-post-data.md) is the integrated option when you want AI to produce a full post payload for a draft. [Generate Text](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/generated-content-v1/generate-text.md) is a building-block tool whose output you add to a post's content before you create a draft.

## Before you begin

It's important to note the following points before starting to code:

- Generated content does not publish by itself. After you generate captions or images, create a draft with the Items API and publish or schedule it.
- Image generation runs asynchronously. Generate Image returns an `executionId`; poll Get Generated Image with that ID until the status is `READY` or `FAILED`. Polling an unknown or expired `executionId` returns a `NOT_FOUND` error.

## Use cases

- [Generate post content and publish it](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/sample-flows.md#generate-post-content-and-publish-it).
- [Generate a caption for a post](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/sample-flows.md#generate-a-caption-for-a-post).

## Terminology

- **Generated content**: AI-created material, such as captions, titles, or images, produced from a prompt or site assets.
- **Prompt**: Text that describes the post or image you want the AI to generate.

## See also

- [About the Items API](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/item-v1/introduction.md).
- [About the Premium Features API](https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/premium-feature-v1/introduction.md).

