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.
| Model | Why | Credits | CLI Command |
|---|---|---|---|
| Flux 2 Pro | Best-in-class text rendering — logos, signs, headlines, and labels appear correctly in generated images, which is critical for marketing assets. | 50-100 per image | agent-media generate flux2-pro -p "Instagram story graphic: bold text SUMMER SALE 50% OFF on a tropical beach background" --aspect-ratio 9:16 --sync |
| Grok Imagine | Distinctive artistic style that stands out in crowded feeds — ideal for scroll-stopping ad creatives and eye-catching social posts. | 50-100 per image | agent-media generate grok-image -p "Vibrant flat illustration of a coffee shop scene for a cafe brand social post" --sync |
Step-by-Step Workflow
Follow these steps to start generating marketing graphics & social ads with agent-media CLI.
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.
$ agent-media generate flux2-pro -p "Clean promotional banner: NEW COLLECTION NOW LIVE, modern fashion photography style, white background" --aspect-ratio 16:9 --sync
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.
$ agent-media generate flux2-pro -p "Product ad: sleek smartwatch on a dark surface with text STARTING AT $299" --sync
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.
$ agent-media generate grok-image -p "Isometric illustration of a coworking space for a tech startup blog header" --sync
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.
$ 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.
{
"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.
Related Use Cases
Concept Art & Illustration
Concept art and illustration drive the visual direction of games, films, books, and brands. Traditional concept pipelines involve hours of sketching and iteration before arriving at a visual direction. AI image generation collapses that exploration phase from days to minutes. agent-media CLI gives artists and creative directors a way to rapidly explore styles, compositions, and color palettes — then refine the best results into final artwork.
Product Demo Videos
Product demo videos convert browsers into buyers, but hiring a video production team for every SKU is expensive and slow. AI video generation lets you create animated product showcases, explainer clips, and walkthrough videos from a text description. With agent-media CLI, you describe your product scene, choose a model optimized for object detail and smooth motion, and get a polished clip back in minutes.
TikTok & Reels Content
Short-form vertical video dominates social media. TikTok, Instagram Reels, and YouTube Shorts all require 9:16 portrait content that grabs attention in the first second. With agent-media CLI, you can generate scroll-stopping short-form videos directly from your terminal — no video editor, no stock footage library, no browser tabs. Pick a model, write a prompt, and publish.