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

Recraft 20b

ஒருங்கிணை

மாடல் id recraft-20b
# 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-20b?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.022 22 API கிரெடிட்கள் இந்தப் பக்கத்தில் இயக்குங்கள்

API விசையைப் பெறுக
Recraft உரையிலிருந்து படத்திற்கு #image-generation#vector-art#typograph#style

வெக்டர் மற்றும் டிஜிட்டல் விளக்கப்படம் உள்ளிட்ட பல தேர்ந்தெடுக்கக்கூடிய பாணிகளையும் வண்ணக் குறிப்புகளையும் கொண்ட உரையிலிருந்து பட உருவாக்கும் மாதிரி

Recraft · படம்

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

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

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

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

•தேவை 88 / 1000
image_size இயல்புநிலை square_hd
இயல்புநிலை realistic_image

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

மேம்பட்டவை style_id · enable_safety_checker · colors

தனிப்பயன் பாணிக் குறிப்புக்கான விருப்ப அடையாளங்காட்டி.

இயல்புநிலை []

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

POST /run/recraft-20b?wait=20 விலை → $0.022
# 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-20b?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 20b பற்றி

`style` அளவுருவில் யதார்த்தப் படம், டிஜிட்டல் விளக்கப்படம் மற்றும் வெக்டர் விளக்கப்படம் ஆகியவற்றுக்கான நீண்ட விருப்பப் பட்டியல் உள்ளது; `style_id` தனிப்பயன் பாணியைக் குறிப்பிடுகிறது. அதிகபட்சம் 1000 எழுத்துகள் கொண்ட ப்ராம்ப்டிலிருந்து படங்களை உருவாக்குகிறது. விருப்பமான வண்ணங்களை `colors` வரிசை பரிந்துரைக்கிறது, மேலும் `image_size` சதுரம், போர்ட்ரெய்ட் மற்றும் லேண்ட்ஸ்கேப் முன்னமைவுகளை வழங்குகிறது.

அளவுருக்கள்

பெயர்வகை இயல்புநிலைஅனுமதிக்கப்பட்டது விளக்கம்
promptதேவை
வகைstring
≤ 1,000 எழுத்துகள்
image_sizeவிருப்பத்தேர்வு
வகைobject
இயல்புநிலைsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
styleவிருப்பத்தேர்வு
வகைenum
இயல்புநிலைrealistic_image
anyrealistic_imagedigital_illustrationvector_illustrationrealistic_image/b_and_wrealistic_image/enterpriserealistic_image/hard_flashrealistic_image/hdrrealistic_image/motion_blurrealistic_image/natural_lightrealistic_image/studio_portraitdigital_illustration/2d_art_posterdigital_illustration/2d_art_poster_2digital_illustration/3ddigital_illustration/80sdigital_illustration/engraving_color
+21 மேலும்digital_illustration/glowdigital_illustration/graindigital_illustration/hand_drawndigital_illustration/hand_drawn_outlinedigital_illustration/handmade_3ddigital_illustration/infantile_sketchdigital_illustration/kawaiidigital_illustration/pixel_artdigital_illustration/psychedelicdigital_illustration/seamlessdigital_illustration/voxeldigital_illustration/watercolorvector_illustration/cartoonvector_illustration/doodle_line_artvector_illustration/engravingvector_illustration/flat_2vector_illustration/kawaiivector_illustration/line_artvector_illustration/line_circuitvector_illustration/linocutvector_illustration/seamless
உருவாக்கப்பட்ட படங்களுக்கு பயன்படுத்தப்படும் காட்சிப் பாணி.
colorsவிருப்பத்தேர்வு
வகைobject[]
இயல்புநிலை[]
விரும்பிய வண்ணங்களைக் கொண்ட array.
colors[].rவிருப்பத்தேர்வு
வகைinteger
இயல்புநிலை0
0 – 255
சிவப்பு கூறின் மதிப்பு.
colors[].gவிருப்பத்தேர்வு
வகைinteger
இயல்புநிலை0
0 – 255
பச்சை கூறின் மதிப்பு.
colors[].bவிருப்பத்தேர்வு
வகைinteger
இயல்புநிலை0
0 – 255
நீல கூறின் மதிப்பு.
style_idவிருப்பத்தேர்வு
வகைstring | null
தனிப்பயன் பாணிக் குறிப்புக்கான விருப்ப அடையாளங்காட்டி.
enable_safety_checkerவிருப்பத்தேர்வு
வகைboolean
இயல்புநிலைfalse
பாதுகாப்புச் சரிபார்ப்பு மாற்றி; முடக்கப்பட்ட அமைப்பைப் பயன்படுத்த கணக்கு அங்கீகாரம் தேவை. அந்த அங்கீகாரம் இல்லாமல், அமைப்பைப் பொருட்படுத்தாமல் ஒவ்வொரு கோரிக்கையும் சரிபார்க்கப்படும்; true சரிபார்ப்பை இயக்குகிறது.
தேவை

வெளியீடு

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft-20b",
  "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": 22,
    "usd": "0.022",
    "charged": 22,
    "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-20b.md. அனைத்து மாடல்களும் வழிகாட்டிகளும்: https://doitong.com/developers/llms.txt