models

Recraft: Recraft V4.1 Utility

Markdown · JSON

Recraft: Recraft V4.1 Utility

Recraft V4.1 Utility generates 1K raster images for straightforward product shots, mockups and simple scenes. It favours flat lighting and front-facing composition, with text prompts and optional image or style inputs for a predictable visual direction.

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

Recraft V4.1 Utility is the standard raster Utility model in Recraft’s V4.1 family. It favours simple scenes, flat lighting and front-facing composition rather than the main V4.1 model’s more expressive angle, light and mood choices. Its practical role is a clear product shot or mockup in which the object and necessary details should dominate. The exact Utility edition is separate from Utility Pro, the main V4.1 model and the SVG-producing vector variants.

The producer model code is recraftv4_1_utility. It returns 1K raster images in lossless WebP or PNG, with sizes selected from the supported aspect ratios. A square image is 1024 × 1024 pixels and a 4:3 image is 1216 × 896. The Pro Utility edition uses larger 2K dimensions, so those output sizes should not be assigned to standard Utility. Select the shape of the intended listing or mockup before describing the scene.

A useful brief names the product, viewpoint, material, surface, background and lighting in plain terms. For a product listing, request a front-facing insulated bottle on a pale backdrop, evenly lit, with the entire silhouette visible and no distracting scene elements. If a product has factual dimensions or distinctive parts, supply those details explicitly. Utility’s preference for straightforward presentation does not establish facts about a real product that were absent from the brief.

Generation supports prompts up to 10,000 characters, preferred-colour and background-colour controls, a random seed and one to six outputs. Optional compatible custom styles or reference images can guide a catalog’s visual language. Use reference assets that agree on lighting and rendering, and retain the same compatible style for subsequent product briefs. Exact reference-to-output colour matching is not guaranteed, so compare the final visual with the required palette. For reference-style generation, use one to ten PNG, JPG or WebP images, no more than 64 MB in total and under 20 MB each. Each reference needs a shortest side of at least 256 pixels, a longest side of no more than 4,096 pixels and a resolution of no more than 16 megapixels. Use either these references or a compatible saved style, rather than both. For reference-style generation, flexible matching allows a looser interpretation, while precise matching follows the rendering, palette, composition and lighting more closely.

The separate image-to-image workflow uses an existing image and a prompt, with strength from 0 to 1 controlling the extent of change. Lower strength keeps the result closer to the source; higher strength lets it move further away. Its input can be PNG, JPG, WebP or SVG under 20 MB, up to 16 MP, with sides between 256 and 4096 pixels. V4.1 custom styles are not accepted in that transformation operation, which is distinct from attaching a style reference to a new generation.

V4.1 Utility does not accept curated style names, negative_prompt, text_layout, artistic_level or no_text controls. Give the desired finished scene directly in the positive prompt. For a series of product assets, keep framing and background instructions stable, then compare each image with the supplied product shape, material and details before using it in a layout. Standard Utility is a focused raster tool for a restrained presentation; choose the specific output format and edition to match the task.

Ailoot Ultra · Images POST /v1/images/generations recraft/recraft-v4.1-utility

recraft/recraft-v4.1-utility

Recraft /recraft/recraft-v4.1-utility

Overview

Recraft V4.1 Utility generates 1K raster images for straightforward product shots, mockups and simple scenes. It favours flat lighting and front-facing composition, with text prompts and optional image or style inputs for a predictable visual direction.

Accepted inputs
Text · Images
Results
Images

Available in Ailoot · inputs & methods

Ailoot Ultra · Images POST /v1/images/generations
Input types
text, image
Output types
image
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
recraft/recraft-v4.1-utility
Default—
FieldpromptTypestringRequirementRequiredValues & limits
Minimum length: 1
Default—
Fieldaspect_ratioTypestringRequirementOptionalValues & limits
1:1, 4:3, 3:4, 16:9, 9:16, auto
Default—
FieldnTypeintegerRequirementOptionalValues & limits
Minimum: 1
Maximum: 6
Default—
Fieldinput_referencesTypearrayRequirementOptionalValues & limits
Minimum items: 0
Maximum items: 1
Default—
FieldproviderTypeobjectRequirementOptionalValues & limitsDefault—
Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, prompt
Parametermaterial_typesContracttext, image

Lifecycle: synchronous_result_then_owned_library

GET /v1/media/tasks/{task_id} · actual returned task_id or media library record

GET /v1/media/assets/{asset_id}/content

GET /v1/media/assets

GET /v1/media/assets/{asset_id}

Pricing

How the final charge is calculated

The displayed rates estimate the cost before generation. The final charge is calculated from the cost recorded for the original generation. Measured output duration and forecast quantities are not the final billable quantity.

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode
Not specified When fast mode is selected
Flex mode
Not specified When flex mode is selected
Maximum reasoning effort
Not specified When maximum reasoning effort uses the default adjustment

Estimated rates for comparison

Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

ConfigurationRate scheduleForecast quantityBilling unitCharge
ConfigurationBase token ratesRate scheduleBase rateForecast quantity—Billing unit—Charge
Input · Input tokens · Estimate for comparison only — / 1K tokens
Output · Output tokens · Estimate for comparison only — / 1K tokens
Input · Cache read · Estimate for comparison only — / 1K tokens
Input · Cache write · Estimate for comparison only — / 1K tokens
Input · Cache write, 1 hour · Estimate for comparison only — / 1K tokens
Configurationoutput imageRate schedule—Forecast quantity—Billing unitper output imageCharge
Output · output image · Estimate for comparison only $0.07 per output image
ConfigurationEstimated generation costRate schedule—Forecast quantityone generation estimateBilling unit—Charge
Output · Estimated generation cost · Estimate for comparison only $0.07 estimate before generation

This estimate is not an additional charge or a fixed rate for the completed generation.

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. How reservation and settlement work →

Example requests

Ailoot Ultra · Images

curl
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p={'model': 'recraft/recraft-v4.1-utility', 'prompt': 'a red panda astronaut floating in space, studio lighting'}

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/images/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin

def save_images(items):
    if not items: raise SystemExit("No completed images; retain the full response")
    for index, item in enumerate(items):
        encoded=item.get("b64_json")
        uri=item.get("url", "")
        if not encoded and uri.startswith("data:image/"):
            header, separator, encoded=uri.partition(",")
            if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
        if encoded:
            raw=base64.b64decode(encoded,validate=True)
        elif uri:
            uri=urljoin("https://api.ailoot.ai",uri)
            parsed=urlsplit(uri)
            if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
                raise SystemExit("Invalid returned image URL")
            owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
            args=["curl","--fail-with-body","--silent","--show-error",uri]
            if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
            temporary=Path(f"image-{index}.bin")
            subprocess.run(args+["-o",str(temporary)],check=True)
            raw=temporary.read_bytes()
            temporary.unlink()
        else: raise SystemExit("Image has neither bytes nor URL")
        if not raw: raise SystemExit("Empty image result")
        ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
        Path(f"image-{index}.{ext}").write_bytes(raw)
    print("Every returned image saved; complete response metadata retained")
save_images(json.loads(Path("result.json").read_text())["data"])
PY_RESULT

Receive and save results

Ailoot Ultra · Images

Download each returned image or save its Base64 contents

  • GET /v1/media/tasks/{task_id}
  • GET /v1/media/assets/{asset_id}/content
  • GET /v1/media/assets
  • GET /v1/media/assets/{asset_id}
Other content reads
Read existing owned assets
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/media/assets \
  -H "Authorization: Bearer $AILOOT_API_KEY" -o owned-assets.json
# Preserve every returned asset and follow its exact signed content URL. Do not construct a signed token.
Keep all completed results

Save every completed image; retrieve each returned URL or decode its Base64 contents.

Retain the complete response and headers, every actual output, original returned identifiers and all usage fields. Recover the original operation without submitting creation again.

If the original response needs checking

Keep the returned X-Client-Request-ID for reconciliation. Read only actual returned task_id/asset_id values or the owned media library; never build a task URL from the operation ID and never resubmit creation.

Response fields
FieldType
FieldcreatedType
Fielddata[].urlType
Fielddata[].b64_jsonType
FieldusageType

Aliases

Model aliases

Ailoot Ultra recraft/recraft-v4.1-utility

Method path aliases

/v1/images

Related caller IDs

recraft/recraft-v4.1-utility

FAQ · Recraft: Recraft V4.1 Utility
What inputs and results are available?

POST /v1/images/generations · recraft/recraft-v4.1-utility: text, image → image

Which fields does the request use?

POST /v1/images/generations · recraft/recraft-v4.1-utility: model, prompt, aspect_ratio, n, input_references, provider

What limits apply?

POST /v1/images/generations · recraft/recraft-v4.1-utility: n.minimum: 1; n.maximum: 6

More details

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription
Choose a discounted plan for your regular requests.
Promo code: up to 50% off
Enter your code at checkout. The price updates to reflect the current promotion.
Spending in your history
The model, tokens and amount are recorded for each request.

Choose a subscription · View model prices

Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application
Add text, image, video and audio generation to paid features in your service.
Reseller licence
Send a description of your project and how you provide access. Request written terms for use and resale.
Documents on the website
The service offer, licence agreement and data processing policy are available before you connect.

Request a reseller licence · Service offer and licence agreement