ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Recraft V4.1 Text to Vector

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id recraft/v4.1/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.1/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"

ਇਹ ਬੇਨਤੀ: $0.08 80 API ਕ੍ਰੈਡਿਟ · ≈ ₽8.61 ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Recraft ਟੈਕਸਟ ਤੋਂ ਚਿੱਤਰ #stylized#transform#typography

ਐਡਿਟ ਕੀਤੇ ਜਾ ਸਕਣ ਵਾਲੇ SVG ਲੋਗੋ, ਆਈਕਨ ਅਤੇ ਇਲਸਟ੍ਰੇਸ਼ਨਾਂ ਲਈ ਮਿਆਰੀ V4.1 ਟੈਕਸਟ-ਟੂ-ਵੈਕਟਰ ਮਾਡਲ

Recraft · ਚਿੱਤਰ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ 88 / 10000
image_size ਡਿਫ਼ਾਲਟ square_hd
ਉੱਨਤ enable_safety_checker · colors · background_color
ਡਿਫ਼ਾਲਟ []

ਪਸੰਦੀਦਾ ਰੰਗਾਂ ਵਾਲੀ ਐਰੇ।

ਤਿਆਰ ਕੀਤੇ ਚਿੱਤਰਾਂ ਦੇ ਬੈਕਗ੍ਰਾਊਂਡ ਲਈ ਪਸੰਦੀਦਾ ਰੰਗ।

POST /run/recraft/v4.1/text-to-vector?wait=20 ਕੋਟ → $0.08
# 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.1/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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Recraft V4.1 Text to Vector ਬਾਰੇ

10,000 ਅੱਖਰਾਂ ਤੱਕ ਦੇ `prompt` ਨੂੰ ਸੰਰਚਿਤ ਲੇਅਰਾਂ ਅਤੇ ਸਾਫ਼ ਜਿਓਮੈਟਰੀ ਵਾਲੇ ਐਡਿਟ ਕੀਤੇ ਜਾ ਸਕਣ ਵਾਲੇ SVG ਆਰਟਵਰਕ ਵਿੱਚ ਬਦਲਦਾ ਹੈ, ਜੋ ਲੋਗੋ, ਆਈਕਨ ਅਤੇ ਇਲਸਟ੍ਰੇਸ਼ਨ ਸਿਸਟਮਾਂ ਲਈ ਢੁੱਕਵਾਂ ਹੈ। ਛੇ `image_size` ਪ੍ਰੀਸੈੱਟਾਂ, `colors` ਅਤੇ `background_color` ਨੂੰ ਸਹਾਇਤਾ ਦਿੰਦਾ ਹੈ। ਆਉਟਪੁੱਟ ਨੂੰ Figma ਜਾਂ Illustrator ਵਰਗੇ ਡਿਜ਼ਾਈਨ ਟੂਲਾਂ ਵਿੱਚ ਖੋਲ੍ਹਿਆ ਜਾ ਸਕਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
≤ 10,000 ਅੱਖਰ
image_sizeਵਿਕਲਪਿਕ
ਕਿਸਮobject
ਡਿਫ਼ਾਲਟsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
colorsਵਿਕਲਪਿਕ
ਕਿਸਮobject[]
ਡਿਫ਼ਾਲਟ[]
ਪਸੰਦੀਦਾ ਰੰਗਾਂ ਵਾਲੀ ਐਰੇ।
colors[].rਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ0
0 – 255
ਲਾਲ ਕੰਪੋਨੈਂਟ ਦਾ ਮੁੱਲ।
colors[].gਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ0
0 – 255
ਹਰੇ ਕੰਪੋਨੈਂਟ ਦਾ ਮੁੱਲ।
colors[].bਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ0
0 – 255
ਨੀਲੇ ਕੰਪੋਨੈਂਟ ਦਾ ਮੁੱਲ।
background_colorਵਿਕਲਪਿਕ
ਕਿਸਮobject
ਤਿਆਰ ਕੀਤੇ ਚਿੱਤਰਾਂ ਦੇ ਬੈਕਗ੍ਰਾਊਂਡ ਲਈ ਪਸੰਦੀਦਾ ਰੰਗ।
background_color.rਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ0
0 – 255
ਲਾਲ ਕੰਪੋਨੈਂਟ ਦਾ ਮੁੱਲ।
background_color.gਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ0
0 – 255
ਹਰੇ ਕੰਪੋਨੈਂਟ ਦਾ ਮੁੱਲ।
background_color.bਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ0
0 – 255
ਨੀਲੇ ਕੰਪੋਨੈਂਟ ਦਾ ਮੁੱਲ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਸੁਰੱਖਿਆ ਜਾਂਚ ਸਵਿੱਚ, ਜਿਸ ਦੀ ਬੰਦ ਸੈਟਿੰਗ ਲਈ ਖਾਤਾ ਅਧਿਕਾਰ ਲੋੜੀਂਦਾ ਹੈ। ਇਸ ਅਧਿਕਾਰ ਤੋਂ ਬਿਨਾਂ ਸੈਟਿੰਗ ਦੀ ਪਰਵਾਹ ਕੀਤੇ ਬਿਨਾਂ ਹਰ ਬੇਨਤੀ ਦੀ ਜਾਂਚ ਕੀਤੀ ਜਾਂਦੀ ਹੈ; true ਜਾਂਚਕਰਤਾ ਨੂੰ ਸਮਰੱਥ ਕਰਦਾ ਹੈ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v4.1/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": 80,
    "usd": "0.08",
    "charged": 80,
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
images
array of object {url, content_type, file_name, file_size}

ਹੋਰ ਮਾਡਲ: ਟੈਕਸਟ ਤੋਂ ਚਿੱਤਰ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/recraft/v4.1/text-to-vector.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt