콘텐츠로 건너뛰기

Fooocus Image Prompt

통합

모델 id fooocus/image-prompt
# 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/fooocus/image-prompt?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_prompt_1": {
      "image_url": "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.085 85 API 크레딧 이 페이지에서 실행

API 키 받기
Open model 텍스트를 이미지로 #stylized

최대 4개의 이미지 프롬프트로 구동되며 인페인트와 업스케일 옵션도 제공하는 Fooocus 변형

Open model · 이미지

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

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

요청 만들기

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

기본값

생성하려는 이미지를 최대한 자세히 설명하세요. 최상의 결과를 얻는 데 도움이 됩니다.

기본값 1024x1024

프리셋에서 선택하거나 사용자 지정 너비와 높이로 지정하는 출력 이미지 크기입니다. 사용자 지정 두 치수는 모두 8로 나누어떨어져야 합니다.

num_images 기본값 1

요청마다 생성할 이미지 수입니다.

•필수
고급 negative_prompt · inpaint_additional_prompt · inpaint_image_url · mask_image_url · uov_image_url · performance · output_format · uov_method · refiner_model · inpaint_mode · guidance_scale · sharpness · refiner_switch · seed · mixing_image_prompt_and_inpaint · mixing_image_prompt_and_vary_upscale · enable_safety_checker · styles · outpaint_selections · loras · image_prompt_2 · image_prompt_3 · image_prompt_4
기본값

제외할 이미지 세부 정보를 지정하는 네거티브 프롬프트입니다. 색상, 객체, 풍경 또는 콧수염·흐림·낮은 해상도 같은 세부 특징을 제외할 수 있습니다.

기본값

원하는 인페인팅 콘텐츠에 대한 설명입니다.

파일을 끌어다 놓거나

인페인팅에 사용할 참조 이미지입니다.

파일을 끌어다 놓거나

이미지 생성 중 적용할 마스크 이미지입니다.

파일을 끌어다 놓거나

업스케일링 또는 변형에 사용할 원본 이미지입니다.

performance 기본값 Extreme Speed

성능 선택 항목입니다: Speed 또는 Quality.

output_format 기본값 jpeg

결과 이미지의 파일 형식입니다.

uov_method 기본값 Disabled

업스케일링 또는 변형 생성에 적용할 방식입니다.

기본값 None

리파이너 선택 항목입니다: SDXL 또는 SD 1.5.

기본값 Inpaint or Outpaint (...

인페인팅 중 적용할 모드입니다.

기본값 4

이미지 선택 시 프롬프트 준수 강도이며 CFG(Classifier Free Guidance)로 표현합니다.

기본값 2

출력 이미지의 선명도 설정입니다. 값을 높이면 이미지와 텍스처가 모두 더 선명해집니다.

기본값 0.8

리파이너 전환 값입니다. 사실적인 SD1.5 모델에는 0.4, 애니메이션 SD1.5 모델에는 0.667, XL-refiners에는 0.8을 사용합니다. 두 SDXL 모델 사이에서 전환할 때는 모든 값을 사용할 수 있습니다.

Stable Diffusion에서 이미지를 재현하기 위한 시드입니다. 모델 버전, 프롬프트, 시드를 변경하지 않으면 매번 이미지를 정확히 재현할 수 있습니다.

기본값 ["Fooocus Enhance","F...

생성 중 적용할 스타일입니다.

기본값 []

아웃페인팅으로 이미지를 확장할 방향입니다.

기본값 [{"path":"https://hug...

최종 이미지 생성에 병합할 LoRA 선택 항목이며, 최대 5개의 LoRA로 제한됩니다.

POST /run/fooocus/image-prompt?wait=20 견적 → $0.085
# 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/fooocus/image-prompt?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_prompt_1": {
      "image_url": "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 키 받기

Fooocus Image Prompt 정보

텍스트 `prompt`와 함께 필수 항목인 `image_prompt_1` 및 최대 3개의 추가 이미지 프롬프트를 사용해 생성을 유도합니다. `inpaint_mode`를 사용한 인페인팅과 아웃페인팅 방향, 변형 또는 업스케일을 위한 `uov_method`도 제공합니다. 스타일 프리셋, LoRA, `performance` 모드 및 요청당 1~4개의 출력을 지원합니다.

매개변수

표준 이름이나 네이티브 이름 중 하나만 보내세요. 표준 이름

이름유형 기본값허용됨 설명
prompt선택 사항
유형string
기본값
생성하려는 이미지를 최대한 자세히 설명하세요. 최상의 결과를 얻는 데 도움이 됩니다.
negative_prompt선택 사항
유형string
기본값
제외할 이미지 세부 정보를 지정하는 네거티브 프롬프트입니다. 색상, 객체, 풍경 또는 콧수염·흐림·낮은 해상도 같은 세부 특징을 제외할 수 있습니다.
styles선택 사항
유형enum[]
기본값["Fooocus Enhance","Fooocus Sharp","Fooocus V2"]
생성 중 적용할 스타일입니다.
performance선택 사항
유형enum
기본값Extreme Speed
SpeedQualityExtreme SpeedLightning
성능 선택 항목입니다: Speed 또는 Quality.
guidance_scale선택 사항
유형number
기본값4
1 – 30
이미지 선택 시 프롬프트 준수 강도이며 CFG(Classifier Free Guidance)로 표현합니다.
sharpness선택 사항
유형number
기본값2
0 – 30
출력 이미지의 선명도 설정입니다. 값을 높이면 이미지와 텍스처가 모두 더 선명해집니다.
aspect_ratio선택 사항
유형string
기본값1024x1024
프리셋에서 선택하거나 사용자 지정 너비와 높이로 지정하는 출력 이미지 크기입니다. 사용자 지정 두 치수는 모두 8로 나누어떨어져야 합니다.
num_images선택 사항 num_outputs
유형integer
기본값1
1 – 4
요청마다 생성할 이미지 수입니다.
loras선택 사항
유형object[]
기본값[{"path":"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_offset_example-lora_1.0.safetensors","scale":0.1}]
최종 이미지 생성에 병합할 LoRA 선택 항목이며, 최대 5개의 LoRA로 제한됩니다.
loras[].path필수
유형string
URL 또는 경로로 지정하는 LoRA 가중치 위치입니다.
loras[].scale선택 사항
유형number
기본값0.1
0 – 1
기본 모델에 병합하기 전에 LoRA 가중치에 적용되는 배수입니다.
refiner_model선택 사항
유형enum
기본값None
NonerealisticVisionV60B1_v51VAE.safetensors
리파이너 선택 항목입니다: SDXL 또는 SD 1.5.
refiner_switch선택 사항
유형number
기본값0.8
0 – 1
리파이너 전환 값입니다. 사실적인 SD1.5 모델에는 0.4, 애니메이션 SD1.5 모델에는 0.667, XL-refiners에는 0.8을 사용합니다. 두 SDXL 모델 사이에서 전환할 때는 모든 값을 사용할 수 있습니다.
output_format선택 사항
유형enum
기본값jpeg
pngjpegwebp
결과 이미지의 파일 형식입니다.
seed선택 사항
유형integer | null
Stable Diffusion에서 이미지를 재현하기 위한 시드입니다. 모델 버전, 프롬프트, 시드를 변경하지 않으면 매번 이미지를 정확히 재현할 수 있습니다.
image_prompt_1필수
유형object
image_prompt_1.type선택 사항
유형enum
기본값ImagePrompt
ImagePromptPyraCannyCPDSFaceSwap
image_prompt_1.image_url선택 사항
유형url · image
image_prompt_1.stop_at선택 사항
유형number
기본값0.5
0 – 1
image_prompt_1.weight선택 사항
유형number
기본값1
0 – 2
image_prompt_2선택 사항
유형object
image_prompt_2.type선택 사항
유형enum
기본값ImagePrompt
ImagePromptPyraCannyCPDSFaceSwap
image_prompt_2.image_url선택 사항
유형url · image
image_prompt_2.stop_at선택 사항
유형number
기본값0.5
0 – 1
image_prompt_2.weight선택 사항
유형number
기본값1
0 – 2
image_prompt_3선택 사항
유형object
image_prompt_3.type선택 사항
유형enum
기본값ImagePrompt
ImagePromptPyraCannyCPDSFaceSwap
image_prompt_3.image_url선택 사항
유형url · image
image_prompt_3.stop_at선택 사항
유형number
기본값0.5
0 – 1
image_prompt_3.weight선택 사항
유형number
기본값1
0 – 2
image_prompt_4선택 사항
유형object
image_prompt_4.type선택 사항
유형enum
기본값ImagePrompt
ImagePromptPyraCannyCPDSFaceSwap
image_prompt_4.image_url선택 사항
유형url · image
image_prompt_4.stop_at선택 사항
유형number
기본값0.5
0 – 1
image_prompt_4.weight선택 사항
유형number
기본값1
0 – 2
inpaint_image_url선택 사항
유형url · image
인페인팅에 사용할 참조 이미지입니다.
mask_image_url선택 사항
유형url · image
이미지 생성 중 적용할 마스크 이미지입니다.
inpaint_mode선택 사항
유형enum
기본값Inpaint or Outpaint (default)
Inpaint or Outpaint (default)Improve Detail (face, hand, eyes, etc.)Modify Content (add objects, change background, etc.)
인페인팅 중 적용할 모드입니다.
inpaint_additional_prompt선택 사항
유형string
기본값
원하는 인페인팅 콘텐츠에 대한 설명입니다.
outpaint_selections선택 사항
유형enum[]
기본값[]
아웃페인팅으로 이미지를 확장할 방향입니다.
mixing_image_prompt_and_inpaint선택 사항
유형boolean
기본값false
이미지 Prompt와 Inpaint를 결합합니다.
uov_image_url선택 사항
유형url · image
업스케일링 또는 변형에 사용할 원본 이미지입니다.
uov_method선택 사항
유형enum
기본값Disabled
DisabledVary (Subtle)Vary (Strong)Upscale (1.5x)Upscale (2x)Upscale (Fast 2x)
업스케일링 또는 변형 생성에 적용할 방식입니다.
mixing_image_prompt_and_vary_upscale선택 사항
유형boolean
기본값false
Image Prompt와 Vary/Upscale을 결합합니다.
enable_safety_checker선택 사항
유형boolean
기본값true
안전 검사 전환입니다. false로 설정하면 검사를 비활성화합니다.
필수 표준 이름, 사용 가능

파일 매개변수에는 공개 https:// URL, 최대 10 MB의 data: URI 또는 업로드의 file_url을 사용할 수 있습니다. 파일

출력

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "fooocus/image-prompt",
  "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": 85,
    "usd": "0.085",
    "charged": 85,
    "refunded": 0
  },
  "input": {
    "image_prompt_1": {
      "image_url": "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
      }
    ],
    "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은 스토리지에 저장된 복사본입니다. 계정 설정 또는 ?storage=에 따라 영구 보관(GB-월 단위 과금)하거나 7일 동안 무료로 보관합니다.
모든 모델에서 동일한 구조이미지, 동영상, 오디오 모두 type, url, content_type, width, height 및 duration을 사용합니다. output은 모델 자체의 결과 객체입니다.
출력 필드
images
array of object {url, content_type, file_name, file_size, width, height}생성된 이미지의 파일 정보입니다.
timings
object생성에 걸린 시간입니다.
has_nsfw_concepts
array of boolean생성된 이미지에 NSFW 개념이 나타나는지 나타냅니다.

더 많은 모델: 텍스트를 이미지로

AI 에이전트용: 이 페이지의 Markdown 버전: https://doitong.com/ko/developers/models/fooocus/image-prompt.md. 모든 모델 및 가이드: https://doitong.com/developers/llms.txt