Skip to content

Images

Four image operations, one credit meter

Generate from a prompt, remove backgrounds, upscale 2x or 4x and draw icons as SVG. Every operation is a job, billed in credits only when it succeeds.
  1. generate1 credit per image
  2. remove-background1 credit
  3. upscale2x 1 credit, 4x 2 credits
  4. icon1 credit
Sample output, not a live call

One picture, four calls. Each one a job on the same meter.

Each image task tends to mean another vendor, another account and another bill. Generation, cutouts, upscaling and icons end up as separate integrations, each with its own way of reporting a failure.

Who it is for

  • Storefronts that cut product photos out onto a clean background
  • Apps that generate illustrations from user prompts and need the same seed to give the same image
  • Design tools that need each icon as an SVG plus PNGs at fixed sizes
One drawn picture through each operationDrawn sample, not model output
  1. generateFrom a prompt and a seed1 credit per image
  2. remove-backgroundPNG with alpha, same size1 credit
  3. upscaleSource left, 4x right2x 1 credit, 4x 2 credits
  4. iconSVG, then PNG per size1 credit

Drag the handle. See what a job changes.

Both pictures are drawn for this page to show what each call returns. They are not model output and they measure nothing.

remove-background
Source
PNG with alpha
Same size as the source, with a transparent background.
upscale
Source
Upscaled
The output is the source's width and height times the factor.

Pick an operation. Watch one job run.

Nothing here calls the API. Credits and job states follow the contract. The pictures are drawings and the links are examples, so read this for the shape of a job, never for image quality.

POST/v1/images/generate/jobsSample output, not a live call
Operation
Sample
Images, n
Seed
Outcome

Output variantsLighthouse

Output files

  • image_0.png1024x1024, seed 42
  • image_1.png1024x1024, seed 43
  1. queued
  2. running
  3. succeeded

status succeeded

job_id
d5f7b9c1-3e5a-4b8c-8d2f-4a6b8c0e2f35
module
images.generate
Credits charged
2
Links expire
2026-11-04T10:14:34Z
status succeededcredits charged 2
generate, at full widthDrawn sample, not model output

“A lighthouse on a rocky coast at dusk, soft fog”

seed
42
charged
1 credit

Same prompt, size and seed: the same image.

One queue, four paths. All four end at signed file links.

Four operations share one job API and one credit meter: generate images from a prompt, remove a background, upscale 2x or 4x, and draw an icon as SVG with PNG renders. You create a job, then poll it or receive a signed webhook, and the files come back as signed links.

What runs for one image job

Steps, in order:

  1. Prompt or source image (input)
  2. Job queue (store)
  3. Model registry (store)
  4. Prompt enhancer (check)
  5. Matting and upscaling (model)
  6. Diffusion checkpoint (model)
  7. Vectorize to SVG (check)
  8. Safety filter, metadata strip (check)
  9. Signed file links (output)

Connections:

  • Prompt or source image to Job queue
  • Job queue to Prompt enhancer: generate, icon
  • Job queue to Matting and upscaling: cutout, upscale
  • Prompt enhancer to Diffusion checkpoint
  • Model registry to Diffusion checkpoint: weights
  • Model registry to Matting and upscaling: weights
  • Diffusion checkpoint to Vectorize to SVG: icon
  • Diffusion checkpoint to Safety filter, metadata strip
  • Vectorize to SVG to Safety filter, metadata strip
  • Matting and upscaling to Safety filter, metadata strip
  • Safety filter, metadata strip to Signed file links
  1. 01 · enqueue

    Validate and queue

    Checks the body, compares the credits the request will cost with what you have left, and answers 202 with a job id.

    Runs on
    API node
    In and out
    request -> job_id, status queued
  2. 02 · prompt

    Prepare the prompt

    For generate and icon jobs, a prompt enhancer expands short prompts and applies the style preset and the negative prompt.

    Runs on
    CPU worker plus a small text model
    In and out
    prompt -> conditioning
  3. 03 · generate

    Generate with a fixed seed

    Our tuned diffusion checkpoint with style adapters draws each image. Image i uses seed + i, so the same prompt, size and seed give the same image.

    Runs on
    Our GPU nodes
    In and out
    conditioning, seed -> images
  4. 04 · edit

    Cut out or upscale

    Remove-background runs subject matting with edge refinement and returns a PNG with alpha at the source size. Upscale runs a super-resolution model at 2x or 4x, then an artifact detector checks the result.

    Runs on
    Our GPU nodes
    In and out
    source image -> PNG
  5. 05 · vectorize

    Vectorize icons

    Icon jobs trace the drawn icon to an SVG without external references, limit it to your palette, then render a PNG at each requested size from the vector.

    Runs on
    CPU worker
    In and out
    icon raster -> svg_url + png[]
  6. 06 · deliver

    Check and deliver

    Generated images pass a safety filter. Files are converted, stripped of metadata, stored privately and returned as signed links. Credits are charged when the job succeeds and the webhook fires.

    Runs on
    CPU worker and API node
    In and out
    files -> job output, signed webhook

Where it stops. Sizes and caps.

The seven generate sizes, drawn to scaleEach square is 1,536 pixels across, the longest side generate makes.
  • 512x512
  • 768x768
  • 1024x1024default
  • 1024x768
  • 768x1024
  • 1536x1024
  • 1024x1536
Upscale: the longest side, drawn to scale
  • 2x longest source side 2,048output 4,096
  • 4x longest source side 1,024output 4,096

A source can be up to 2,048 pixels for 2x and 1,024 for 4x, so the output stays inside 4,096.

All limits

  • Prompts up to 1,000 characters, and up to 4 images per generate job.
  • Generate offers seven sizes, from 512x512 up to 1536x1024 and 1024x1536.
  • Upscaled output stops at 4,096 pixels on the longest side, so a source can be up to 2,048 pixels for 2x and 1,024 for 4x.
  • Results arrive through a job, never in the create response. File links expire; fetch the job again for fresh ones.
icon: one SVG, then a PNG at each sizeDrawn sample, not model output
  1. 512
  2. 256
  3. 128
  4. 64

The default PNG sizes in pixels, drawn to scale against each other

The four styles

  • flat
  • outline
  • glyph
  • duotone

Create a job, then read it. Four endpoints, one job resource.

Every call takes the key in the x-api-key header. A source is an upload_id or a public https URL. Branch on error.code, never on the message.

  • POST/v1/images/generate/jobs

    Send a prompt, and optionally negative_prompt, size, n from 1 to 4, seed and style.

    Answers
    202 with a job
    Meter
    images.credits: 1 per image
  • POST/v1/images/remove-background/jobs

    Send a source. The output is a PNG with alpha at the source's size.

    Answers
    202 with a job
    Meter
    images.credits: 1
  • POST/v1/images/upscale/jobs

    Send a source and a factor of 2 or 4. The output is the source's size times the factor.

    Answers
    202 with a job
    Meter
    images.credits: 2x 1, 4x 2
  • POST/v1/images/icon/jobs

    Send a prompt, and optionally a style, PNG sizes and up to 4 palette colors. The output is an SVG and a PNG per size.

    Answers
    202 with a job
    Meter
    images.credits: 1
  • GET/v1/jobs/{id}

    Reads the job: status, progress, then output and units on success or error on failure. Fetch it again for fresh file links.

    Answers
    Sync
    Meter
    Not metered
  • POST/v1/jobs/{id}/cancel

    Cancels a queued or running job. A cancelled job is not charged.

    Answers
    Sync
    Meter
    Not metered

Request

POST/v1/images/generate/jobsReturns 202 with a job id; poll it or receive a signed webhook.

curl -X POST "$BASE_URL/v1/images/generate/jobs" \
  -H "x-api-key: sk_live_..." \
  -H "content-type: application/json" \
  -H "idempotency-key: lighthouse-0001" \
  -d '{"prompt": "A lighthouse on a rocky coast at dusk, soft fog", "n": 2, "seed": 42}'

What you are billed for

Unit
credits
Counted as
Image credits: generate 1 per image, remove-background 1, icon 1, upscale 2x 1, upscale 4x 2.
Rounding
Whole credits. The cost is checked against your remaining credits when the job is queued and charged when it succeeds. Failed and cancelled jobs are not charged.
Trial on approval
50 credits

Sample responses

{
  "data": {
    "job_id": "d5f7b9c1-3e5a-4b8c-8d2f-4a6b8c0e2f35",
    "status": "queued",
    "poll_url": "/v1/jobs/d5f7b9c1-3e5a-4b8c-8d2f-4a6b8c0e2f35"
  },
  "meta": {
    "request_id": "3f1c9a52-7d4e-4b8a-9e21-6c0d5b7a8f13",
    "version": "1",
    "engine": "native"
  }
}

The 202 body is the documented example. The succeeded job follows the documented job shape; its ids and links are examples.

Errors you can get

  • validation_error400

    The body has an unknown field, an empty prompt, a size outside the list, or n above 4.

  • unauthorized401

    The x-api-key header is missing, wrong or revoked.

  • forbidden403

    The key or the account has no access to this resource.

  • not_entitled403

    Your plan does not include Images.

  • quota_exceeded403

    The credits left this period do not cover the job. details holds the meter and the remaining credits.

  • not_found404

    A source upload_id (remove-background, upscale) does not exist or belongs to another account.

  • idempotency_conflict409

    The Idempotency-Key was used in the last 24 hours with a different body.

  • payload_too_large413

    The JSON body is over 2 MB.

  • rate_limited429

    The key sent more requests than its per-minute limit. details holds retry_after_seconds.

  • internal_error500

    Something failed on our side.

Prices. Credits, charged only when a job succeeds.

Generation, matting, upscaling and vectorization run on open models we tune and host ourselves. We do not resell another company's image API, so a credit costs what it costs us to run, plus a margin.

Images tiers, billed monthly

Starter

Price
$5/month
Included
1,000 credits
Limits
No extra limits
Fits
About 33 credits a day over a 30-day month, such as cutouts for a small catalog

Pro

Price
$19/month
Included
6,000 credits
Limits
No extra limits
Fits
About 200 credits a day, such as an app feature where users generate or edit images

Scale

Price
$49/month
Included
30,000 credits
Limits
No extra limits
Fits
About 1,000 credits a day, such as batch catalog processing or full icon sets

Over the quota: write to us and we can raise it, or it resets next period.

All six APIs are also sold together as one bundle: $19 a month with every Starter quota, $49 with every Pro quota, $129 with every Scale quota. See the bundle on the pricing page

What each tier's credits buy if you spend them all on one operation

What each tier's credits buy if you spend them all on one operation
StarterProScale
generate1 credit per image1,000images6,000images30,000images
remove-background1 credit per job1,000cutouts6,000cutouts30,000cutouts
upscale 2x1 credit per job1,000upscales6,000upscales30,000upscales
upscale 4x2 credits per job500upscales3,000upscales15,000upscales
icon1 credit per job1,000icons6,000icons30,000icons

Offline, between releases. How the weights get retuned.

  1. 01Collect prompt and image pairs reviewed for quality and safety
  2. 02Fine-tune the checkpoint, the style adapters and the icon adapter
  3. 03Preference-tune on ranked image pairs
  4. 04Register the new weights
  5. 05Run the weekly benchmark on a fixed external prompt set

Then back to step 1, with the next reviewed pairs

Before you apply. Seeds, charges, webhooks, files and rights.

Will the same request give me the same image?

Yes, when you pass a seed. The same prompt, size and seed give the same image, and image i of a job uses seed + i. Without a seed the job picks one at random and returns it next to each image.

Do I pay for a job that fails or that I cancel?

No. Credits are charged only when a job succeeds. Send an Idempotency-Key and a retry with the same body within 24 hours returns the existing job instead of creating a second one.

Do I have to poll for results?

No. Pass webhook_url and we POST the finished job to it, signed with HMAC-SHA256 over the timestamp and the raw body. Each delivery carries an id you can use to drop duplicate retries.

How long can I download the files?

Links are signed and stop working at files_expire_at. Fetch the job again for fresh links, or copy the files to your own storage when the job succeeds.

Same prompt, same seed, same image

Send an application and we review it within 72 hours. Approved accounts get credentials and a small trial, and we send invoices by hand.

Apply for access