Lumaktaw sa nilalaman

Recraft V3 · Image to Image

I-integrate

ID ng modelo recraft/v3/image-to-image
# 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/v3/image-to-image?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

Kahilingang ito: $0.04 40 kredito ng API · ≈ ₽4.30 Patakbuhin ito sa page na ito

Kumuha ng API key
Recraft Pag-edit ng Larawan #vector#typography#style

Recraft V3 image-to-image edit na may strength control, 85 style option at color preference

Recraft · Larawan

Dito mapupunta ang iyong unang resulta

Bumuo ng kahilingan sa ibaba at patakbuhin ito gamit ang iyong API key. Kinokopya ang mga output sa aming storage, na pinananatili nang walang hanggan o 7 araw nang libre.

Bumuo ng kahilingan

Ang mga control ay binubuo mula sa schema ng modelo. Nagbabago ang code at presyo habang ina-adjust mo ang mga ito.

•kinakailangan 88 / 1000

Text na tumutukoy kung aling mga bahagi ang dapat baguhin.

•kinakailangan image_url
Mag-drop ng file, o

Larawan URL para sa pagbabago; dapat mas mababa sa 4096 pixels ang bawat dimensyon ng ibinigay na larawan. Dapat mas mababa rin sa 16 MP ang resolution nito at mas mababa sa 5 MB ang file size.

default na realistic_image

Visual style na inilalapat sa mga nabuong larawan.

advanced negative_prompt · style_id · strength · enable_safety_checker · colors
0 / 1000

Text na tumutukoy sa mga elementong hindi dapat lumitaw sa larawan.

Opsyonal na identifier para sa custom style reference.

default na 0.5

Antas ng pagbabago mula sa source, mula 0 hanggang 1. Sa 1, kaunti ang pagkakahawig ng resulta sa orihinal; sa 0, halos magkapareho ito.

default na []

Array na naglalaman ng mga gustong kulay.

POST /run/recraft/v3/image-to-image?wait=20 presyo → $0.04
# 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/v3/image-to-image?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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"

Patakbuhin ang kahilingang ito

Nananatili ang iyong key sa browser na ito: ipinapadala lamang ito sa Doitong API at sine-save (localStorage) lamang kung pipiliin mo ang Tandaan. Kumuha ng API key

Tungkol sa Recraft V3 · Image to Image

Binabago ang larawang nasa `image_url` ayon sa `prompt` na hanggang 1000 character. Kinokontrol ng `strength` na 0 hanggang 1 kung gaano kalayo ang resulta sa orihinal. Dapat mas mababa sa 5 MB, mas mababa sa 16 MP at walang side na higit sa 4096 pixel ang input. Pumili ng `style`, magbigay ng `colors` o `style_id`, at ibukod ang mga hindi gustong elemento gamit ang `negative_prompt`.

Mga parameter

Ipadala ang canonical na pangalan o ang native na pangalan, hindi pareho. Mga canonical na pangalan

PangalanUri defaultPinapayagan Paglalarawan
promptkinakailangan
Uristring
≤ 1,000 character
Text na tumutukoy kung aling mga bahagi ang dapat baguhin.
image_urlkinakailangan image
Uriurl · image
Larawan URL para sa pagbabago; dapat mas mababa sa 4096 pixels ang bawat dimensyon ng ibinigay na larawan. Dapat mas mababa rin sa 16 MP ang resolution nito at mas mababa sa 5 MB ang file size.
strengthopsyonal
Urinumber
default0.5
0 – 1
Antas ng pagbabago mula sa source, mula 0 hanggang 1. Sa 1, kaunti ang pagkakahawig ng resulta sa orihinal; sa 0, halos magkapareho ito.
styleopsyonal
Urienum
defaultrealistic_image
anyrealistic_imagedigital_illustrationvector_illustrationrealistic_image/b_and_wrealistic_image/hard_flashrealistic_image/hdrrealistic_image/natural_lightrealistic_image/studio_portraitrealistic_image/enterpriserealistic_image/motion_blurrealistic_image/evening_lightrealistic_image/faded_nostalgiarealistic_image/forest_liferealistic_image/mystic_naturalismrealistic_image/natural_tones
+69 parealistic_image/organic_calmrealistic_image/real_life_glowrealistic_image/retro_realismrealistic_image/retro_snapshotrealistic_image/urban_dramarealistic_image/village_realismrealistic_image/warm_folkdigital_illustration/pixel_artdigital_illustration/hand_drawndigital_illustration/graindigital_illustration/infantile_sketchdigital_illustration/2d_art_posterdigital_illustration/handmade_3ddigital_illustration/hand_drawn_outlinedigital_illustration/engraving_colordigital_illustration/2d_art_poster_2digital_illustration/antiquariandigital_illustration/bold_fantasydigital_illustration/child_bookdigital_illustration/child_booksdigital_illustration/coverdigital_illustration/crosshatchdigital_illustration/digital_engravingdigital_illustration/expressionismdigital_illustration/freehand_detailsdigital_illustration/grain_20digital_illustration/graphic_intensitydigital_illustration/hard_comicsdigital_illustration/long_shadowdigital_illustration/modern_folkdigital_illustration/multicolordigital_illustration/neon_calmdigital_illustration/noirdigital_illustration/nostalgic_pasteldigital_illustration/outline_detailsdigital_illustration/pastel_gradientdigital_illustration/pastel_sketchdigital_illustration/pop_artdigital_illustration/pop_renaissancedigital_illustration/street_artdigital_illustration/tablet_sketchdigital_illustration/urban_glowdigital_illustration/urban_sketchingdigital_illustration/vanilla_dreamsdigital_illustration/young_adult_bookdigital_illustration/young_adult_book_2vector_illustration/bold_strokevector_illustration/chemistryvector_illustration/colored_stencilvector_illustration/contour_pop_artvector_illustration/cosmicsvector_illustration/cutoutvector_illustration/depressivevector_illustration/editorialvector_illustration/emotional_flatvector_illustration/infographicalvector_illustration/marker_outlinevector_illustration/mosaicvector_illustration/naivectorvector_illustration/roundish_flatvector_illustration/segmented_colorsvector_illustration/sharp_contrastvector_illustration/thinvector_illustration/vector_photovector_illustration/vivid_shapesvector_illustration/engravingvector_illustration/line_artvector_illustration/line_circuitvector_illustration/linocut
Visual style na inilalapat sa mga nabuong larawan.
colorsopsyonal
Uriobject[]
default[]
Array na naglalaman ng mga gustong kulay.
colors[].ropsyonal
Uriinteger
default0
0 – 255
Value ng red component.
colors[].gopsyonal
Uriinteger
default0
0 – 255
Value ng green component.
colors[].bopsyonal
Uriinteger
default0
0 – 255
Value ng blue component.
style_idopsyonal
Uristring | null
Opsyonal na identifier para sa custom style reference.
negative_promptopsyonal
Uristring | null
≤ 1,000 character
Text na tumutukoy sa mga elementong hindi dapat lumitaw sa larawan.
enable_safety_checkeropsyonal
Uriboolean
defaulttrue
Maaaring luwagan ang screening sa pamamagitan ng pagtatakda ng false, kung awtorisado ang tumatawag.
kinakailangan Canonical na pangalan, tinatanggap din

Tumatanggap ang mga parameter ng file ng pampublikong https:// URL, data: URI na hanggang 10 MB, o file_url ng isang upload. Mga file

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v3/image-to-image",
  "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": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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"
  }
}
Ikaw ang pumipili para sa iyong mga fileAng bawat outputs[].url ay kopya sa aming storage: pinananatili nang walang hanggan (sinisingil bawat GB-month) o 7 araw nang libre, ayon sa setting ng iyong account o ?storage=.
Parehong shape sa bawat modelotype, url, content_type, width, height at duration, para sa mga larawan, video at audio. Ang output ay sariling result object ng modelo.
Mga field ng output
images
array of object {url, content_type, file_name, file_size}Mga larawang ginawa ng modelo.

Higit pang modelo: Pag-edit ng Larawan

Para sa mga AI agent: nasa Markdown ang pahinang ito sa https://doitong.com/fil/developers/models/recraft/v3/image-to-image.md. Lahat ng modelo at gabay: https://doitong.com/developers/llms.txt