உள்ளடக்கத்திற்குச் செல்க

Recraft V4 (Vector)

ஒருங்கிணை

மாடல் id recraft/v4/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/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"

இந்தக் கோரிக்கை: $0.08 80 API கிரெடிட்கள் இந்தப் பக்கத்தில் இயக்குங்கள்

API விசையைப் பெறுக

உரைப் ப்ராம்ப்டிலிருந்து SVG வெளியீட்டைத் திருப்பி வழங்கும் அடிப்படை Recraft V4 உரையிலிருந்து வெக்டர் மாதிரி

Recraft · படம்

உங்கள் முதல் முடிவு இங்கே வரும்

கீழே ஒரு கோரிக்கையை உருவாக்கி, உங்கள் API விசையுடன் இயக்குங்கள். வெளியீடுகள் எங்கள் சேமிப்பகத்தில் நகலெடுக்கப்பட்டு, நிரந்தரமாக அல்லது இலவசமாக 7 நாட்கள் வைக்கப்படும்.

கோரிக்கையை உருவாக்கு

மாடல் ஸ்கீமாவிலிருந்து கட்டுப்பாடுகள் உருவாக்கப்படுகின்றன. அவற்றை மாற்றும்போது குறியீடும் விலையும் புதுப்பிக்கப்படும்.

•தேவை 88 / 10000
image_size இயல்புநிலை square_hd
மேம்பட்டவை enable_safety_checker · colors · background_color
இயல்புநிலை []

விரும்பிய வண்ணங்களைக் கொண்ட array.

உருவாக்கப்பட்ட படங்களின் பின்னணிக்கான விரும்பிய வண்ணம்.

POST /run/recraft/v4/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.com/v1/run/recraft/v4/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"

இந்தக் கோரிக்கையை இயக்கு

உங்கள் key இந்த உலாவியில் மட்டுமே இருக்கும்: அது Doitong API-க்கு மட்டும் அனுப்பப்படும்; Remember-ஐத் தேர்ந்தெடுத்தால் மட்டுமே (localStorage)-ல் சேமிக்கப்படும். API விசையைப் பெறுங்கள்

Recraft V4 (Vector) பற்றி

`prompt` மூலம் அதிகபட்சம் 10,000 எழுத்துகளைப் பயன்படுத்தி, நிலையான V4 மாதிரியுடன் வெக்டர் படங்களை உருவாக்குகிறது. `image_size` முன்னமைவு, விருப்பமான `colors` மற்றும் `background_color` ஆகியவற்றை அமைக்கலாம். பிராண்டை மையமாகக் கொண்ட விளக்கப்படங்கள் மற்றும் கிராஃபிக்ஸ் பணிகளுக்கு ஏற்றது. படங்களின் பட்டியலை வழங்குகிறது.

அளவுருக்கள்

பெயர்வகை இயல்புநிலைஅனுமதிக்கப்பட்டது விளக்கம்
promptதேவை
வகைstring
≤ 10,000 எழுத்துகள்
image_sizeவிருப்பத்தேர்வு
வகைobject
இயல்புநிலைsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
colorsவிருப்பத்தேர்வு
வகைobject[]
இயல்புநிலை[]
விரும்பிய வண்ணங்களைக் கொண்ட array.
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/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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
உங்கள் கோப்புகள், உங்கள் தேர்வுஒவ்வொரு outputs[].url-ம் எங்கள் சேமிப்பகத்தில் உள்ள ஒரு நகல்: நிரந்தரமாக (GB-மாதத்திற்கு கட்டணம்) அல்லது உங்கள் கணக்கு அமைப்பு அல்லது ?storage= மூலம் இலவசமாக 7 நாட்கள் வைக்கப்படும்.
ஒவ்வொரு மாடலிலும் ஒரே வடிவம்படங்கள், வீடியோ மற்றும் ஆடியோ ஆகிய அனைத்திற்குமான type, url, content_type, width, height மற்றும் duration. output என்பது மாதிரியின் சொந்த முடிவு பொருளாகும்.
வெளியீட்டின் புலங்கள்
images
array of object {url, content_type, file_name, file_size}

மேலும் மாதிரிகள்: உரையிலிருந்து படத்திற்கு

AI ஏஜெண்டுகளுக்கு: இந்தப் பக்கம் Markdown வடிவில் இங்கே உள்ளது https://doitong.com/ta/developers/models/recraft/v4/text-to-vector.md. அனைத்து மாடல்களும் வழிகாட்டிகளும்: https://doitong.com/developers/llms.txt