> ## Documentation Index
> Fetch the complete documentation index at: https://docs.topsort.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AI-Generated Asset Disclosure

> How advertisers declare AI-generated images, and how that declaration is returned in auction responses for image banners and JSON-template creatives.

Advertisers can declare, image by image, that a creative was generated or modified with AI. Topsort stores the declaration with the creative and returns it in the auction response, so your storefront can show an AI label wherever your disclosure rules require one, such as the transparency obligations in Article 50 of the EU AI Act.

This page covers how the declaration is collected, what Topsort does with image metadata, and what the auction response looks like for **image banners** and for **JSON-template creatives** such as Sponsored Brands.

## How it works

**1. The advertiser uploads an image**

Every image creative gets an **AI Generated or Modified Image** toggle. It starts off.

**2. Topsort checks the file's metadata**

If the file carries metadata left by an AI generation tool, Topsort asks the advertiser to review it. Topsort never turns the toggle on by itself.

**3. The advertiser declares**

The advertiser turns the toggle on for each image that was generated or modified with AI.

**4. Topsort stores it and returns it in the auction**

The declaration is saved with the creative. When the creative wins an auction, the declaration comes back in the response next to the image it describes.

**5. Your storefront renders the label**

You read the field and show your AI label next to the image.

Four rules apply everywhere:

* **The advertiser's declaration is the only source.** The metadata check only decides whether to ask the advertiser. Missing metadata says nothing either way, because cropping, resizing and most upload tools strip it.
* **Only positive declarations are sent.** The field appears only for images the advertiser declared. If it is missing, the advertiser made no declaration. It does not mean Topsort confirmed the image is free of AI.
* **The declaration does not affect the auction.** Ranking, pricing, pacing and delivery are the same whether or not an image is declared.
* **Images only.** The declaration is offered for PNG, JPEG, GIF and WebP images. It is not offered for video.

## Declaring AI-generated images in the dashboard

### Image banners

In the **Set Creatives** step of a banner campaign, each uploaded image has its own toggle under the thumbnail. In this example the first creative is declared and the second is not:

![Two banner creatives in the Set Creatives step. The first has the AI Generated or Modified Image toggle on, the second has it off.](https://mintcdn.com/topsort/XsYyaHXpNSERVyt-/images/knowledge-base/ai-disclosure/banner-creatives-toggle.webp?fit=max\&auto=format\&n=XsYyaHXpNSERVyt-\&q=85\&s=89325b6345c4ba55e38e18c3d2429272)

The info icon next to the toggle explains what the declaration means:

![Tooltip: turn this on if any part of this creative was generated or modified with AI. Topsort records and passes on your declaration but does not verify it.](https://mintcdn.com/topsort/XsYyaHXpNSERVyt-/images/knowledge-base/ai-disclosure/banner-toggle-tooltip.webp?fit=max\&auto=format\&n=XsYyaHXpNSERVyt-\&q=85\&s=090a678027ecc7ad94e563627498c1a3)

Each creative is declared separately. If a campaign has a desktop and a mobile version of the same image, declare each one.

### Metadata review prompt

When an uploaded image carries metadata that AI generation tools typically leave, Topsort opens a review dialog that lists the files it found. Every toggle in the dialog starts off, and the advertiser decides what to mark.

![Dialog titled Your file includes AI metadata, listing summer-sale-ai.png as Not marked with its toggle off.](https://mintcdn.com/topsort/XsYyaHXpNSERVyt-/images/knowledge-base/ai-disclosure/banner-detection-dialog.webp?fit=max\&auto=format\&n=XsYyaHXpNSERVyt-\&q=85\&s=37c16437efbcb5da7c5dff99a6ce8dab)

The dialog opens when the file contains any of the following:

| Marker | Where it comes from |
| :- | :- |
| Content Credentials (C2PA) manifest | Embedded by many generative tools and editors that support content provenance. |
| IPTC `DigitalSourceType` for synthetic media | Written by tools that label their output as algorithmically generated, for example `trainedAlgorithmicMedia`. |
| Generation parameters in a PNG | The prompt and settings block written by Stable Diffusion front-ends such as Automatic1111, ComfyUI and InvokeAI. |

The check runs on the original file before any crop or resize, because cropping removes the metadata. Advertisers can tick **Don't show it again** to stop the prompt. The toggle under each creative stays available either way.

### Sponsored Brands (JSON templates)

Sponsored Brands creatives are built from a JSON template, and a template can have several image fields, for example a main visual and a logo. Each image field gets its own toggle:

![Sponsored Brands creation with the Product Highlight template. The uploaded creative brand-visual-ai.png shows the AI Generated or Modified Image toggle turned on.](https://mintcdn.com/topsort/XsYyaHXpNSERVyt-/images/knowledge-base/ai-disclosure/sponsored-brands-toggle.webp?fit=max\&auto=format\&n=XsYyaHXpNSERVyt-\&q=85\&s=e2ba00f689dd3b05109a8a3d8c2b0734)

The same metadata review prompt opens here when an uploaded file carries AI markers. Images added by URL also get the toggle. They are not scanned, because Topsort does not hold the file.

### Editing, replacing and bulk upload

* **Editing:** when a campaign is reopened, each toggle shows the saved answer.
* **Replacing an image:** the toggle for that image resets to off, and the advertiser is asked about the new file.
* **Turning a toggle off:** the declaration is removed from the creative, and the field disappears from the auction response.
* **Bulk banner CSV:** each slot has the optional columns `slot_<n>_ai_generated_desktop` and `slot_<n>_ai_generated_mobile`. `TRUE` declares the creative. `FALSE` or an empty cell sends no declaration.
* **Bulk Sponsored Brands CSV:** the optional `ai_generated_content_keys` column lists the template's image fields to declare, separated by `|`, for example `creative1|creative2`. Topsort converts those fields to their image URLs and writes them to `aiGeneratedAssets`, the same as the wizard.

## Auction requests and responses

The auction **request does not change**. You don't need a new parameter to receive the declaration. Topsort returns it in the response whenever the winning creative carries one.

Where the field appears depends on the creative type:

| Creative type | Field in the response | Value |
| :- | :- | :- |
| Image banner | `winners[].asset[].content.aiGenerated` | `"true"` (a string) |
| JSON-template creative (Sponsored Brands) | `winners[].content.aiGeneratedAssets` | Array of the declared image URLs |

The two shapes follow from how each creative type is returned:

* **Image banners** return every image as its own object in the `asset` array. Each object carries its own `aiGenerated` flag, so the flag always sits next to the image it describes.
* **JSON-template creatives** return all their fields in a single `content` map, which can hold several images, such as a visual and a logo. One flag for the whole map couldn't say which image is AI-generated, so Topsort lists the URL of each declared image in `aiGeneratedAssets`.

### Image banners

An image banner winner returns its image in `asset[]`. When the advertiser declared the image, the asset's `content` object carries `aiGenerated: "true"`. `content` can also hold other creative metadata, such as `altText`.

**Request** · `POST /v2/auctions`

```json theme={null}
{
  "auctions": [
    {
      "type": "banners",
      "slots": 1,
      "slotId": "home-hero",
      "device": "desktop"
    }
  ]
}
```

**Response**

```json Declared as AI-generated theme={null}
{
  "results": [
    {
      "resultType": "banners",
      "winners": [
        {
          "rank": 1,
          "type": "vendor",
          "id": "v_8fj2D",
          "resolvedBidId": "ChAGc-G66Wt7LKQEOcW8VBdIEhABjz_zDXx7db-ZYpxiwJ3DGhABjr4Lt_J0_a7Xv_uIfyOXIgUKATEQATDrrg8",
          "campaignId": "8b816367-da17-4c65-9a26-391edf01a10d",
          "vendorId": "v_8fj2D",
          "asset": [
            {
              "url": "https://topsortassets.com/asset_01ky4w356aefgtzjm8xjfdp7d5.png",
              "content": {
                "aiGenerated": "true",
                "altText": "Summer sale: up to 30% off fresh yogurt"
              }
            }
          ]
        }
      ],
      "error": false
    }
  ]
}
```

```json No declaration theme={null}
{
  "results": [
    {
      "resultType": "banners",
      "winners": [
        {
          "rank": 1,
          "type": "vendor",
          "id": "v_8fj2D",
          "resolvedBidId": "ChAGc-G66Wt7LKQEOcW8VBdIEhABmK3wq9Zx7Fj2LpNvT0aYGhABjr4Lt_J0_a7Xv_uIfyOXIgUKATIQATDrrg8",
          "campaignId": "8b816367-da17-4c65-9a26-391edf01a10d",
          "vendorId": "v_8fj2D",
          "asset": [
            {
              "url": "https://topsortassets.com/asset_01kz8n21bcdefgh6jklmn0pqrs.png"
            }
          ]
        }
      ],
      "error": false
    }
  ]
}
```

When a creative has no metadata at all, `content` is left out of the asset, as in the second example.

### JSON-template creatives (Sponsored Brands)

A JSON-template winner returns the filled-in template in `content`. Each image field in the template holds an image URL. When the advertiser declares one or more of those images, Topsort adds `aiGeneratedAssets` to `content`, listing the URLs of the declared images.

`aiGeneratedAssets` is not a template field. Topsort writes it into the creative's content automatically when the campaign is saved with a declared image. Your templates don't need to define it, and the values are always the same URLs that appear in the template's own image fields.

**Request** · `POST /v2/auctions/sponsored-brand`

```json theme={null}
{
  "auctions": [
    {
      "winners": 1,
      "placementId": "product-highlight",
      "triggers": {
        "products": {
          "ids": ["vanilla_yogurt", "strawberry_yogurt"]
        }
      }
    }
  ]
}
```

**Response**

```json One of two images declared theme={null}
{
  "results": [
    {
      "winners": [
        {
          "rank": 1,
          "type": "url",
          "id": "https://some.url.com/summer-collection",
          "productId": "Topsort-URL:https://some.url.com/summer-collection",
          "resolvedBidId": "ChAGc-G66Wt7LKQEOcW8VBdIEhABk0pue7N5wYmzE04uO_iOGhABjr4Lt_J0_a7Xv_uIfyOXIgUKATgQATDrrg8",
          "campaignId": "7be0d8c8-243c-41af-bb43-b43ef4935672",
          "vendorId": "v_8fj2D",
          "productIds": ["vanilla_yogurt", "strawberry_yogurt"],
          "content": {
            "headline": "Summer favorites",
            "visual": "https://topsortassets.com/asset_01ky4w356aefgtzjm8xjfdp7d5.jpeg",
            "logo": "https://topsortassets.com/asset_01kz8n21bcdefgh6jklmn0pqrs.png",
            "aiGeneratedAssets": [
              "https://topsortassets.com/asset_01ky4w356aefgtzjm8xjfdp7d5.jpeg"
            ]
          }
        }
      ],
      "error": false
    }
  ]
}
```

```json No declaration theme={null}
{
  "results": [
    {
      "winners": [
        {
          "rank": 1,
          "type": "url",
          "id": "https://some.url.com/summer-collection",
          "productId": "Topsort-URL:https://some.url.com/summer-collection",
          "resolvedBidId": "ChAGc-G66Wt7LKQEOcW8VBdIEhABk0pue7N5wYmzE04uO_iOGhABjr4Lt_J0_a7Xv_uIfyOXIgUKATgQATDrrg8",
          "campaignId": "7be0d8c8-243c-41af-bb43-b43ef4935672",
          "vendorId": "v_8fj2D",
          "productIds": ["vanilla_yogurt", "strawberry_yogurt"],
          "content": {
            "headline": "Summer favorites",
            "visual": "https://topsortassets.com/asset_01ky4w356aefgtzjm8xjfdp7d5.jpeg",
            "logo": "https://topsortassets.com/asset_01kz8n21bcdefgh6jklmn0pqrs.png"
          }
        }
      ],
      "error": false
    }
  ]
}
```

In the first example only the main `visual` is declared, so your storefront labels the visual and leaves the logo unlabelled. Because the declaration is a list of URLs rather than one flag for the whole creative, it always points at the exact image it describes.

## Rendering the label

Topsort provides the signal. The label's wording, design and placement are up to you and your disclosure requirements.

```javascript Image banner theme={null}
const [asset] = winner.asset ?? [];
const isAiGenerated = asset?.content?.aiGenerated === "true";

renderBanner({
  src: asset.url,
  alt: asset.content?.altText ?? "",
  aiLabel: isAiGenerated,
});
```

```javascript JSON template theme={null}
const content = winner.content ?? {};
const aiAssets = new Set(content.aiGeneratedAssets ?? []);

renderImage({ src: content.visual, aiLabel: aiAssets.has(content.visual) });
renderImage({ src: content.logo, aiLabel: aiAssets.has(content.logo) });
```

> [!NOTE]
>
> Compare the banner value with the string `"true"`. Values in `content` are always strings.

## FAQ

> [accordion] Does Topsort detect AI-generated images automatically?
>
> No. Topsort reads the file's metadata only to decide whether to ask the advertiser to review it. Metadata can be removed or edited, so only the advertiser's declaration is recorded and returned.

> [accordion] The field is missing from the response. Does that mean the image is not AI-generated?
>
> No. A missing field means the advertiser made no declaration for that image. Topsort only returns positive declarations.

> [accordion] Do I need to change my auction request or my templates?
>
> No. The request is unchanged, and `aiGeneratedAssets` is added to JSON-template content by Topsort, so your template schemas don't need to define it.

> [accordion] Does declaring an image affect how the campaign performs in the auction?
>
> No. The declaration is passed through with the creative and has no effect on ranking, pricing or delivery.

> [accordion] Can video creatives be declared?
>
> Not today. The declaration is offered for PNG, JPEG, GIF and WebP images only.

## Related pages

* [Accessibility and Image Disclosure](https://docs.topsort.com/en/knowledge-base/ad-platform/banners/accessibility-and-image-disclosure.md)
* [Sponsored Banners API](https://docs.topsort.com/en/api-reference/examples/sponsored-banners/banners.md)
* [Sponsored Brands API](https://docs.topsort.com/en/api-reference/examples/sponsored-brands.md)

***

**Last updated:** 
<time dateTime="2026-11-24">2026-11-24</time>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.