Image generation API for AI agents

Scrollport gives AI agents 4 tools to generate images, from Black Forest Labs, MiniMax and xAI, through one MCP, CLI or HTTP connection. Prices are per megapixel or image, depending on the tool, paid per use from one prepaid wallet with no subscription, provider accounts or API keys.

Updated

What is the best image generation API for AI agents?

Start with FLUX.2 Pro from Black Forest Labs for high-quality images at the size and resolution you choose. Use FLUX.1 schnell for fast drafts while you explore ideas, or Grok Imagine Image from xAI when you also want to edit an image.

Start with

FLUX.2 Pro

by Black Forest Labs$0.0420 per megapixel

Best for: high-quality images at the size you choose

You ask your agent

“Make a landscape product shot of a premium reusable water bottle on a stone plinth, with soft studio light.”

You get

Result
JPEG image file
Size
1024 × 768 px

Also good for

  • Fast drafts while you explore ideas: FLUX.1 schnell by Black Forest Labs$0.0042 per megapixel
  • Editing an image as well as creating one: Grok Imagine Image by xAI$0.0280 per image

Compare all 4 image generation API tools

ToolWhat it returnsPrice
FLUX.1 schnellBlack Forest LabsGenerate images from text prompts with configurable size, inference steps and output count.$0.0042/megapixel
MiniMax Image-01MiniMaxGenerate images from text prompts with configurable aspect ratio and output count.$0.0049/image
Grok Imagine ImagexAIGenerate or edit images from text prompts with aspect-ratio and output-format controls.$0.0280/image
FLUX.2 ProBlack Forest LabsGenerate images from text prompts with configurable aspect ratio, resolution and output format.$0.0420/megapixel

Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Then help me generate images with Scrollport's image generation API tools. Start with FLUX.2 Pro (tool ID: blackforestlabs.flux-2-pro) unless another Scrollport tool fits my request better. Ask me for the details you need, then show me the result.

Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.

No agent yet? Create your account on the web and connect one from your dashboard later.

Questions about image generation API

Is there a free image generation API?

Scrollport has no free tier: these tools are priced per megapixel or image, depending on the tool, paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try a tool before adding funds.

Learn more about image generation

Describe the outcome before the style

Explain what the image needs to communicate and where it will appear, then add subject, setting, composition, mood and style. Include aspect ratio, safe areas or text placement requirements for the final channel.

How should I compare image generation results?

Judge candidates against the intended outcome, not visual novelty alone. Check subject accuracy, composition, brand fit, small details, text, artifacts and whether the image still works at its final size.

Use references and constraints deliberately

Provide visual references only when they clarify a specific quality such as composition, palette or product appearance. Tell the agent what to borrow from each reference and what it must not reproduce.

Example prompt

Use this to generate a small, comparable first set.

Example prompt to give your agent

Use Scrollport's Image generation tools to create [NUMBER] concepts for [USE AND AUDIENCE]. The image must communicate [MESSAGE] and show [SUBJECT AND SETTING], with [COMPOSITION, MOOD AND STYLE]. Use [ASPECT RATIO OR DIMENSIONS], preserve space for [COPY OR UI], and avoid [EXCLUSIONS]. Show me the price before the paid run and help me compare the results against the brief.