# Let Codex make the images.

Codex picks the model that fits each image, not whichever one you hold a key for. Flux, Nano Banana, GPT Image and Grok, from 3¢. No provider account, no API key, no subscription.

Provider in the worked example: StableStudio.

Price shown for this route: 3¢ per image.

## What it can do

### Generate an image

Choose an image model and resolution. Flux 2 Pro at 0.5 MP quoted 2¢ on 9 September 2026.

Price: 3–21¢.

### Edit an image

Use a supported edit endpoint to change an existing image. Check the model’s accepted inputs first.



### Generate a video

Request a video from a supported model. Duration and settings affect the quote.

Price: from 40¢.

### Convert an image to SVG

Convert a raster image to SVG. Inspect the paths before using it as a logo or icon.



## Connect your agent

Read the [Codex setup guide](https://taskfuel.ai/docs/setup-cli/).

Use one TaskFuel account and prepaid balance. Inspect the provider and request quote before a paid call, then review the returned response and recorded charge.

## When to use it

### Finish the UI, not just the markup.

Codex builds the component and leaves a placeholder where the picture goes. Ask for the real asset in the same task, at a few cents, and the feature is finished when the task is.

### Work that completes while you are away.

A Codex task running on its own cannot stop to ask you for artwork. With image generation in reach it finishes the job, and the prepaid balance is the ceiling on what it can spend.

### Illustrate what you just built.

Generate the header or diagram next to the code it explains, then vectorise it so it stays sharp in the README instead of blurring on a wide screen.

## Questions

### Can Codex generate images?

Not on its own: Codex writes and runs code, and has no image model behind it. Give it one and it generates the asset in the same task that wrote the code, either with a provider API key of your own or with a pay-per-call balance like TaskFuel.

### Do I need my own image API key for Codex?

No. One TaskFuel account and one prepaid balance covers it. TaskFuel pays the provider and bills your balance, so there is no second key to put in the environment Codex runs in.

### What does an image cost in Codex?

From 3¢ with Flux 2 Pro up to 21¢ for GPT Image 2 at high quality. Nano Banana, Flux 2 Max and Grok Image are 7¢; Nano Banana Pro and GPT Image 1.5 are 13¢. Codex reads the exact price before it pays, so a long task cannot surprise you.

### Which model should I use?

Nano Banana Pro at 13¢ when the image carries text, because it renders type most reliably. Flux 2 Pro at 3¢ while you are still working out the composition. At that price a dozen attempts cost less than one stock photo.

### Can Codex edit an image already in the repo?

Yes. Every image model has a matching edit endpoint, so Codex can recolour an asset, drop a background or restyle a committed screenshot, and write the result back beside it.

### Can Codex generate video too?

Yes, from the same balance. Sora 2 starts at 40¢, and the price is read before the call the same way it is for images.

## Reference

- [Read this guide on the website](https://taskfuel.ai/tools/image-generation/codex/).
- [Browse providers and capabilities](https://taskfuel.ai/catalog/).
- [Pricing](https://taskfuel.ai/pricing/).
- [Agent instructions](https://taskfuel.ai/llms.txt).
