Text to imageImage editingOpen weights

Mage-Flow RL
API.

Mage-Flow is Microsoft's open-weight 4B model family for image generation and editing. RL is the reinforcement-learning-aligned checkpoint, sitting between Base and Fast.

Mage-Flow rl image of a mountain landscape at sunrise
Mage-Flow RL sample outputOpen in the Model Explorer
  • PriceFrom $0.0020 per image
  • Typical ETA2 s
  • Made byMicrosoft
  • Released

What it does.

Generate and edit

Text to image, or edit an input image (PNG, JPEG or WebP, 512 to 2048 px per side, up to 10 MB) with a text instruction.

Three checkpoints

Base is the quality-preserving checkpoint at 30 steps, RL is the reinforcement-learning-aligned checkpoint, and Fast is the 4-step Turbo checkpoint.

Open weights

Mage-Flow is released with open weights by Microsoft. Prodia serves it in the Model Zoo, so you call it with an API token like any other model.

Pricing.

Published per-job prices. Prompt and seed do not change the price. All model prices

TaskPrice per image
Text to image$0.0020 to $0.0025
Image editing$0.025

Price range as shown in the Model Explorer. The API can return the actual cost of a completed job.

Call it from your product.

One endpoint for every job type. The response is the generated file.

export PRODIA_TOKEN=your-token-here

curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer $PRODIA_TOKEN" \
  -H 'Accept: image/jpeg' \
  --json '{
      "type": "inference.zoo.mage-flow.rl.txt2img.v0",
      "config": {
        "prompt": "a sweeping mountain landscape at sunrise, mist rolling over the valleys, warm orange and pink sky"
      }
    }' \
  --output image.jpg \
  https://inference.prodia.com/v2/job

API tokens require a Pro subscription. See the quickstart.

TaskJob typeTypical ETA
Text to imageinference.zoo.mage-flow.rl.txt2img.v02 s
Image editinginference.zoo.mage-flow.rl.img2img.v07 s

Compare Mage-Flow checkpoints.

Same model family and price; pick by speed and quality.

CheckpointWhat it isTypical ETA
Mage-Flow BaseQuality-preserving, 30 steps3 s
Mage-Flow RLReinforcement-learning aligned, between Base and Fast2 s
Mage-Flow Fast4-step Turbo, the quickest1 s

More new models.

See all models

Test Mage-Flow RL.
Ship it with the API.