- STABLE
- DATA
- AUTOMATED
- HUMAN
Short answer
How do I get the same images every time for my UI tests?
Provide a specific seed string to your agent to request a unique, repeatable image. This ensures your automated tests always see the same content instead of random photos. You'll get stable URLs and metadata for your test suite.
The results
What you get from this setup
The AI handles the image fetching so you can focus on the test logic.
STABLE
Predictable test runs
The AI uses seed strings to pull identical images every time. This stops your UI tests from failing due to unexpected visual changes.
DATA
Image metadata access
Your agent can pull specific details about the images it fetches. This helps you verify that the right dimensions or types are being used.
AUTOMATED
Direct URL generation
The AI generates direct links to the images. You can drop these straight into your test code or component props.
HUMAN
Manual visual review
You still need to look at the final UI. The AI provides the assets, but you decide if the layout looks right.
The workflow
What your AI does when you request an image.
The agent acts as the bridge between your test requirements and the image provider.
Identify seed requirements
The agent determines the specific seed string needed to match your existing test suite or design requirements.
get_seed_infoFetch the image link
The agent calls the provider to get a direct URL for the image associated with that seed.
get_seed_image_urlVerify image properties
The agent checks the image details to ensure the size and content match your test expectations.
get_seed_infoDeliver to your code
The agent provides the final URL or metadata to your agentic workflow or directly into your chat.
get_seed_image_url
Try it
Copy these to start.
Use these prompts to begin generating your test assets.
Starting points
Swap out the bracketed text with your specific image dimensions or seed numbers.
Lorem Picsum Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_BpGvsd3F7ZiU2FdSC6HlwGpJk3sdjmn8ZITZjym3/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Lorem Picsum capabilities are ready to use.
{
"mcpServers": {
"lorem-picsum-mcp": {
"url": "https://edge.vinkius.com/vk_preview_BpGvsd3F7ZiU2FdSC6HlwGpJk3sdjmn8ZITZjym3/mcp"
}
}
}Get a URL for a 400x400 image using seed 'test-123'.
Find the metadata for the image with seed 'ui-component-alpha'.
I need a consistent 800x600 placeholder for my dashboard test; use seed 'dashboard-bg'.
Check the info for the image using seed 'profile-avatar-01' to see its dimensions.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Lorem Picsum once, then ask.
One connection gives your agent access to the entire image library. Your credentials stay encrypted and secure.
Connect Lorem Picsum to your AIFAQ
Common questions
- 01
Will the images change if I use the same seed?
No. Using the same seed string ensures the agent pulls the exact same image every time.
- 02
Can the AI upload these images to my local drive?
No. The AI can only provide the URLs and metadata for the images.
- 03
Can I use this to generate custom AI art?
No. This tool is for pulling specific, seeded placeholder images from the Lorem Picsum library.
- 04
Does the AI choose the image size for me?
The AI can request specific sizes, but you must tell it which dimensions you need in your prompt.
- 05
Can the AI delete images from the provider?
No. The AI only has permission to read image info and get URLs.
More questions about Lorem Picsum? The Connector page answers them. See everything the Lorem Picsum Connector can do
Connect Lorem Picsum to Claude, Cursor, ChatGPT & more
