Source: https://ailoot.ai/models/en/recraft-recraft-v4-styles-vector/
Canonical: https://ailoot.ai/models/en/recraft-recraft-v4-styles-vector/
Language: en

# Recraft: Recraft V4 Styles Vector

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

## [Recraft: Recraft V4 Styles Vector](https://ailoot.ai/models/en/recraft-recraft-v4-styles-vector/)

Recraft V4 Styles Vector creates editable SVG graphics from a text brief and a required visual style. It suits coordinated icons, logos and illustrations whose line treatment, palette and rendering should follow the same reference direction.

- [**Ailoot Ultra · Images** `POST /v1/images/generations` `recraft/recraft-v4-styles-vector`](https://ailoot.ai/models/en/recraft-recraft-v4-styles-vector/#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 Styles Vector is the SVG-producing model in Recraft’s dedicated style-consistent generation line. It turns a text brief into new vector artwork while using a supplied reference style to guide the rendering, colour logic and overall look. It is useful for coordinated icon sets, brand illustration and graphic systems where subjects change but the visual treatment should stay recognisable. The Vector edition returns an editable graphic rather than a raster photograph.

The producer identifies this edition as recraftv4\_styles\_vector. Its output is always SVG; raster image\_format settings do not convert it into WebP or PNG. Every vector variant accepts the fourteen documented aspect ratios as width-to-height ratios rather than exact pixel sizes. SVG has no fixed pixel resolution, so the standard raster model’s 1K output is not an architectural size for this edition. Choose the desired shape of the asset and the intended small or large display use when preparing the brief.

A style is required for each generation. Use one to ten PNG, JPG or WebP references, or a compatible saved style instead of new references. The producer rejects a request that combines a saved style identifier with style reference images. The documented reference allowance is 64 MB in total and under 20 MB per file. A single clear icon or illustration can establish the treatment; several references are useful when their line weight, corners, fill logic and palette already belong to the same visual system. Each reference must have a shortest side of at least 256 pixels, a longest side of no more than 4,096 pixels and a total resolution of no more than 16 megapixels.

Flexible matching is the default and takes a looser reading of the reference, while precise matching follows its rendering, colour, composition and lighting more closely. For a vector system, use the prompt to define the graphic type, silhouette, object count and layout. For a navigation icon set, use bold rounded outlines, one centred object per image and a two-colour palette. Keep the same reference style and change the named object in each brief, rather than mixing unrelated references to obtain variety.

The generation reference permits prompts up to 10,000 characters, one to six outputs, a random seed, preferred colours and a desired background colour. Negative prompts, curated style names and the older text\_layout control are unsupported. This Styles edition also does not provide image-to-image or inpainting: an image reference supplies a visual language rather than a region to erase or an existing graphic to preserve unchanged. Structural instructions in the positive brief should describe the intended finished asset.

Inspect the SVG at the size where it will be used, especially when the design contains lettering, narrow gaps or small details. Colour matching to a reference is not guaranteed, and unrelated references can compete. For an icon set that becomes repetitive, change the object, pose or arrangement in the prompt while retaining the coherent style. The useful deliverable is a consistent vector asset that can be reshaped and recoloured in a design workflow, with its geometry and legibility evaluated against the brief.

Through Ailoot, select this exact model ID in /v1/images/generations and supply the creative prompt. Retain every returned data entry, whether the response carries a URL or encoded image content, and save the actual bytes with their returned content type. Keep usage and any media task\_id with the asset, then review its shapes, lettering and colour regions in the intended design.

**Ailoot Ultra · Images** `POST /v1/images/generations` `recraft/recraft-v4-styles-vector`

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

Other /`recraft/recraft-v4-styles-vector`

### Overview

Recraft V4 Styles Vector creates editable SVG graphics from a text brief and a required visual style. It suits coordinated icons, logos and illustrations whose line treatment, palette and rendering should follow the same reference 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`

Output format

Image file

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits recraft/recraft-v4-styles-vector Conditions: Use this exact Ailoot routing selector. | Default— |
| Field`prompt` | Type`string` | RequirementRequired | Values & limits Conditions: | Default— |
| Field`n` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 Maximum: 6 Conditions: | Default— |
| Field`aspect_ratio` | Type`string` | RequirementOptional | Values & limits 1:1, 2:1, 1:2, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, auto Conditions: | Default— |
| Field`output_format` | Type`string` | RequirementOptional | Values & limits svg Conditions: | Default— |
| Field`input_references` | Type`array` | RequirementRequired | Values & limits Conditions: | Default— |
| Field`quality` | Type`string` | RequirementOptional | Values & limits auto, low, medium, high, xhigh, max Conditions: | Default— |

Input material combinations

**reference\_guided\_image**

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, prompt, input\_references |
| Parameter`optional` | Contractn, aspect\_ratio, output\_format, quality |
| Parameter`material_types` | Contracttext, image |
| Parameter`conditions` | ContractUse this exact Ailoot routing selector., quality is a common documented control; providers without a quality knob ignore it. No per-model quality improvement is promised. |

Lifecycle: `synchronous_result_then_owned_library`

`GET /v1/media/tasks/{task_id}` · actual returned task\_id or selected library record; operation\_id is a separate identifier

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

| Configuration | Rate schedule | Forecast quantity | Billing unit | Billing conditions | Charge |
| --- | --- | --- | --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Forecast quantity— | Billing unit— | Billing conditions— | 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 |
| ConfigurationInput reference | Rate schedule— | Forecast quantity— | Billing unitper request | Billing conditionsStyle creation when generating with style references; once per request, in addition to the output-image price. | Charge Input · Input reference · Estimate for comparison only **$0.01** per request Reference estimate only; final charge follows the recorded original invoice. |
| Configurationoutput image | Rate schedule— | Forecast quantity— | Billing unitper output image | Billing conditions— | Charge Output · output image · Estimate for comparison only **$0.1** per output image |
| ConfigurationEstimated generation cost | Rate schedule— | Forecast quantityone generation estimate | Billing unit— | Billing conditions— | Charge Output · Estimated generation cost · Estimate for comparison only **$0.1** 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/)

### Example requests

#### Ailoot Ultra · Images

curl · create once and retain the complete result

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
: "${AILOOT_IMAGE_URL:?Set an actual customer material or documented value}"
export AILOOT_IMAGE_URL
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "recraft/recraft-v4-styles-vector", "prompt": "A portrait of an Asian woman with neon green lights in the background, shallow depth of field.", "input_references": [{"type": "image_url", "image_url": {"url": "YOUR_ACCESSIBLE_IMAGE_URL"}}]}')
p['input_references'][0]['image_url']['url']=os.environ['AILOOT_IMAGE_URL']
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
# Submit once. Retain the complete result, original identifiers and every response header.
```

### 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`
- `GET /v1/media/assets/{asset_id}`

##### Keep all completed results

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

Retain the complete response and headers, original identifiers, every actual output and all usage/accounting fields. Save each unique owned asset and retain every role pointing to it.

##### If the original response needs checking

Keep the original X-Client-Request-ID, response and headers. An unknown or result\_pending\_check outcome does not authorize a second creation.

Response fields

| Field | Type |
| --- | --- |
| Field`data[].url` | Typestring |
| Field`data[].b64_json` | Typestring |
| Field`usage` | Typeobject |

Errors and next steps

| Response | Condition | Next step |
| --- | --- | --- |
| Response400 · `invalid_request_error` | ConditionA required field, model selector, type or input representation is invalid. | Next stepInspect the returned validation detail before preparing a separate request. |
| Response`` | ConditionThe original request or result is unknown or requires a check. | Next stepKeep original identifiers and headers; read only supported status/library records. Do not submit creation again. |

### Aliases

#### Model aliases

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

#### Method path aliases

Use the method paths shown above.

#### Related caller IDs

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

FAQ · Recraft: Recraft V4 Styles Vector

What inputs and results are available?

`POST /v1/images/generations` · `recraft/recraft-v4-styles-vector`: `text`, `image` → `image`

Which fields does the request use?

`POST /v1/images/generations` · `recraft/recraft-v4-styles-vector`: `model`, `prompt`, `n`, `aspect_ratio`, `output_format`, `input_references`, `quality`

What limits apply?

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

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.
