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

Flux 2 Flex

ஒருங்கிணை

மாடல் id flux-2-flex
# 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/flux-2-flex?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.05 50 API கிரெடிட்கள் இயக்குவதற்கு முன் உங்கள் கோப்புகள் அளவிடப்படும் இந்தப் பக்கத்தில் இயக்குங்கள்

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

சரிசெய்யக்கூடிய படிநிலைகள் மற்றும் வழிகாட்டலுடன், படங்களில் அச்சுக்கலை மற்றும் உரைக்காக வடிவமைக்கப்பட்ட உரையிலிருந்து படம் உருவாக்கி

Black Forest Labs · படம்

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

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

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

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

•தேவை

பட உருவாக்கத்தை வழிநடத்தும் ப்ராம்ப்ட்.

image_size இயல்புநிலை landscape_4_3

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

மேம்பட்டவை safety_tolerance · output_format · guidance_scale · num_inference_steps · seed · enable_safety_checker
safety_tolerance இயல்புநிலை 2

உருவாக்கப்பட்ட படத்தின் பாதுகாப்பு அமைப்பு; 5 இல் அதிகபட்ச அனுமதியும் 1 இல் அதிகபட்சக் கடுமையும் கொண்ட சகிப்புத்தன்மை வரம்பு.

output_format இயல்புநிலை jpeg

விளைவாக வரும் படத்திற்கான கோப்பு வடிவம்.

இயல்புநிலை 3.5

உருவாக்கத்தின்போது பயன்படுத்தப்படும் guidance scale.

இயல்புநிலை 28

இயக்க வேண்டிய inference படிகளின் எண்ணிக்கை.

உருவாக்கத்திற்கான விதை மதிப்பு.

POST /run/flux-2-flex?wait=20 விலை → $0.05
# 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/flux-2-flex?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 விசையைப் பெறுங்கள்

Flux 2 Flex பற்றி

`prompt`-இலிருந்து படங்களை உருவாக்குகிறது; `num_inference_steps` (2 முதல் 50, இயல்புநிலை 28) மற்றும் `guidance_scale` (1.5 முதல் 10, இயல்புநிலை 3.5) மீது நேரடி கட்டுப்பாடு வழங்குகிறது. square_hd, portrait_16_9 மற்றும் landscape_4_3 போன்ற முன்னமைவுகளில் இருந்து அளவுகளைத் தேர்ந்தெடுக்கலாம். வெளியீடு jpeg அல்லது png; முடிவுகளை மீண்டும் உருவாக்க `seed` உதவுகிறது.

அளவுருக்கள்

பெயர்வகை இயல்புநிலைஅனுமதிக்கப்பட்டது விளக்கம்
promptதேவை
வகைstring
பட உருவாக்கத்தை வழிநடத்தும் ப்ராம்ப்ட்.
image_sizeவிருப்பத்தேர்வு
வகைobject
இயல்புநிலைlandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
உருவாக்கப்பட்ட படத்தின் பரிமாணங்கள்.
seedவிருப்பத்தேர்வு
வகைinteger | null
உருவாக்கத்திற்கான விதை மதிப்பு.
safety_toleranceவிருப்பத்தேர்வு
வகைenum
இயல்புநிலை2
12345
உருவாக்கப்பட்ட படத்தின் பாதுகாப்பு அமைப்பு; 5 இல் அதிகபட்ச அனுமதியும் 1 இல் அதிகபட்சக் கடுமையும் கொண்ட சகிப்புத்தன்மை வரம்பு.
enable_safety_checkerவிருப்பத்தேர்வு
வகைboolean
இயல்புநிலைtrue
அங்கீகரிக்கப்பட்ட கணக்குகளுக்கு மட்டுமே off அமைப்பு செயல்படும் பாதுகாப்புச் சரிபார்ப்பு சுவிட்ச். அந்த அங்கீகாரம் இல்லாத அனைத்து கோரிக்கைகளும் பாதுகாப்புச் சரிபார்ப்புக்கு உட்படும்.
output_formatவிருப்பத்தேர்வு
வகைenum
இயல்புநிலைjpeg
jpegpng
விளைவாக வரும் படத்திற்கான கோப்பு வடிவம்.
guidance_scaleவிருப்பத்தேர்வு
வகைnumber
இயல்புநிலை3.5
1.5 – 10
உருவாக்கத்தின்போது பயன்படுத்தப்படும் guidance scale.
num_inference_stepsவிருப்பத்தேர்வு
வகைinteger
இயல்புநிலை28
2 – 50
இயக்க வேண்டிய inference படிகளின் எண்ணிக்கை.
தேவை

வெளியீடு

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-2-flex",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "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,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42
  },
  "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, width, height}மாதிரியால் உருவாக்கப்பட்ட படங்கள்.
seed
integerஉருவாக்கத்தின்போது பயன்படுத்தப்படும் விதை மதிப்பு.

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

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