# agentutility social-image-pack

> agentutility social-image-pack is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.04/call, status unknown (last checked 2026-12-01).

Generates a platform-optimized social media image plus a toned caption and keywords from a text prompt in a single pay-per-call API

## Facts

- Endpoint: POST https://x402.agentutility.ai/social-image-pack?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-social-image-pack-aeece9ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YMILvi8FbOWPXaFsq4dgG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentutility-social-image-pack-aeece9ea -d '<json body>'
```

Example prompt: Generate a social image pack for my LinkedIn launch post about an AI agent API marketplace — use the creative image tier, a confident tone, and target developers as the audience.

## When to prefer this

Choose this endpoint when you need a complete, ready-to-post social media creative bundle — image, caption, and keywords — generated in one call with platform aspect-ratio control and tone customization. Ideal for agents automating content pipelines, campaign launches, or multi-platform posting workflows where paying $0.04 per creative with no API key setup is preferable to managing separate image generation and copywriting APIs.

## Known failure modes

- Prompt exceeds 2000 characters — request rejected
- Invalid platform enum value — validation error
- Image generation sub-service failure — degraded:true returned with partial results
- Payment not received or insufficient USDC — x402 payment required response
- Upstream fal.ai image service timeout — degraded result or error
- Invalid tier value — falls back to default or returns validation error

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object containing a hosted image URL (image_url), a platform-optimized caption, an array of relevant keywords, the original prompt echoed back, the target platform, a degraded flag indicating if any sub-service failed gracefully, and a components array showing latency and success status for each internal step (image-generate, rewrite-tone, keyword-suggest).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "prompt"
     ],
     "properties": {
      "tier": {
       "type": "string",
       "description": "image-generate tier: fast, creative, anime, or sd35. Default fast."
      },
      "tone": {
       "type": "string",
       "description": "Caption tone, e.g. confident, friendly, concise. Default confident."
      },
      "prompt": {
       "type": "string",
       "description": "Visual concept or campaign idea. Max 2000 chars."
      },
      "audience": {
       "type": "string",
       "description": "Optional target audience for the caption."
      },
      "platform": {
       "enum": [
        "square",
        "x",
        "linkedin",
        "instagram"
       ],
       "type": "string",
       "description": "Target social surface. Controls output aspect ratio. Default square."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "prompt": {
       "type": "string"
      },
      "caption": {
       "type": "string"
      },
      "degraded": {
       "type": "boolean"
      },
      "keywords": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "platform": {
       "type": "string"
      },
      "image_url": {
       "type": "string"
      },
      "components": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "ms": {
          "type": "integer"
         },
         "ok": {
          "type": "boolean"
         },
         "name": {
          "type": "string"
         }
        }
       }
      },
      "composed_of": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prompt": "Launch image for an API marketplace that lets AI agents pay per call",
  "caption": "Give agents the APIs they need, paid per call.",
  "degraded": false,
  "keywords": [
   "agent API marketplace",
   "x402 payments"
  ],
  "platform": "linkedin",
  "image_url": "https://v3.fal.media/files/social/image.png",
  "components": [
   {
    "ms": 3200,
    "ok": true,
    "name": "image-generate"
   },
   {
    "ms": 1400,
    "ok": true,
    "name": "rewrite-tone"
   },
   {
    "ms": 500,
    "ok": true,
    "name": "keyword-suggest"
   }
  ],
  "composed_of": [
   "image-generate",
   "rewrite-tone",
   "keyword-suggest"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-social-image-pack-aeece9ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
