SurgePixSurgePix
Home>Skills Library>Poster Creator

Poster Creator

Generate AI-powered event posters from structured event details and creative direction — optimized for autonomous agent skill calling and automated workflows. Use when the user asks to create an event poster, design an activity flyer, make a promotional banner, or generate any visual announcement for an event. Accepts event name, date, venue as required inputs, with optional creative prompts, tagline text, reference images, or previously uploaded file IDs. Returns a download URL, session ID, and task ID upon completion, with async execution and automatic polling — no human-in-the-loop required. Supports 8 preset styles for intent-to-style mapping and custom output dimensions in any WxH format.

npx skills add https://github.com/surgepix/agent-skills --skill surgepix-generate-poster
Download ZIPGitHub

SurgePix Poster Creator

Generate a professional event poster image from structured event details using the SurgePix API. Use when the user asks to create an event poster, activity flyer, promotional banner, or any visual announcement for an event.

What the Skill Does

ActionDescription
Generate event posterCreate a poster image from event name, date, venue, and brief
Upload reference imageUpload a brand logo or visual reference image to apply to the poster design
Check task statusPoll a generation task by taskId to check progress
Download resultRetrieve the PNG download URL directly from the task result
Generations run asynchronously. By default, the skill submits the task and polls automatically until complete. Pass --no-wait to receive a taskId immediately and check progress manually with the status command.

Workflow

  1. Step 0: Check environment (required)

    Before running, verify config:

    node "<skills-dir>/surgepix-setup/scripts/check_env.mjs"
    • Exit 0 → proceed to Step 1
    • Exit 1 → follow surgepix-setup skill to configure .env, then retry
  2. Step 1: Gather inputs

    --event-name, --date, and --venue are required.

    • Event name (required): main title displayed on the poster
    • Date and time (required): e.g. 2026-06-15 19:00
    • Venue (required): location name or address shown on the poster
    • Prompt (optional): free-form creative direction — describe desired color scheme, typography, layout, imagery, or atmosphere. This instructs the AI and does not appear as text on the poster.
    • Description (optional): tagline or intro text printed on the poster, max 100 characters
    • Style (optional): layout and typography preset. Choose from: modern / vintage / minimalist / bold. Use as a quick shorthand for visual direction; omit if --promptPreset Styles section below for detailed descriptions.
    • Size (optional, default 1080x1920): custom dimensions in WxH format, e.g. 1080x1920, 1080x1080, 1920x1080.
    • Reference image (optional): local file path or image URL; script uploads automatically. Repeatable for multiple images. Supported formats: JPEG, JPG, PNG, WEBP — max 20MB each.
    • Session ID (optional): if the user is iterating on a previous result, ask them to provide the sessionId (number type) printed by the last run. If this is a fresh request, omit it — the platform auto-creates a new session.
    • Local reference image → script uploads automatically, then calls API
    • Reference image URL → script uses it directly
  3. Step 2: Run generate-poster

    node "<skills-dir>/surgepix-generate-poster/scripts/generate_poster.mjs" \
      --event-name "<text>" --date "<text>" --venue "<text>" \
      [--prompt "<text>"] [--description "<text>"] [--style <name>] \
      [--size <1080x1920>] [--reference "<path-or-url>" ...] [--session-id <id>]
    FlagDescription
    --event-name <text>Main title on the poster (required)
    --date <text>Event date and time, e.g. 2026-06-15 19:00 (required)
    --venue <text>Location text shown on the poster (required)
    --prompt <text>Creative direction (color, typography, layout) — not printed on poster
    --description <text>Tagline printed on the poster, max 100 characters
    --style <name>Layout preset: modern / vintage / minimalist / bold
    --size <WxH>Output dimensions, default 1080x1920
    --reference <path-or-url>Reference image (local path auto-uploaded; repeatable for multiple files)
    --session-id <id>Session ID; pass the sessionId (number type) from a previous run to iterate

    The script always uses asynchronous mode (internal noWait=true) — it submits the task and automatically polls until complete. noWait is hardcoded inside the script; do NOT pass it as a parameter.

  4. Step 3: Parse output

    Success (stdout):

    {"ok":true,"taskId":"task_xxx","sessionId":123,"progress":"succeeded","download":"https://...poster.png"}

    Failure (stderr):

    {"ok":false,"error":"..."}
  5. Step 4: Present result

    • On success: Show the download URL. Always show sessionId (note: it is a number type, e.g. 123) so the user can pass it in a retry if needed
    • On failure: Report the error field. Common causes:
      • Missing required parameter — --event-name, --date, or --venue not provided
      • --description exceeds 100 characters
      • Reference image format not supported or exceeds 20MB
      • Invalid --size value
      • Generation failed — internal error; retry or simplify the prompt
    • The result is automatically attached to the session (auto-created or reused). The user can open the platform frontend to see all iterations in one place.
    • If the user is not satisfied and wants to iterate, instruct them to pass --session-id <sessionId> (number type) in the next run — both versions appear in the same session history on the frontend.

Rules

  • ALWAYS run check_env.mjs before first use in a session.
  • --event-name, --date, --venue are all required — never run the command if any is missing.
  • --description must be at most 100 characters.
  • NEVER pass noWait — it is hardcoded to true inside the script.
  • NEVER pass local reference image paths to the API — script handles upload internally.
  • NEVER invent download URLs — only use the download value from the output.
  • NEVER echo auth tokens in logs or output.
  • If the user wants to iterate, they pass --session-id 123 in the next run — both versions appear in the same session on the frontend.
  • If --session-id is omitted, the platform auto-creates a new session for the run.
  • If the user provides a brand color, pass it via --prompt, e.g. --prompt "Brand color #FF5A00, tech style, dark background". Do not put creative direction in --description — that field is reserved for text printed on the poster.
  • The poster download URL is valid for 24 hours; download before it expires.
  • To generate multilingual versions of the same poster, run the command separately for each language, adjusting --event-name, --venue, and --description accordingly.
  • Reference image supported formats: JPEG, JPG, PNG, WEBP — max 20MB each.

More skills from SurgePix

Presentation Creator

Generate AI-powered presentations from a prompt, outline, or document.

Illustration Creator

Generate 16:9 horizontal article illustrations (hand-drawn style) from a topic or per-shot specifications.

XHS Creator

Generate Xiaohongshu vertical carousel image sets from per-page copy descriptions.

Brand Logo Generator

Generate a brand logo image from a text description plus optional reference images.

Film Storyboards Generator

Generate film storyboard images from a script / storyboard description.

Generate Photo-poetic Editorial Artwork from an Image

Generate photo-poetic editorial artwork from uploaded images.

Generate Restaged Cinematic Artwork from an Image

Generate restaged cinematic artwork from one or more uploaded photos.

Generate Brand Placement

Generate images while locking a brand logo and/or fixed text to a consistent position.

Generate Channel Crop Pack

Generate a channel crop pack from one or more source images.

Background Remover

Generate AI-powered transparent PNGs by removing image backgrounds.

Image Translator

Translate text on one or more images to a target language while preserving the background.

PPT Translator

Translate all text content in a PowerPoint (.pptx) file into a target language.

Image Editing / Style Change

Edit an image via reference images and a text edit instruction.

SurgePixSurgePix

Create & Edit Visuals with AI

Contact UsXDiscordEmail[email protected]
ToolsPDF to JPG converterPNG to JPG converterJPG to PDF converterHEIC to PDF converterHEIC to PNG converterImage ResizerAI Image EditorYouTube Banner MakerAI HairstyleFather's day 2026Mother's day 2026Bar Graph MakerPie Chart MakerVenn Diagram Maker
Helpful ResourcesTate-A-TateSurgeflowSkills LibraryPresentation CreatorPoster CreatorIllustration CreatorXHS CreatorBackground RemoverImage TranslatorPPT TranslatorBrand Logo GeneratorFilm Storyboards GeneratorGenerate Photo-poetic Editorial Artwork from an ImageGenerate Restaged Cinematic Artwork from an ImageGenerate Brand PlacementGenerate Channel Crop PackImage Editing / Style Change

© 2026 SurgePix. All rights reserved. Made with ❤️ for productivity.