Skip to content

Create IAB Image

FreshPOST
POST https://api.creatify.ai/api/iab_images/

Generate an IAB-compliant advertising image. These images are formatted to meet Interactive Advertising Bureau (IAB) standards for digital ad placements.

Credit Cost

2 credits per request

Request Body

NameTypeRequiredDescription
promptstringYesDescription of the image to generate
sizestringNoIAB standard size (e.g., 300x250, 728x90, 160x600)
brand_colorstringNoPrimary brand color in hex (e.g., #FF5733)

Headers

HeaderTypeRequiredDescription
X-API-IDstringYesYour Creatify API ID
X-API-KEYstringYesYour Creatify API key
Content-TypestringYesapplication/json

Example Request

bash
curl -X POST 'https://api.creatify.ai/api/iab_images/' \
  -H 'X-API-ID: your-api-id' \
  -H 'X-API-KEY: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "Professional ad banner for a fitness app showing active people",
    "size": "300x250",
    "brand_color": "#2563EB"
  }'

Response

json
{
  "id": "iab-001",
  "status": "pending",
  "created_at": "2024-01-15T10:30:00Z"
}

Status Codes

CodeDescription
201Task created successfully
400Bad request -- invalid parameters
401Unauthorized -- invalid API credentials
402Insufficient credits
429Rate limit exceeded
500Internal server error

TIP

Generated images conform to IAB standards and can be directly used in ad networks that accept standard display ad sizes.