# Score an ad creative with your own AI API key

**Use case:** 

Analyze one sample image ad for hooks, visible text, creative attributes and improvement suggestions. Add your own OpenAI API key in the secret apiKey field before running. Provider charges apply in addition to Apify usage; AI scores are not measured ad performance.

## Input

```json
{
  "mode": "batch",
  "provider": "openai",
  "creatives": [
    {
      "id": "example-image",
      "brand": "Example Brand",
      "body": "Explore the new collection.",
      "cta": "Learn More",
      "assetUrl": "https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800",
      "assetType": "image"
    }
  ],
  "csvInput": "id,brand,body,cta,assetUrl,assetType\ncreative-1,Example Brand,Turn your ad creatives into measurable insights.,Learn More,https://images.unsplash.com/photo-1556742049-0cfed4f6a45d,image",
  "ads": [
    {
      "libraryID": "example-ad-1",
      "brand": "Example Brand",
      "body": "Turn your ad creatives into measurable insights.",
      "ctaText": "Learn More",
      "format": "image",
      "images": [
        {
          "url": "https://images.unsplash.com/photo-1556742049-0cfed4f6a45d"
        }
      ],
      "active": true,
      "runTimeDays": 21,
      "multipleVersions": false,
      "similarAdCount": 1,
      "totalPlatforms": 1
    }
  ],
  "maxAds": 1,
  "maxConcurrency": 2,
  "analyzeVideos": false,
  "maxVideoFrames": 8,
  "videoFrameIntervalSeconds": 2,
  "imageInputMode": "url",
  "imageDetail": "low",
  "includeRawResponse": false
}
```

## Output

```json
{
  "libraryID": {
    "label": "Library ID",
    "format": "string"
  },
  "brand": {
    "label": "Brand",
    "format": "string"
  },
  "analysis_status": {
    "label": "Status",
    "format": "string"
  },
  "analysis_type": {
    "label": "Type",
    "format": "string"
  },
  "provider": {
    "label": "Provider",
    "format": "string"
  },
  "model": {
    "label": "Model",
    "format": "string"
  },
  "ai_score": {
    "label": "AI Score",
    "format": "number"
  },
  "performance_score.total": {
    "label": "Total",
    "format": "number"
  },
  "total_weighted_score": {
    "label": "Final Score",
    "format": "number"
  },
  "theme": {
    "label": "Theme",
    "format": "string"
  },
  "tone": {
    "label": "Tone",
    "format": "string"
  },
  "visual_style": {
    "label": "Visual Style",
    "format": "array"
  },
  "hook": {
    "label": "Hook",
    "format": "string"
  },
  "product_display": {
    "label": "Product display",
    "format": "boolean"
  },
  "human_display": {
    "label": "Human display",
    "format": "boolean"
  },
  "offer_display": {
    "label": "Offer display",
    "format": "boolean"
  },
  "improvement_suggestions": {
    "label": "Improvement suggestions",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The AI Ad Analyzer: Ad Creative Analysis & Scoring Actor is ready to run with the inputs already set for "Score an ad creative with your own AI API key". [Sign up or log in](https://console.apify.com/create-task-from-example/SoHWfcCJ1rIs19mSv) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Score an ad creative with your own AI API key" task

The AI Ad Analyzer: Ad Creative Analysis & Scoring Actor will start running based on the input automatically. You can also change all the input fields, like execution mode, AI Provider, and more, to match your specific use case.

### 3. Receive the "Score an ad creative with your own AI API key" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as library id, brand, status, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Score an ad creative with your own AI API key" task via API](https://apify.com/whoareyouanas/creative-intelligence.md).

## About this Actor

This example demonstrates how to use [AI Ad Analyzer: Ad Creative Analysis & Scoring](https://apify.com/whoareyouanas/creative-intelligence.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/whoareyouanas/creative-intelligence.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/whoareyouanas/creative-intelligence.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
