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

Krea 3 Text to Image

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

ID โมเดล krea/v3/text-to-image
# 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/text-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"
  }'

# 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.025 25 เครดิต API เรียกใช้ในหน้านี้

รับคีย์ API
Krea ข้อความเป็นภาพ #text-to-image#image-generation#prompt-expansion#krea

Krea 3 text-to-image พร้อมรุ่น berry หรือ jam การขยายพรอมต์ และขนาดสูงสุดประมาณ 4.2 ล้านพิกเซล

Krea · ภาพ

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

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

สร้างคำขอ

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

•จำเป็น 88 / 5000

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

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/text-to-image?wait=20 ใบเสนอราคา → $0.025
# 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/text-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"
  }'

# 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 Text to Image

สร้างภาพจาก `prompt` ที่มีความยาวไม่เกิน 5000 อักขระ `model` เลือก berry (คุณภาพ) หรือ jam (ความเร็ว) และ `reasoning_level` เป็น low หรือ medium `image_size` รองรับพรีเซ็ตหรือ auto โดยปัดเป็นพหุคูณของ 16 สูงสุด 4,220,160 พิกเซล รองรับ `negative_prompt` (เฉพาะ berry), `seed` และ png หรือ jpeg

พารามิเตอร์

ชื่อประเภท ค่าเริ่มต้นค่าที่อนุญาต คำอธิบาย
promptจำเป็น
ประเภทstring
≤ 5,000 อักขระ
คำอธิบายรูปภาพเอาต์พุตที่ต้องการ
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
lowmedium
ระดับความพยายามในการให้เหตุผลควบคุมสมดุลระหว่างความเร็วในการสร้างกับการทำงานที่ harness ใช้ทำความเข้าใจพรอมต์ ยิ่งใช้ความพยายามมากก็ยิ่งใช้เวลานาน
negative_promptไม่บังคับ
ประเภทstring
ค่าเริ่มต้น
≤ 1,024 อักขระ
เนื้อหาที่ต้องการตัดออกจากรูปภาพ อินพุตนี้ใช้ได้เฉพาะ berry
seedไม่บังคับ
ประเภทinteger | null
เลือก seed ของสัญญาณรบกวน latent ใหม่สำหรับการแก้ไขเพิ่มเติมแต่ละครั้งของเอาต์พุตที่สร้างไว้ก่อนหน้า
output_formatไม่บังคับ
ประเภทenum
ค่าเริ่มต้นpng
pngjpeg
รูปแบบของรูปภาพที่ได้
enable_safety_checkerไม่บังคับ
ประเภทboolean
ค่าเริ่มต้นtrue
การคัดกรองเนื้อหาที่ไม่ปลอดภัยสำหรับรูปภาพเอาต์พุต ต้องมีการอนุญาตบัญชีจึงจะปิดใช้ได้
จำเป็น

เอาต์พุต

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "krea/v3/text-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": 25,
    "usd": "0.025",
    "charged": 25,
    "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,
    "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/text-to-image.md. โมเดลและคู่มือทั้งหมด: https://doitong.com/developers/llms.txt