Create IAB Image
FreshPOSTPOST 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
| Name | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Description of the image to generate |
size | string | No | IAB standard size (e.g., 300x250, 728x90, 160x600) |
brand_color | string | No | Primary brand color in hex (e.g., #FF5733) |
Headers
| Header | Type | Required | Description |
|---|---|---|---|
X-API-ID | string | Yes | Your Creatify API ID |
X-API-KEY | string | Yes | Your Creatify API key |
Content-Type | string | Yes | application/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
| Code | Description |
|---|---|
201 | Task created successfully |
400 | Bad request -- invalid parameters |
401 | Unauthorized -- invalid API credentials |
402 | Insufficient credits |
429 | Rate limit exceeded |
500 | Internal server error |
TIP
Generated images conform to IAB standards and can be directly used in ad networks that accept standard display ad sizes.