콘텐츠로 건너뛰기

Krea 2 Medium

통합

모델 id krea/v2/medium/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/v2/medium/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.03 30 API 크레딧 이 페이지에서 실행

API 키 받기
Krea 텍스트를 이미지로 참조 입력 #text-to-image#image-generation#style-reference#krea

창의성 수준, 8개 화면 비율, 선택적 스타일 참조, 사전 설정 및 무드보드를 지원하는 텍스트-투-이미지

Krea · 이미지

첫 번째 결과가 여기에 표시됩니다

아래에서 요청을 작성하고 API 키로 실행하세요. 출력은 스토리지에 복사되며, 영구 보관하거나 7일 동안 무료로 보관할 수 있습니다.

요청 만들기

컨트롤은 모델 스키마에서 생성됩니다. 값을 변경하면 코드와 가격이 업데이트됩니다.

•필수 88 / 5000

원하는 이미지 콘텐츠를 지정하는 텍스트입니다.

aspect_ratio 기본값 1:1

출력 이미지의 가로세로 비율입니다.

고급 creativity · seed · enable_safety_checker · image_style_references · styles · moodboards
creativity 기본값 medium

프롬프트 해석의 유연성입니다. 낮은 설정에서는 더 충실하게 따르고, 높은 설정에서는 창의성과 프롬프트에서 벗어날 가능성이 커집니다.

생성 결과를 재현할 수 있게 하는 무작위 시드입니다.

기본값 []

최대 10개의 참조 이미지로 생성 이미지의 스타일을 지정합니다. 이 목록은 선택 사항입니다.

기본값 []

적용할 선택적 LoRA 기반 Krea 스타일 프리셋입니다. 최대 10개까지 지정할 수 있습니다. 각 항목은 Krea 스타일 카탈로그의 `id`로 스타일을 식별합니다.

기본값 []

항목의 UUID `id`로 선택하는 선택적 생성 무드보드입니다. 현재 요청당 무드보드는 하나로 제한됩니다.

POST /run/krea/v2/medium/text-to-image?wait=20 견적 → $0.03
# 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/v2/medium/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 2 Medium 정보

최대 5000자의 텍스트 프롬프트에서 이미지를 생성합니다. `aspect_ratio`는 1:1부터 2.35:1 및 9:16까지 8개 옵션을 제공합니다. `creativity`는 raw부터 high까지이며 결과가 프롬프트를 얼마나 따를지 제어합니다. 최대 10개의 `image_style_references`, 최대 10개의 사전 설정 `styles` 또는 하나의 무드보드로 스타일을 안내하고 `seed`로 결과를 재현할 수 있습니다.

매개변수

이름유형 기본값허용됨 설명
prompt필수
유형string
≤ 5,000자
원하는 이미지 콘텐츠를 지정하는 텍스트입니다.
aspect_ratio선택 사항
유형enum
기본값1:1
1:14:33:216:92.35:14:52:39:16
출력 이미지의 가로세로 비율입니다.
creativity선택 사항
유형enum
기본값medium
rawlowmediumhigh
프롬프트 해석의 유연성입니다. 낮은 설정에서는 더 충실하게 따르고, 높은 설정에서는 창의성과 프롬프트에서 벗어날 가능성이 커집니다.
seed선택 사항
유형integer | null
생성 결과를 재현할 수 있게 하는 무작위 시드입니다.
image_style_references선택 사항
유형object[]
기본값[]
≤ 10개 항목
최대 10개의 참조 이미지로 생성 이미지의 스타일을 지정합니다. 이 목록은 선택 사항입니다.
image_style_references[].image_url필수
유형url · image
공개적으로 접근할 수 있는 참조 이미지 URL입니다.
image_style_references[].strength선택 사항
유형number
기본값1
-2 – 2
참조 이미지가 생성 이미지에 미치는 영향을 설정합니다. 음수 값을 사용하면 결과가 해당 참조에서 멀어지도록 유도합니다.
styles선택 사항
유형object[]
기본값[]
≤ 10개 항목
적용할 선택적 LoRA 기반 Krea 스타일 프리셋입니다. 최대 10개까지 지정할 수 있습니다. 각 항목은 Krea 스타일 카탈로그의 `id`로 스타일을 식별합니다.
styles[].id필수
유형string
Krea 스타일 카탈로그의 식별자로 스타일을 선택합니다. 선택한 프리셋은 LoRA 기반입니다.
styles[].strength선택 사항
유형number
기본값1
-2 – 2
스타일이 생성 이미지에 미치는 영향을 설정합니다. 음수 값을 사용하면 결과가 해당 스타일에서 멀어지도록 유도합니다.
moodboards선택 사항
유형object[]
기본값[]
≤ 1개 항목
항목의 UUID `id`로 선택하는 선택적 생성 무드보드입니다. 현재 요청당 무드보드는 하나로 제한됩니다.
moodboards[].id필수
유형string
Krea 무드보드를 식별하는 UUID입니다.
moodboards[].strength선택 사항
유형number
기본값0.23
0 – 1
무드보드가 이미지 생성에 미치는 영향의 강도입니다.
enable_safety_checker선택 사항
유형boolean
기본값true
호출자에게 권한이 있으면 false로 설정해 검사를 완화할 수 있습니다.
필수

출력

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "krea/v2/medium/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": 30,
    "usd": "0.03",
    "charged": 30,
    "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은 스토리지에 저장된 복사본입니다. 계정 설정 또는 ?storage=에 따라 영구 보관(GB-월 단위 과금)하거나 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/ko/developers/models/krea/v2/medium/text-to-image.md. 모든 모델 및 가이드: https://doitong.com/developers/llms.txt