Source: https://ailoot.ai/models/en/recraft-recraft-v4-1-flash/
Canonical: https://ailoot.ai/models/en/recraft-recraft-v4-1-flash/
Language: en

# Recraft: Recraft V4.1 Flash

[Markdown](https://ailoot.ai/models/en/recraft-recraft-v4-1-flash/index.md) · [JSON](https://ailoot.ai/models/en/recraft-recraft-v4-1-flash/facts.json)

## [Recraft: Recraft V4.1 Flash](https://ailoot.ai/models/en/recraft-recraft-v4-1-flash/)

Recraft V4.1 Flash generates 1K raster images from text for rapid visual iteration. It supports photography, portraits, complex scenes and logo concepts, with PNG or lossless WebP output and explicit colour preferences.

- [**Ailoot Ultra · Images** `POST /v1/images/generations` `recraft/recraft-v4.1-flash`](https://ailoot.ai/models/en/recraft-recraft-v4-1-flash/#method-0)

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 Flash is Recraft’s text-to-image model for rapid iteration and high-volume visual work. The manufacturer identifies photography, portraits, atmosphere, complex scenes, mixed media and logo concepts as strong uses. A written brief becomes a raster image that can be compared with other creative directions before a final asset is developed. Flash is a specific member of the V4.1 family, with its own output size and supported controls.

The native output is in Recraft’s 1K raster image class. Choose the canvas around the intended placement: a horizontal illustration for a page header, a vertical portrait or a square visual for a compact card. Output formats are lossless WebP and PNG.

Start the brief with the main subject and the visual purpose, then describe framing, setting, lighting and the medium. For a product concept, a useful instruction is: “A compact cream-coloured radio on a walnut desk, front three-quarter view, soft window light, calm editorial photograph, generous empty space on the left.” For an illustration, identify the shape language, palette and relationship between the elements. Keep the details that define the idea explicit instead of adding unrelated adjectives. Flash’s documented prompt allowance is up to 10,000 characters, so a detailed scene can be described when the task needs it.

The manufacturer’s controls include preferred colours and a desired background colour. A seed can be supplied for reproducible results, and its generation interface documents one to six images in a request. These controls support a useful comparison task: hold the subject and composition steady, vary one visual direction, and review the resulting images for the intended layout. Colour preferences describe the requested result; compare important brand colours with the finished asset before combining it with an existing design system.

Flash produces raster graphics. A logo concept can help choose a silhouette, mood or arrangement, while editable paths belong to the separately named Vector models. Flash also has no Pro variant. The full V4.1 line provides those separate choices when vector editing or higher-resolution detail is central to the deliverable. The manufacturer describes a later refinement step for taking a chosen draft towards a more detailed image; that step is a distinct operation rather than a different native Flash output size.

This edition does not support image-to-image input, custom styles, style identifiers, style matching or style-reference images. Its documented interface also excludes negative prompts and explicit text-layout controls. Put the requested appearance and composition into the positive brief. When lettering is part of a concept, quote the intended wording and inspect the rendered letters; use a separate layout stage when exact typography and placement are essential.

A practical result from Flash is a selected visual direction with a clear brief, appropriate aspect ratio and usable raster file. Compare the subject, framing, background and important details at the size where the image will appear. Keep the successful prompt and chosen file together so the next creative step follows the selected direction. Rapid iteration helps explore the design; native vector output, reference-style matching and the resolution of another V4.1 edition remain separate model choices.

**Ailoot Ultra · Images** `POST /v1/images/generations` `recraft/recraft-v4.1-flash`

[`recraft/recraft-v4.1-flash`](https://ailoot.ai/models/en/#m=recraft%2Frecraft-v4.1-flash&route=Ultra&caller=recraft%2Frecraft-v4.1-flash&fmt=images)

Recraft /`recraft/recraft-v4.1-flash`

### Overview

Recraft V4.1 Flash generates 1K raster images from text for rapid visual iteration. It supports photography, portraits, complex scenes and logo concepts, with PNG or lossless WebP output and explicit colour preferences.

Accepted inputs

Text

Results

Images

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Images** `POST /v1/images/generations`

Input types

`text`

Output types

`image`

Output format

Image file

Output count

1 output

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits recraft/recraft-v4.1-flash | Default— |
| Field`prompt` | Type`string` | RequirementRequired | Values & limits Minimum length: 1 Conditions: Nonempty UTF8 prompt. No manufacturer-wide character limit is invented. | Default— |
| Field`n` | Type`integer` | RequirementOptional | Values & limits 1 | Default1 |
| Field`response_format` | Type`string` | RequirementOptional | Values & limits url, b64\_json | Default— |
| Field`stream` | Type`boolean` | RequirementOptional | Values & limits false | Defaultfalse |

Input material combinations

**Text to image** · Required: prompt

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, prompt |
| Parameter`material_types` | Contracttext |
| Parameter`optional` | Contractn, response\_format, stream |
| Parameter`n` | Contract1 |
| Parameter`stream` | Contractfalse |
| Parameter`response_format` | Contracturl, b64\_json |
| Parameter`reference_images` | Contractfalse |
| Parameter`edit` | Contractfalse |
| Parameter`output_format_optional` | Contract |
| Parameter`resolution_control` | Contractnull |
| Parameter`aspect_ratio_control` | Contractnull |
| Parameter`other_fields` | Contractrejected except exact pinned internal provider routing |

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}`

Generate one image from prompt.

Save every data item; url/b64\_json are result encodings.

### 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.

| Configuration | Rate schedule | Forecast quantity | Billing unit | Charge |
| --- | --- | --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Forecast 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 |
| ConfigurationUltra | Rate schedule— | Forecast quantity— | Billing unitper image output | Charge Output · image output · Estimate for comparison only **$0.014** per image output |
| ConfigurationEstimated generation cost | Rate schedule— | Forecast quantityone generation estimate | Billing unit— | Charge Output · Estimated generation cost · Estimate for comparison only **$0.014** 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 →](https://ailoot.ai/docs/en/billing/reserve/)

#### Reference tariff details

Model-level reference schedules do not change method selection, quotes or charges. Active charges use the selected Ailoot method rates.

Image pricing configurations

#### Prices by configuration

| Configuration | Billing conditions | Charge |
| --- | --- | --- |
| ConfigurationOutput image | Billing conditionsNo pricing variant is declared. | Charge Output · Output image **$0.014** per image Equivalent listings describe the same charge; they do not add a second fee. |

### Example requests

#### Ailoot Ultra · Images

curlPython SDKNode.js SDK

```bash
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=json.loads('{"model": "recraft/recraft-v4.1-flash", "prompt": "A lighthouse on a cliff, watercolor", "n": 1, "response_format": "b64_json"}')

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
```

```python
from openai import OpenAI
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")

request={'model': 'recraft/recraft-v4.1-flash', 'prompt': 'A lighthouse on a cliff, watercolor', 'n': 1, 'response_format': 'b64_json'}
client=OpenAI(base_url="https://api.ailoot.ai/v1",api_key=os.environ["AILOOT_API_KEY"],max_retries=0)
result=client.images.generate(**request)
Path("sdk-result.txt").write_text(str(result),encoding="utf-8")
save_images([{"b64_json":getattr(item,"b64_json",None),"url":getattr(item,"url",None)} for item in result.data])
```

```js
import OpenAI from "openai";
import { readFileSync, writeFileSync } from "node:fs";
const key=process.env.AILOOT_API_KEY;
if(!key) throw new Error("Set your actual Ailoot API key");
const client=new OpenAI({baseURL:"https://api.ailoot.ai/v1",apiKey:key,maxRetries:0});
const request={"model": "recraft/recraft-v4.1-flash", "prompt": "A lighthouse on a cliff, watercolor", "n": 1, "response_format": "b64_json"};
const result=await client.images.generate(request);
writeFileSync("sdk-result.json",JSON.stringify(result,null,2));
if(!result.data?.length) throw new Error("No completed images");
for(let index=0;index<result.data.length;index++) {
  const item=result.data[index];let encoded=item.b64_json,uri=item.url||"",raw;
  if(!encoded && uri.startsWith("data:image/")) {
    const comma=uri.indexOf(",");if(comma<0 || !uri.slice(0,comma).includes(";base64")) throw new Error("Unsupported image data URI");
    encoded=uri.slice(comma+1);
  }
  if(encoded) {
    if(encoded.length%4!==0 || !/^[A-Za-z0-9+/]*={0,2}$/.test(encoded)) throw new Error("Invalid Base64");
    raw=Buffer.from(encoded,"base64");
  } else if(uri) {
    const u=new URL(uri,"https://api.ailoot.ai");
    if(u.protocol!=="https:" || u.username || u.password) throw new Error("Invalid returned URL");
    const owned=u.origin==="https://api.ailoot.ai" && u.pathname.startsWith("/v1/media/assets/") && u.pathname.endsWith("/content");
    const response=await fetch(u,{headers:owned?{Authorization:"Bearer "+key}:{},redirect:"manual"});
    if(!response.ok) throw new Error("Image content download failed: "+response.status);
    raw=Buffer.from(await response.arrayBuffer());
  } else throw new Error("Image has neither bytes nor URL");
  if(!raw.length) throw new Error("Empty image result");
  const ext=raw.subarray(0,4).equals(Buffer.from([137,80,78,71]))?"png":raw[0]===255&&raw[1]===216?"jpg":raw.toString("ascii",0,4)==="RIFF"&&raw.toString("ascii",8,12)==="WEBP"?"webp":raw.toString("utf8").trimStart().startsWith("<svg")||raw.toString("utf8").trimStart().startsWith("<?xml")?"svg":"bin";
  writeFileSync(`image-${index}.${ext}`,raw);
}
console.log("Every returned image saved; sdk-result.json retains complete metadata");
```

### 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}`

##### Keep all completed results

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

Save every data item. Decode each b64\_json or fetch every returned signed URL. Select a filename extension from the actual MIME/bytes.

##### If the original response needs checking

If an image generation or edit result requires a check, keep the original operation\_id/X-Client-Request-ID and returned result information. Recover existing owned results through the media library using actual task\_id or asset\_id values. Do not resubmit the generation/edit request or construct a polling URL from operation\_id.

Response fields

| Field | Type |
| --- | --- |
| Field`created` | Typeinteger |
| Field`data[].url` | Typestring |
| Field`data[].b64_json` | Typebase64 string |
| Field`usage` | Typeobject |

Errors and next steps

| Response | Condition | Next step |
| --- | --- | --- |
| Response400 · `invalid_request_error` | ConditionInvalid required fields, material representation or parameter value | Next stepCorrect the indicated fields before a new creation request. |
| Response`server_error` | ConditionThe returned response says the operation or result requires a check | Next stepKeep the original returned operation/task ID, request headers and response; continue supported reads of that original operation. Do not resubmit the creation request. |

### Aliases

#### Model aliases

**Ailoot Ultra** [`recraft/recraft-v4.1-flash`](https://ailoot.ai/models/en/#m=recraft%2Frecraft-v4.1-flash&route=Ultra&caller=recraft%2Frecraft-v4.1-flash&fmt=images)

#### Method path aliases

Use the method paths shown above.

#### Related caller IDs

[`recraft/recraft-v4.1-flash`](https://ailoot.ai/models/en/#m=recraft%2Frecraft-v4.1-flash&route=Ultra&caller=recraft%2Frecraft-v4.1-flash&fmt=images)

FAQ · Recraft: Recraft V4.1 Flash

What inputs and results are available?

`POST /v1/images/generations` · `recraft/recraft-v4.1-flash`: `text` → `image`

Which fields does the request use?

`POST /v1/images/generations` · `recraft/recraft-v4.1-flash`: `model`, `prompt`, `n`, `response_format`, `stream`

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](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## 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](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





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





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
