Use Case

Generate Marketing Graphics & Social Ads with AI — From Your Terminal

Marketing teams need a constant stream of fresh visuals — social posts, ad creatives, email headers, blog illustrations. Designing each one from scratch in Figma or Canva takes time. AI image generation lets you go from brief to finished graphic in seconds. agent-media CLI gives you access to models with accurate text rendering and consistent style, so your marketing output stays on-brand without a designer in the loop for every asset.

Best Models for This

These models are recommended for generating marketing graphics & social ads. Each one brings different strengths to this workflow.

ModelWhy
Flux 2 ProBest-in-class text rendering — logos, signs, headlines, and labels appear correctly in generated images, which is critical for marketing assets.
Grok ImagineDistinctive artistic style that stands out in crowded feeds — ideal for scroll-stopping ad creatives and eye-catching social posts.

Step-by-Step Workflow

Follow these steps to start generating marketing graphics & social ads with agent-media CLI.

1

Generate a social media graphic

Flux 2 Pro handles text in images accurately, making it ideal for banners and ads where headlines and CTAs need to be legible. Specify the aspect ratio to match your target platform.

terminal
$ agent-media generate flux2-pro -p "Clean promotional banner: NEW COLLECTION NOW LIVE, modern fashion photography style, white background" --aspect-ratio 16:9 --sync
2

Create ad creative variations

Generate multiple ad creative variations by tweaking the prompt — change colors, backgrounds, or copy. Each image costs 50-100 credits, making rapid iteration affordable.

terminal
$ agent-media generate flux2-pro -p "Product ad: sleek smartwatch on a dark surface with text STARTING AT $299" --sync
3

Design an illustrated graphic

Use Grok Imagine for illustrated and artistic graphics that break away from photorealism. Its distinctive visual style works well for blog headers, newsletter graphics, and brand content.

terminal
$ agent-media generate grok-image -p "Isometric illustration of a coworking space for a tech startup blog header" --sync
4

Batch-produce for a campaign

Generate the same creative in multiple sizes for different platforms. A single loop produces landscape (Facebook), square (Instagram feed), and portrait (Stories) variants from one prompt.

terminal
$ for size in "16:9" "1:1" "9:16"; do agent-media generate flux2-pro -p "Holiday sale banner, festive red and gold theme, SAVE 30%" --aspect-ratio $size; done

MCP / Claude Code Integration

When building marketing pages or email templates in your code editor, use the MCP server to generate graphics inline. Ask Claude to "create a hero banner for this landing page section" and it will produce an on-brand image matched to the context of your code — no context-switching to a separate design tool.

.claude/settings.json
{
  "mcpServers": {
    "agent-media": {
      "command": "npx",
      "args": ["-y", "agent-media-cli", "mcp"],
      "env": {
        "AGENT_MEDIA_API_KEY": "your-api-key"
      }
    }
  }
}

Then ask Claude: "Generate marketing graphics & social ads using agent-media"

How Much Does It Cost

Image generation is the most cost-effective use case. Flux 2 Pro costs 50-100 credits per image, and Grok Imagine is in the same range. On the Starter plan ($39/month for 2,500 credits), you can produce 25-50 marketing images per month. Even a pay-as-you-go pack of 1,000 credits ($19) covers 10-20 graphics — enough for a week of social content.

Start generating marketing graphics & social ads

Install agent-media CLI and create your first image in under 60 seconds.

npm install -g agent-media-cli