Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt

Use this file to discover all available pages before exploring further.

AgentMark generates images with prompts that declare image_config in frontmatter. The image description itself goes in an <ImagePrompt> tag.

Example configuration

example.prompt.mdx
---
name: image
image_config:
  model_name: dall-e-3
  num_images: 1
  size: 1024x1024
  aspect_ratio: 1:1
  seed: 12345
---

<ImagePrompt>
A futuristic cityscape at sunset with flying cars and neon lights
</ImagePrompt>

Tags

TagDescription
<ImagePrompt>The text description for image generation. AgentMark reads the contents at compile time and sends it to the model as the prompt.

Available configuration

PropertyTypeDescriptionRequired
model_namestringThe name of the model to use for image generation.Yes
num_imagesnumberNumber of images to generate.No
sizestringImage dimensions in format WIDTHxHEIGHT (e.g., 1024x1024, 512x512).No
aspect_ratiostringAspect ratio in format WIDTH:HEIGHT (e.g., 1:1, 16:9, 9:16).No
seednumberRandom-number seed for reproducibility.No

Running an image prompt

See Running prompts → Image generation for the SDK code pattern using Vercel AI SDK’s experimental_generateImage. (The experimental_ prefix is upstream — the API may evolve.)

Have Questions?

We’re here to help! Choose the best way to reach us: