Neidio i'r cynnwys

Recraft V4 Styles Text to Vector

Integreiddio

ID y model 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"

Y cais hwn: $0.055 55 o gredydau API · ≈ ₽5.92 Ei redeg ar y dudalen hon

Cael allwedd API
Recraft Testun i Ddelwedd #stylized#transform#editing

Cynhyrchu testun fector V4 safonol sy'n cymhwyso ID arddull wedi'i gadw neu ddelweddau cyfeirio mewnol

Recraft · Delwedd

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol 88 / 10000
image_size rhagosodedig square_hd

Dynodwr ar gyfer arddull bersonol V4 a grëwyd eisoes.

Uwch images · style_match · enable_safety_checker · colors · background_color
image_urls
Gollyngwch ffeil, neu · hyd at 10

Darparwch 1–10 cyfeirnod arddull yn ôl URL, gan ddefnyddio delweddau mewn fformat PNG, JPG neu WEBP.

style_match

Diystyru graddfa’r ymlyniad wrth yr arddull bersonol wrth gynhyrchu.

rhagosodedig []

Arae sy’n cynnwys y lliwiau a ffefrir.

Lliw a ffefrir ar gyfer cefndir y delweddau a gynhyrchir.

POST /run/recraft/v4/style/text-to-vector?wait=20 dyfynbris → $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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Recraft V4 Styles Text to Vector

Yn cynhyrchu delweddau fector mewn arddull gyson o `style_id` wedi'i gadw neu 1 i 10 delwedd gyfeirio yn `image_urls`. Gall `style_match` fod yn precise neu flexible. Mae'n derbyn `prompt` hyd at 10,000 o nodau, rhagddodiad `image_size`, `colors` a `background_color`. Yn dychwelyd y delweddau a'r arddull a ddefnyddiwyd.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
≤ 10,000 nod
image_sizedewisol
Mathobject
Rhagosodedigsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
colorsdewisol
Mathobject[]
Rhagosodedig[]
Arae sy’n cynnwys y lliwiau a ffefrir.
colors[].rdewisol
Mathinteger
Rhagosodedig0
0 – 255
Gwerth y gydran goch.
colors[].gdewisol
Mathinteger
Rhagosodedig0
0 – 255
Gwerth y gydran werdd.
colors[].bdewisol
Mathinteger
Rhagosodedig0
0 – 255
Gwerth y gydran las.
background_colordewisol
Mathobject
Lliw a ffefrir ar gyfer cefndir y delweddau a gynhyrchir.
background_color.rdewisol
Mathinteger
Rhagosodedig0
0 – 255
Gwerth y gydran goch.
background_color.gdewisol
Mathinteger
Rhagosodedig0
0 – 255
Gwerth y gydran werdd.
background_color.bdewisol
Mathinteger
Rhagosodedig0
0 – 255
Gwerth y gydran las.
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigtrue
Switsh gwirio diogelwch y mae ei osodiad diffodd yn gofyn am awdurdodiad cyfrif. Heb yr awdurdodiad hwnnw, caiff pob cais ei wirio waeth beth fo'r gosodiad; mae true yn galluogi'r gwiriwr.
style_iddewisol
Mathstring | null
Dynodwr ar gyfer arddull bersonol V4 a grëwyd eisoes.
image_urlsdewisol images
Mathurl[] · image
≤ 10 eitem
Darparwch 1–10 cyfeirnod arddull yn ôl URL, gan ddefnyddio delweddau mewn fformat PNG, JPG neu WEBP.
style_matchdewisol
Mathenum
preciseflexible
Diystyru graddfa’r ymlyniad wrth yr arddull bersonol wrth gynhyrchu.
gofynnol Enw canonaidd, derbyniol hefyd

Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau

Allbwn

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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
images
array of object {url, content_type, file_name, file_size}
style_id
string | nullArddull bersonol a gymhwysir neu a grëir o’r newydd yn ystod y cynhyrchiad hwn.

Mwy o fodelau: Testun i Ddelwedd

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/recraft/v4/style/text-to-vector.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt