Skip to content

Recraft V4 Styles Text to Vector

Integrate

Model id recraft/v4/style/text-to-vector
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/recraft/v4/style/text-to-vector?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.055 55 API credits · ≈ ₽5.86 Run it on this page

Get API key
Recraft Text to Image #stylized#transform#editing

Standard V4 vector text generation that applies a saved style ID or inline reference images

Recraft · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required 88 / 10000
image_size default square_hd

Identifier for a previously created V4 custom style.

Advanced images · style_match · enable_safety_checker · colors · background_color
image_urls
Drop a file, or · up to 10

Supply 1–10 style references by URL, using images in PNG, JPG, or WEBP format.

style_match

Override for the degree of adherence to the custom style during generation.

default []

Array containing preferred colors.

Preferred color for the background of generated images.

POST /run/recraft/v4/style/text-to-vector?wait=20 quote → $0.055
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/recraft/v4/style/text-to-vector?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Recraft V4 Styles Text to Vector

Generates vector images in a consistent style from a saved `style_id` or 1 to 10 reference images in `image_urls`. `style_match` can be precise or flexible. Takes a `prompt` up to 10,000 characters, an `image_size` preset, `colors` and `background_color`. Returns the images and the style used.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
promptrequired
Typestring
≤ 10,000 characters
image_sizeoptional
Typeobject
Defaultsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
colorsoptional
Typeobject[]
Default[]
Array containing preferred colors.
colors[].roptional
Typeinteger
Default0
0 – 255
Value of the red component.
colors[].goptional
Typeinteger
Default0
0 – 255
Value of the green component.
colors[].boptional
Typeinteger
Default0
0 – 255
Value of the blue component.
background_coloroptional
Typeobject
Preferred color for the background of generated images.
background_color.roptional
Typeinteger
Default0
0 – 255
Value of the red component.
background_color.goptional
Typeinteger
Default0
0 – 255
Value of the green component.
background_color.boptional
Typeinteger
Default0
0 – 255
Value of the blue component.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Safety-checking switch whose off setting requires account authorization. Without that authorization, every request is checked regardless of the setting; true enables the checker.
style_idoptional
Typestring | null
Identifier for a previously created V4 custom style.
image_urlsoptional images
Typeurl[] · image
≤ 10 items
Supply 1–10 style references by URL, using images in PNG, JPG, or WEBP format.
style_matchoptional
Typeenum
preciseflexible
Override for the degree of adherence to the custom style during generation.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v4/style/text-to-vector",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 55,
    "usd": "0.055",
    "charged": 55,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    ],
    "style_id": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
images
array of object {url, content_type, file_name, file_size}
style_id
string | nullCustom style applied or newly created during this generation.

More models: Text to Image

For AI agents: this page as Markdown is at https://doitong.com/en-GB/developers/models/recraft/v4/style/text-to-vector.md. All models and guides: https://doitong.com/developers/llms.txt