ข้ามไปยังเนื้อหา

Krea 3 Edit

ผสานการทำงาน

ID โมเดล krea/v3/edit
# 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/krea/v3/edit?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",
    "images": [
      "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

คำขอนี้: ≈$0.026 26 เครดิต API เรียกใช้ในหน้านี้

รับคีย์ API
Krea แก้ไขภาพ #image-editing#multi-reference#image-to-image#krea

การแก้ไขภาพด้วย Krea 3 สำหรับแก้ไขหรือรวมภาพอ้างอิง 1 ถึง 8 ภาพจากคำสั่งข้อความ

Krea · ภาพ

ผลลัพธ์แรกของคุณจะแสดงที่นี่

สร้างคำขอด้านล่างและเรียกใช้ด้วยคีย์ API ของคุณ เอาต์พุตจะถูกคัดลอกไปยังพื้นที่จัดเก็บของเรา และเก็บไว้ตลอดไปหรือฟรี 7 วัน

สร้างคำขอ

ตัวควบคุมสร้างจากสคีมาของโมเดล โค้ดและราคาจะอัปเดตเมื่อคุณเปลี่ยนค่า

•จำเป็น 88 / 5000

คำอธิบายรูปภาพเอาต์พุตที่ต้องการ

•จำเป็น image_urls
วางไฟล์ หรือ · สูงสุด 8

ชุดรูปภาพเรียงลำดับจำนวน 1–8 รูปสำหรับแก้ไขหรือรวม โดยตำแหน่งจะกำหนดแท็ก <image-N>

image_size ค่าเริ่มต้น auto

ขนาดเอาต์พุต หรือ `auto` เพื่อให้ตัวขยายพรอมต์เลือกสัดส่วนประมาณ 2048×2048 ขนาดจะปัดขึ้นเป็นพหุคูณของ 16 โดยมีขีดจำกัดรวม 4,220,160 พิกเซล (1680×2512)

ขั้นสูง negative_prompt · model · reasoning_level · output_format · seed · enable_safety_checker
0 / 1024

เนื้อหาที่ต้องการตัดออกจากรูปภาพ อินพุตนี้ใช้ได้เฉพาะ berry

model ค่าเริ่มต้น berry

การเลือกตัวแปรของโมเดล: berry ให้ความสำคัญกับคุณภาพ ส่วน jam ให้ความสำคัญกับความเร็ว

reasoning_level ค่าเริ่มต้น medium

ระดับความพยายามในการให้เหตุผลของงานแก้ไขสำหรับ harness โดยค่าที่สูงขึ้นจะใช้เวลาสร้างนานขึ้นเพื่อการให้เหตุผลที่มากขึ้น

output_format ค่าเริ่มต้น png

รูปแบบของรูปภาพที่ได้

เลือก seed ของสัญญาณรบกวน latent ใหม่สำหรับการแก้ไขเพิ่มเติมแต่ละครั้งของเอาต์พุตที่สร้างไว้ก่อนหน้า

POST /run/krea/v3/edit?wait=20 ใบเสนอราคา → $0.026
# 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/krea/v3/edit?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",
    "images": [
      "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

เรียกใช้คำขอนี้

คีย์ของคุณจะอยู่ในเบราว์เซอร์นี้ โดยส่งไปยัง Doitong API เท่านั้น และจะบันทึกใน localStorage ก็ต่อเมื่อคุณเลือกจดจำ รับคีย์ API

เกี่ยวกับ Krea 3 Edit

แก้ไขหรือรวมภาพ 1 ถึง 8 ภาพที่ระบุใน `image_urls` โดยใช้ `prompt` ที่มีความยาวไม่เกิน 5000 อักขระ `model` เลือก berry (คุณภาพ) หรือ jam (ความเร็ว) `reasoning_level` อยู่ในช่วง low ถึง ultra และ `image_size` รองรับพรีเซ็ตหรือ auto สูงสุด 4,220,160 พิกเซล `negative_prompt` ใช้ได้เฉพาะ berry

พารามิเตอร์

ส่งชื่อมาตรฐานหรือชื่อดั้งเดิมอย่างใดอย่างหนึ่งเท่านั้น ห้ามส่งทั้งสองชื่อ ชื่อมาตรฐาน

ชื่อประเภท ค่าเริ่มต้นค่าที่อนุญาต คำอธิบาย
promptจำเป็น
ประเภทstring
≤ 5,000 อักขระ
คำอธิบายรูปภาพเอาต์พุตที่ต้องการ
image_urlsจำเป็น images
ประเภทurl[] · image
≤ 8 รายการ
ชุดรูปภาพเรียงลำดับจำนวน 1–8 รูปสำหรับแก้ไขหรือรวม โดยตำแหน่งจะกำหนดแท็ก <image-N>
modelไม่บังคับ
ประเภทenum
ค่าเริ่มต้นberry
berryjam
การเลือกตัวแปรของโมเดล: berry ให้ความสำคัญกับคุณภาพ ส่วน jam ให้ความสำคัญกับความเร็ว
image_sizeไม่บังคับ
ประเภทobject
ค่าเริ่มต้นauto
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9auto
ขนาดเอาต์พุต หรือ `auto` เพื่อให้ตัวขยายพรอมต์เลือกสัดส่วนประมาณ 2048×2048 ขนาดจะปัดขึ้นเป็นพหุคูณของ 16 โดยมีขีดจำกัดรวม 4,220,160 พิกเซล (1680×2512)
reasoning_levelไม่บังคับ
ประเภทenum
ค่าเริ่มต้นmedium
lowmediumhighultra
ระดับความพยายามในการให้เหตุผลของงานแก้ไขสำหรับ harness โดยค่าที่สูงขึ้นจะใช้เวลาสร้างนานขึ้นเพื่อการให้เหตุผลที่มากขึ้น
negative_promptไม่บังคับ
ประเภทstring
ค่าเริ่มต้น
≤ 1,024 อักขระ
เนื้อหาที่ต้องการตัดออกจากรูปภาพ อินพุตนี้ใช้ได้เฉพาะ berry
seedไม่บังคับ
ประเภทinteger | null
เลือก seed ของสัญญาณรบกวน latent ใหม่สำหรับการแก้ไขเพิ่มเติมแต่ละครั้งของเอาต์พุตที่สร้างไว้ก่อนหน้า
output_formatไม่บังคับ
ประเภทenum
ค่าเริ่มต้นpng
pngjpeg
รูปแบบของรูปภาพที่ได้
enable_safety_checkerไม่บังคับ
ประเภทboolean
ค่าเริ่มต้นtrue
การคัดกรองเนื้อหาที่ไม่ปลอดภัยสำหรับรูปภาพเอาต์พุต ต้องมีการอนุญาตบัญชีจึงจะปิดใช้ได้
จำเป็น ชื่อมาตรฐาน ซึ่งรองรับเช่นกัน

พารามิเตอร์ไฟล์รับ URL https:// สาธารณะ, data: URI ขนาดไม่เกิน 10 MB หรือ file_url ของไฟล์ที่อัปโหลด ไฟล์

เอาต์พุต

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "krea/v3/edit",
  "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": 26,
    "usd": "0.026",
    "charged": 26,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_urls": [
      "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,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42,
    "prompt": "string",
    "timings": {},
    "has_nsfw_concepts": [
      false
    ]
  },
  "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-เดือน) หรือฟรี 7 วัน โดยกำหนดได้ในการตั้งค่าบัญชีหรือ ?storage=
รูปแบบเดียวกันในทุกโมเดลtype, url, content_type, width, height และ duration สำหรับภาพ วิดีโอ และเสียงเหมือนกันทั้งหมด ส่วน output คือออบเจ็กต์ผลลัพธ์ของโมเดลเอง
ฟิลด์ของเอาต์พุต
images
array of object {url, content_type, file_name, file_size, width, height}รูปภาพที่สร้างขึ้น
seed
integerSeed ที่ใช้สร้างสัญญาณรบกวน latent ระหว่างการสร้าง
prompt
stringพรอมต์ที่ขยายแล้วซึ่งใช้สร้างเอาต์พุต
timings
objectระยะเวลาการสร้างแยกตามแต่ละขั้นตอนในหน่วยวินาที รวมเวลาสุ่มตัวอย่างบน GPU ทั้งหมดภายใต้ `inference`
has_nsfw_concepts
array of booleanการประเมินความปลอดภัยแยกตามรูปภาพ

โมเดลเพิ่มเติม: แก้ไขภาพ

สำหรับเอเจนต์ AI: หน้า Markdown นี้อยู่ที่ https://doitong.com/th/developers/models/krea/v3/edit.md. โมเดลและคู่มือทั้งหมด: https://doitong.com/developers/llms.txt