Skip to content

Recraft V4.1 Text to Vector Pro

Integrate

Model id recraft/v4.1/pro/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.com/v1/run/recraft/v4.1/pro/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.30 300 API credits Run it on this page

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

Pro-tier text-to-vector model that outputs editable SVG illustrations, with color and background controls

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
Advanced enable_safety_checker · colors · background_color
default []

Array containing preferred colors.

Preferred color for the background of generated images.

POST /run/recraft/v4.1/pro/text-to-vector?wait=20 quote → $0.30
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/recraft/v4.1/pro/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.com/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.1 Text to Vector Pro

Generates vector graphics as SVG from a text `prompt` of up to 10,000 characters. It suits detailed illustrations and brand artwork that must scale cleanly. Use `image_size` presets from square_hd to landscape_16_9, supply preferred `colors`, and set a `background_color` to steer the palette.

Parameters

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

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v4.1/pro/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": 300,
    "usd": "0.30",
    "charged": 300,
    "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
      }
    ]
  },
  "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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}

More models: Text to Image

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