models

Recraft: Recraft V4 Styles Vector

Markdown · JSON

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.

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

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
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
recraft/recraft-v4-styles-vector
Conditions: Use this exact Ailoot routing selector.
Default—
FieldpromptTypestringRequirementRequiredValues & limits
Conditions:
Default—
FieldnTypeintegerRequirementOptionalValues & limits
Minimum: 1
Maximum: 6
Conditions:
Default—
Fieldaspect_ratioTypestringRequirementOptionalValues & 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—
Fieldoutput_formatTypestringRequirementOptionalValues & limits
svg
Conditions:
Default—
Fieldinput_referencesTypearrayRequirementRequiredValues & limits
Conditions:
Default—
FieldqualityTypestringRequirementOptionalValues & limits
auto, low, medium, high, xhigh, max
Conditions:
Default—
Input material combinations

reference_guided_image

Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, prompt, input_references
ParameteroptionalContractn, aspect_ratio, output_format, quality
Parametermaterial_typesContracttext, image
ParameterconditionsContractUse 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.

ConfigurationRate scheduleForecast quantityBilling unitBilling conditionsCharge
ConfigurationBase token ratesRate scheduleBase rateForecast 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 referenceRate schedule—Forecast quantity—Billing unitper requestBilling 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 imageRate schedule—Forecast quantity—Billing unitper output imageBilling conditions—Charge
Output · output image · Estimate for comparison only $0.1 per output image
ConfigurationEstimated generation costRate schedule—Forecast quantityone generation estimateBilling 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 →

Example requests

Ailoot Ultra · Images

curl · create once and retain the complete result
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
FieldType
Fielddata[].urlTypestring
Fielddata[].b64_jsonTypestring
FieldusageTypeobject
Errors and next steps
ResponseConditionNext step
Response400 · invalid_request_errorConditionA required field, model selector, type or input representation is invalid.Next stepInspect the returned validation detail before preparing a separate request.
ResponseConditionThe 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

Method path aliases

Use the method paths shown above.

Related caller IDs

recraft/recraft-v4-styles-vector

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

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