Peke ki ngā ihirangi

Recraft V4 Styles Pro Text to Vector

Whakauru

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

Tēnei tono: $ 0.125 125 whiwhinga API · ≈ ₽ 13.32 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Recraft Kuputuhi ki te Atahanga #stylized#transform#editing

Whakaputanga ahunga Pro V4 e pupuri ana i tētahi kāhua ritenga ōrite mai i te ID kāhua, i ngā atahanga tohutoro rānei

Recraft · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana 88 / 10000
image_size taunoa square_hd

Pūtautuhi mō tētahi āhua ritenga V4 i hangaia i mua.

Arā atu images · style_match · enable_safety_checker · colors · background_color
image_urls
Whakataka he kōnae, · tae atu ki 10

Tukua kia 1–10 ngā tohutoro āhua mā te URL, mā ngā atahanga PNG, JPG, WEBP rānei.

style_match

Te whakakapi i te ōrite ki te āhua ritenga i te wā whakaputa.

taunoa []

Huānga kei roto ngā tae e manakohia ana.

Tae e manakohia ana mō te papamuri o ngā atahanga ka whakaputaina.

POST /run/recraft/v4/style/pro/text-to-vector?wait=20 utu → $ 0.125
# 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/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Recraft V4 Styles Pro Text to Vector

Ka whakaputa atahanga ahunga ki tētahi kāhua ōrite, ka arahina e te `style_id` kua tiakina, e te 1 ki te 10 atahanga tohutoro rānei i `image_urls`. Ka whakaae `style_match` ki precise, flexible rānei. Ko ērā atu tāuru he `prompt` tae atu ki te 10,000 pūāhua, `image_size`, `colors` me `background_color`. Ka whakahoki i ngā atahanga me te kāhua i whakamahia.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
≤ 10,000 pūāhua
image_sizekōwhiringa
Momoobject
Taunoasquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
colorskōwhiringa
Momoobject[]
Taunoa[]
Huānga kei roto ngā tae e manakohia ana.
colors[].rkōwhiringa
Momointeger
Taunoa0
0 – 255
Te uara o te wāhanga whero.
colors[].gkōwhiringa
Momointeger
Taunoa0
0 – 255
Te uara o te wāhanga kākāriki.
colors[].bkōwhiringa
Momointeger
Taunoa0
0 – 255
Te uara o te wāhanga kikorangi.
background_colorkōwhiringa
Momoobject
Tae e manakohia ana mō te papamuri o ngā atahanga ka whakaputaina.
background_color.rkōwhiringa
Momointeger
Taunoa0
0 – 255
Te uara o te wāhanga whero.
background_color.gkōwhiringa
Momointeger
Taunoa0
0 – 255
Te uara o te wāhanga kākāriki.
background_color.bkōwhiringa
Momointeger
Taunoa0
0 – 255
Te uara o te wāhanga kikorangi.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Whakakā/whakaweto tirotiro haumaru, me whakamana pūkete te tautuhinga whakaweto. Ki te kore taua whakamana, ka tirohia ia tono ahakoa te tautuhinga; mā true e whakakā te kaitirotiro.
style_idkōwhiringa
Momostring | null
Pūtautuhi mō tētahi āhua ritenga V4 i hangaia i mua.
image_urlskōwhiringa images
Momourl[] · image
≤ 10 tūemi
Tukua kia 1–10 ngā tohutoro āhua mā te URL, mā ngā atahanga PNG, JPG, WEBP rānei.
style_matchkōwhiringa
Momoenum
preciseflexible
Te whakakapi i te ōrite ki te āhua ritenga i te wā whakaputa.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v4/style/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": 125,
    "usd": "0.125",
    "charged": 125,
    "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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
images
array of object {url, content_type, file_name, file_size}
style_id
string | nullTe āhua ritenga ka whakamahia, ka hangaia hou rānei i tēnei whakaputanga.

Ētahi atu tauira: Kuputuhi ki te Atahanga

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/recraft/v4/style/pro/text-to-vector.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt