3¢ Flux 2 Pro · 1 MP example

Image generation API

Let your agent make the images.

Generate or edit images through StableStudio. Choose the model and settings, check the price and retrieve the finished image.

One TaskFuel account and prepaid balance. Connect your agent and it shows the price before it pays.

Works with

Image generation API: what your agent gets.

Currently available through StableStudio. Your AI picks the one that fits and checks the exact price before it pays.

  • Generate an image

    Choose a model and settings. Our high-quality GPT Image 2 example cost 17¢.

    Priced per request
  • Edit an image

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

    Priced at runtime
  • Generate a video

    Request a video from a supported model. Duration and settings affect the 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.

    Priced at runtime

Image generation, tested.

One paid call from our own test run: what went in, what it cost and what came back.

TaskFuel test run ·

Charged $0.17

Your agent asked

Create a red sports car on a desert circuit, high quality
Data from
StableStudio

What came back

Result
1 image URL
Dimensions
1536 × 1024

One GPT Image 2 generation at high quality. Prompt shortened here.

Try the API request Quote first, then run

1. Check the price

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code. This request checks the price without paying.

Exact request from the image test above. A new generation can produce a different image.

curl --fail-with-body https://app.taskfuel.ai/v1/call \
  -H "Authorization: Bearer $TASKFUEL_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'TASKFUEL_REQUEST'
{
  "url": "https://stablestudio.dev/api/generate/gpt-image-2/generate",
  "method": "POST",
  "body": {
    "prompt": "Photorealistic automotive campaign photograph of one unbranded scarlet-red two-door sports coupe accelerating along an empty closed desert test circuit at golden hour. Low front three-quarter tracking-camera view, car pointed to the right, entire car and all visible wheels inside the frame. Sculpted low bonnet, simple narrow headlights, black five-spoke wheels, dark windows, realistic red paint reflecting the warm sky. The car body is crisp while the spinning wheels and asphalt show controlled directional motion blur. Pale desert hills, a sweeping bend and trackside barriers recede behind it. Dynamic but physically believable, natural light, realistic scale and geometry. Leave generous space ahead of the car and keep its complete silhouette within the middle 60 percent of the image height for a later widescreen crop. No other vehicles, no people visible, no badges, no brand logos, no words, no watermark. Landscape photograph, not an illustration.",
    "size": "1536x1024",
    "quality": "high",
    "background": "opaque",
    "output_format": "png"
  },
  "dryRun": true
}
TASKFUEL_REQUEST

2. Run the request

Review amount_usd in the quote. To pay and run, change dryRun to false and add maxAmountUsd with that approved amount inside the same JSON object. Keep the inputs unchanged; this limit applies to one call.

3. Read the result

The first response contains a job ID and pollUrl. Send that URL through TaskFuel’s /v1/call with method GET and no body. Check until complete or failed, then read result.imageUrl. Do not resubmit a pending generation.

Open the test image

Setup and API reference · Job polling and timeout recovery

Try it in your next task.

Sign in to TaskFuel and copy the connection prompt into your agent. Approve the connection, then ask for the work you need.

01

Name the task

Tell your agent what the output needs to contain.

02

See the price

Your agent shows the provider and price before spending.

03

Review the response

Check the output against your task. The call reports its cost and remaining balance.

When to use it.

Product pages

Replace the placeholder.

Describe the image and its dimensions. Inspect the result in the layout before shipping.

Writing

Illustrate the draft you have open.

Ask for a visual that supports the article. Review it before adding it to the page.

Existing assets

Revise the image you already have.

Use an edit endpoint for a background change. Keep the original so you can compare.

Providers for this task.

CapabilityProvidersReference
Nano BananaStableStudio, BlockRun, Otto AI, 2sCompare providers · Endpoint data
GPT ImageStableStudio, BlockRun, Otto AI, 2s, Sats4AICompare providers · Endpoint data

Good Questions.

What does an image cost?

Our high-quality GPT Image 2 example cost 17¢ on 18 September 2026. Model, size and quality change the price. Your agent shows the price for your own request before it pays.

Do I need a provider account?

No. Your agent pays from your TaskFuel balance, so there is nothing else to sign up for.

Which model should I use?

Choose a model that supports your size, reference images and editing needs. Compare a small sample before using the output in a finished project.

Can it edit an image I already have?

Use a supported editing tool and check its accepted inputs. A file in your project may need to be shared through a URL the provider can access. Keep the original and review the result.

Can I generate video too?

Yes, through a supported video tool. Our four-second Sora 2 example cost 40¢ on 22 September 2026. Your agent shows the price for your own request before it pays.

Can I use the images commercially?

Each image model has its own terms for what it generates, set by the model provider. TaskFuel does not grant or change them.

Your agent can do things it couldn’t this morning.

$1 in free credit, no card required.

Start for Free