# Generate an image from a prompt, and switch models with one input

Send a prompt to creative.image with an aspect ratio and a model, and get back a temporary link to each image with its size and type. The model input takes flux-schnell, flux-pro, flux-pro-ultra, nano-banana or recraft-v3, so testing a second model means changing one value. It runs through fal; RouterGrowth is independent of the model makers.

HTML page: https://www.routergrowth.com/tools/ai-creative/ai-image-generation-api
Part of: [AI creative tools](https://www.routergrowth.com/tools/ai-creative.md)

## The call

[`creative.image`](https://www.routergrowth.com/catalog/creative.image): Ad creatives, social visuals and thumbnails from a text prompt.

Price on this network: $0.00525 per image. The exact quote is shown before every run.

## What a real run returned

Run on 2026-11-02: 1 records in 2.9 s for $0.006292. Personal fields are masked. One flux-schnell image of a generic mug came back as a 1024 by 1024 JPEG in 2.9 seconds; the link to the file is temporary, so it is not shown.

| model | width | height | content_type |
|---|---|---|---|
| fal-ai/flux/schnell | 1024 | 1024 | image/jpeg |

## How to do it

1. **Write the prompt.** Describe the subject, the setting and the light, and say what you do not want.
2. **Pick a model and ratio.** flux-schnell is for fast drafts; move to another model for the final. Ratios include 1:1, 16:9 and 9:16.
3. **Call the API.** POST to /v1/run with capability creative.image, or ask your agent through MCP. count asks for 1 to 4 images.
4. **Save the images.** Read images[].url and store the files. The URLs are temporary.

## Ask it like this

- Make four square drafts of this product shot with flux-schnell, then remake my favourite with flux-pro. (`creative.image`)
- Generate a product photo of a ceramic mug and cut it out onto a transparent background. (`creative.image`, `creative.remove_background`)

## Connect

MCP server: `https://api.routergrowth.com/mcp`

```bash
claude mcp add --transport http routergrowth https://api.routergrowth.com/mcp
```

```bash
npm install -g routergrowth && routergrowth setup
routergrowth run -c creative.image -i '{"prompt": "Studio product photo of a plain matte sage green ceramic travel mug on a light grey seamless background, soft daylight from the left, no text, no logo", "aspect_ratio": "1:1", "model": "flux-schnell"}'
```

```bash
curl -X POST https://api.routergrowth.com/v1/run \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -d '{"capability": "creative.image", "input": {"prompt": "Studio product photo of a plain matte sage green ceramic travel mug on a light grey seamless background, soft daylight from the left, no text, no logo", "aspect_ratio": "1:1", "model": "flux-schnell"}}'
```

## Worth knowing

- **Charged per image, by model.** The quote depends on the model and on count, and the catalog lists each model's price. A failed call is not charged.
- **No editing in this call.** It makes new images from text. It takes no source image, and background removal is its own call.
- **Check rights and likeness.** Do not ask for a real person or a brand's logo without the right to use them. The example asks for a generic product.

## Questions

### Do I need a fal or Flux account?

No. You use one RouterGrowth key and wallet.

### Which model handles text in the image?

The catalog notes nano-banana as strong on text rendering.

### Can I get vector art?

recraft-v3 takes a style input, including vector_illustration.

### Can I reproduce an image?

The result of this run included a seed, but the input has no seed field, so you cannot pass it back through this call.

## Related

- [Generate a Flux image from a text prompt without a fal account](https://www.routergrowth.com/tools/ai-creative/flux-api.md)
- [Turn a short script into an MP3 with one call and one key](https://www.routergrowth.com/tools/ai-creative/text-to-speech-api.md)
- [Generate a voiceover from a Python script, with word timings for captions](https://www.routergrowth.com/tools/ai-creative/text-to-speech-api-python.md)
- [Send an image URL and get back the subject on a transparent PNG](https://www.routergrowth.com/tools/ai-creative/background-removal-api.md)
