블로그

사용 가이드

개발자를 위한 Ideogram v4.5 이미지 투 이미지 프롬프트 레시피

바로 복사할 수 있는 편집 프롬프트: 주체 충실도, 배경 교체, 텍스트 보존

Nov 10, 2026
추상적인 플랫 액체 색면이 겹쳐진 커버 이미지로, 먹빛 검정 바탕 위에 청자색 초록과 슬레이트 그레이의 층층이 흐르는 형태가 점점이 배치되어 있다.
이 페이지에서

이미지 투 이미지 프롬프트에 다른 구조가 필요한 이유

텍스트 투 이미지 프롬프트는 하나의 장면을 묘사합니다. 이미지 투 이미지 프롬프트는 이미 존재하는 이미지와 협상합니다. 이 차이는 표면적인 수사가 아니라 구조적인 것이며, 처음부터 잘 작동하던 프롬프트가 참조 이미지에 투입되는 순간 탁한 결과를 내놓는 주된 이유이기도 합니다.

장면을 묘사할 때는 모든 토큰이 쌓입니다. 빈 캔버스를 채우는 것이니까요. 하지만 이미지를 편집할 때는 각 토큰이 보존 지시이거나 변경 지시이며, 모델은 어느 것이 어느 쪽인지 판단해야 합니다. 「카페에 있는 빨간 재킷을 입은 여성」이라고만 쓴 프롬프트는 모델이 얼굴을 자유롭게 다시 그리고, 재킷 재단을 새로 디자인하고, 방 전체를 다시 상상하도록 내버려 둡니다. 아무것도 보존하라고 요청하지 않았으니 보존할 이유가 없는 것입니다.

해결책은 편집을 두 개의 채널로 된 지시로 작성하는 것입니다. 한 채널은 편집 후에도 살아남아야 할 내용을, 다른 채널은 바뀌어야 할 내용을 설명합니다. 이 가이드의 모든 내용은 이 구분 위에 서 있습니다. 보존 채널은 장식이 아닙니다. 이미 승인한 세부 사항을 모델이 다시 굴리지 않도록 막는 계약입니다.

편집 프롬프트를 쓰기 전에 빠른 사고 실험을 해보세요. 초안을 한 번 읽고 「만약 모델이 이 부분을 바꾼다면 출력이 틀린 것이 되는가?」라고 자문해 보세요. 답이 그렇다면 그 세부 사항은 보존 채널에 속합니다. 보존 채널에 속하는데도 묘사 문장 속에 곁다리로 언급만 했다면, 앞으로 옮기고 지시의 어조로 서술하세요.

여기서 두 가지 따름정리가 나옵니다. 첫째, 편집 프롬프트는 생성 프롬프트보다 보통 더 짧습니다. 참조 이미지가 이미 보여주는 것을 다시 설명하지 않고 차이를 설명하기 때문입니다. 둘째, 더 직설적입니다. 명령형 문장(「keep」「do not change」「replace only」)이 형용사보다 더 신뢰할 만합니다. 아래의 레시피는 모두 이 두 습관 위에 세워져 있습니다.

하나의 프롬프트, 두 개의 채널: 편집이 무엇을 보존하고 무엇을 바꾸는가.

기본 레시피: 편집 지시의 해부 구조

이 가이드의 모든 레시피는 동일한 골격의 변형입니다. 이 골격을 익히면 어떤 레시피든 기억만으로 재구성할 수 있습니다.

다섯 개의 슬롯

  1. 편집 의도 — 작업과 그 범위를 한 문장으로 설명합니다(「이 제품 사진의 배경만 변경한다.」).
  2. 보존 조항 — 변경해서는 안 되는 내용을 명시적으로 나열합니다(정체성, 기하 구조, 텍스트, 색상, 크롭).
  3. 변경 조항 — 무엇을 수정할지, 실행 가능할 만큼 구체적으로 설명합니다.
  4. 스타일/융합 조항 — 새 요소가 기존 요소와 어떻게 어우러져야 하는지(광원 방향, 그림자 부드러움, 원근, 그레인).
  5. 제약 — 하드 제한과 배제 항목(새 객체 추가 금지, 텍스트 변경 금지, 재구도 금지).

빈칸 채우기 템플릿

Edit intent: <operation> on <target region>.
Preserve: <subject identity>, <geometry/pose>, <text and layout>, <color and material>.
Change: <what to replace or add>, <how much of the frame it covers>.
Integrate: match <light direction>, <shadow behavior>, <perspective>, <film grain / noise>.
Constraints: do not <failure mode 1>; do not <failure mode 2>; keep <critical edge> clean.

순서는 생각보다 더 중요합니다. 보존 조항을 변경 조항 앞에 두면 모델이 새 영역을 그리기 시작하기 전에 주체를 먼저 고정시킬 수 있으며, 실제로 정체성 드리프트를 크게 줄여 줍니다. 융합 조항을 변경 조항 뒤에 두면 융합 지시가 융합 대상과 묶인 상태로 유지됩니다.

편집 의도를 좁게 유지하기

하나의 프롬프트에는 하나의 작업입니다. 「배경을 바꾸고 동시에 제목 폰트도 업데이트한다」는 두 번의 편집이며, 모델은 보통 더 쉬운 쪽을 희생해서 더 어려운 쪽을 완수합니다. 두 번에 나누어 실행하고 첫 번째 출력을 두 번째에 투입하세요. 이 가이드 뒤쪽의 레이아웃과 텍스트 레시피는 이 체이닝 패턴에 의존합니다.

슬롯을 재사용 가능하게 만들기

팀이 재현성을 얻는 방식은 거의 변하지 않는 슬롯의 문구—보존 조항과 제약—를 동결하고, 작업마다 변경 조항과 융합 조항만 편집하는 것입니다. 이 동결된 문자열을 한 번 적어 공유 상수에 넣어 두면, 프롬프트가 작성자마다 달라지지 않습니다. 이 가이드의 뒤쪽 내용은 슬롯 계열별로 시작값을 제공합니다.

기본 레시피는 유체 덩어리의 연속과 같습니다: 각 슬롯이 보존 조항에서 제약까지 다음 슬롯으로 접혀 들어갑니다.

주체 충실도 레시피

주체 충실도는 대부분의 사람이 가장 부족하게 묘사하는 슬롯입니다. 「주체를 보존한다」는 너무 모호해서 아무것도 묶어 두지 못합니다. 모델은 이를 「주체처럼 보이는 무언가를 보존한다」로 이해합니다. 신경 쓰는 속성을 명시하세요.

레시피: 얼굴은 유지하고 맥락은 교체

Edit intent: change the setting around the person in this photo; the person is not the edit target.
Preserve: the person's facial identity, facial proportions, skin tone, hairline and hairstyle, expression, pose, and body proportions.
Change: the environment behind and around the person to <new scene>.
Integrate: relight the person's edges to match the new scene's <light direction> and <color temperature>; keep shadow softness consistent with the new environment.
Constraints: do not smooth, beautify, or re-synthesize the face; do not change the head angle; do not alter clothing cut or color.

do not smooth or beautify 이 줄은 가치가 있습니다. 사진 모델은 기본적으로 미화 보정 쪽으로 기울며, 이 제약이 없으면 배경 교체가 조용히 다른 사람처럼 보이는 결과를 돌려놓습니다.

레시피: 제품과 패키징 일관성

Edit intent: place the product from this image into a new scene.
Preserve: product silhouette, proportions, label placement, typography on the label, cap and seam geometry, material finish, and brand colors.
Change: the surface it rests on and the surrounding scene to <new setting>.
Integrate: match perspective and horizon; add a contact shadow and a plausible reflection on <surface>; match overall exposure to the new scene.
Constraints: do not redraw the label; do not add or remove product features; do not change the camera angle.

패키징에서 라벨은 곧 정체성입니다. 라벨이 왜곡되면 렌더링이 좋아 보이더라도 그 편집은 상업적으로 실패한 것입니다.

레시피: 캐릭터와 일러스트 연속성

Edit intent: keep the character exactly as drawn and change only their surroundings.
Preserve: character proportions, line weight, facial design, marking and pattern placement, outfit design, and palette.
Change: the background and props around the character to <new context>.
Integrate: keep the illustration style, stroke consistency, and shading language identical to the reference.
Constraints: do not add costume details; do not change the art style; do not alter character scale relative to the frame.

충실도가 여전히 흔들릴 때

두 번 시도해도 정체성이 계속 흔들리면 변경 조항을 다시 쓰지 마세요. 문제는 보통 범위입니다. 참조 이미지를 주체 주변에서 더 타이트하게 잘라 주체가 화면을 더 크게 차지하게 하거나, 모델이 교체하라고 요청받는 영역의 크기를 줄이세요. 충실도 문제는 흔히 프롬프트 옷을 입은 프레이밍 문제일 뿐입니다.

같은 핵심, 두 가지 다른 액체 맥락: 고정된 주체는 동일하게 유지되고 주변 형태만 변합니다.

배경 교체 레시피

배경 교체는 전형적으로 두 가지 방식으로 실패합니다. 주체 가장자리에 빛 번짐이나 거친 테두리가 생기는 것, 그리고 새 장면의 조명이 주체의 원래 조명과 맞지 않는 것입니다. 둘 다 새 배경을 더 자세히 묘사해서가 아니라 융합 조항으로 해결됩니다.

레시피: 깨끗한 가장자리의 스튜디오 교체

Edit intent: replace the background only; the subject remains untouched.
Preserve: the subject's outline down to fine edges — hair strands, fur, fabric edges, transparent or reflective parts.
Change: the background to <seamless backdrop / gradient / studio sweep>.
Integrate: light the backdrop independently of the subject; keep the subject's existing key light direction; do not add a colored spill onto the subject.
Constraints: no fringe or halo at the subject edge; no background color bleeding into hair or translucent materials; do not crop or rescale the subject.

거친 테두리를 명시적으로 짚는 것이 여기서 가장 가치 있는 줄입니다. 이것이 없으면 머리카락과 반투명 패키징에서 매트처럼 번지는 빛 번짐이 매우 흔한 기본 결과입니다.

레시피: 조명을 맞춘 환경 교체

Edit intent: replace the location around the subject.
Preserve: subject identity, pose, scale, and position in frame; existing shadow shape on the subject is the reference for light direction.
Change: the environment to <new location>, including depth cues appropriate to that location.
Integrate: derive the new light direction and color temperature from the subject's existing highlights; add environment contact shadows under the subject; match depth of field and grain to the reference.
Constraints: no duplicated light sources; do not introduce reflections that contradict the new scene; do not change the subject's cast shadow direction relative to the new light.

조명을 글로 묘사하는 것보다 기존 하이라이트에서 조명을 도출하라고 모델에 지시하는 것이 더 신뢰할 만합니다. 참조 이미지가 이미 진실을 인코딩하고 있으니, 프롬프트는 그것을 가리키기만 하면 됩니다.

레시피: 국소 배경 편집

Edit intent: modify only the region behind the subject below the shoulder line.
Preserve: everything above that line, including the subject and the existing upper background.
Change: the lower background to <new content>.
Integrate: continue the perspective and color grade of the untouched upper region seamlessly across the boundary.
Constraints: no visible seam; no change to subject edges; do not shift the subject.

영역 한정 편집은 이미 만족한 배경을 다시 굴리지 않게 해 줍니다. 경계를 직관적인 공간 언어로 서술하세요. 모델은 백분율 좌표보다 그것을 더 일관되게 이해합니다.

레이아웃과 텍스트를 보존하는 레시피

레이아웃은 단일 범용 프롬프트에서 가장 심하게 새는 곳입니다. 텍스트는 가장 먼저 녹아내리면서도 고객이 보기 전까지는 가장 마지막에 눈에 띄는 부분입니다. 텍스트를 잠긴 레이어로 취급하고 그렇게 명시하세요.

레시피: 레이아웃이 잠긴 포스터

Edit intent: change the imagery in this poster; the text layer is locked.
Preserve: every character of existing text, including exact spelling, capitalization, punctuation, font style, weight, size, line breaks, alignment, and position in the layout.
Change: the photographic or illustrative elements <describe region>.
Integrate: keep the same margins and grid; ensure the new imagery does not sit behind or overlap any text.
Constraints: do not re-render, re-typeset, or paraphrase any text; do not add new copy; do not change contrast between text and its immediate background.

do not paraphrase 제약은 중요합니다. 모델이 때때로 텍스트 외형은 유지하면서 문구를 「교정」하는데, 이는 뚜렷한 손상보다 더 나쁩니다. 흘끗 보아서는 알아채기 어렵기 때문입니다.

레시피: 스크린샷과 UI 자산 편집

Edit intent: update visual styling of this interface asset without changing its content.
Preserve: all labels, numbers, icons' meaning, component positions, spacing, and reading order.
Change: <color theme / border radius / shadow depth> only.
Integrate: apply the change consistently across all matching components.
Constraints: do not add, remove, or reorder UI elements; do not alter any glyph; keep text legible at the original size.

레시피: 로고가 있는 브랜드 자산

Edit intent: place this branded asset into a new context.
Preserve: logo geometry, letterforms, clear space around the mark, and brand colors exactly.
Change: the surrounding composition to <new layout or scene>.
Integrate: match the new composition's perspective while keeping the logo flat and undistorted.
Constraints: do not redraw, restyle, or outline the logo; do not place the logo on a busy area that reduces contrast; do not crop the clear space.

체이닝 실행에 관한 실용적 참고

이미지와 텍스트를 모두 바꿔야 한다면 두 번에 나누어 실행하세요. 먼저 텍스트를 잠그고 이미지를 편집한 다음, 별도로 텍스트 레이어를 편집하고 이미지를 잠급니다. 다중 작업 프롬프트는 서로 충돌하지만, 단계별 실행은 그렇지 않습니다. 두 번째 실행에서는 첫 번째 실행의 보존 조항을 그대로 유지하세요. 그래야 텍스트 편집이 이미지 작업을 되돌리지 않습니다.

네거티브 목록 구축하기

이미지 투 이미지의 네거티브 지시는 두 번째 프롬프트가 아니라 회귀 체크리스트입니다. 짧게 유지하고, 실제로 목격한 실패 모드에 구체적으로 맞추고, 사후에 덧붙이는 것이 아니라 템플릿의 제약 슬롯에 붙이세요.

반복되는 실패 모드

  • 정체성 드리프트 — 얼굴이나 제품이 미묘하게 다시 합성됩니다. 네거티브: do not alter facial features; do not smooth or beautify skin; do not redraw the product label.
  • 가장자리 아티팩트 — 머리카락이나 반투명 소재에 빛 번짐, 거친 테두리, 톱니 모양 마스크가 생깁니다. 네거티브: no halo or fringe at subject edges; no background bleed into hair.
  • 조명 불일치 — 새 장면이 주체의 하이라이트나 그림자와 맞지 않습니다. 네거티브: no conflicting light directions; no duplicated shadows; no colored spill on the subject.
  • 텍스트 손상 — 문구가 녹아내리거나 철자가 틀리거나 조용히 바뀝니다. 네거티브: do not re-typeset or paraphrase any text; do not add copy.
  • 레이아웃 확산 — 요소가 움직이고, 여백이 바뀌고, 컴포넌트가 재배치됩니다. 네거티브: do not move, resize, or reorder existing elements.
  • 범위 누수 — 요청하지 않은 영역까지 모델이 편집합니다. 네거티브: change only <region>; leave the rest of the frame untouched.
  • 스타일 대체 — 사진이 일러스트가 되거나 평면 일러스트가 사실적 음영을 얻습니다. 네거티브: do not change the medium or rendering style.

목록의 규율 유지하기

프롬프트당 네거티브 항목은 세 개에서 여섯 개가 실용 범위입니다. 너무 긴 네거티브 목록은 주의를 희석하고 합당한 세부 사항까지 억제할 수 있으므로, 직접 회귀를 관찰하지 않은 항목은 삭제하세요. 목록을 공유 목록으로 저장해 모든 레시피가 필요한 부분집합을 참조하게 하고, 버전 관리를 하세요. 리뷰에서 새로운 실패 모드가 나타나면 한 번만 추가되고 어디서나 상속됩니다.

한 가지 더 들일 만한 습관이 있습니다. 어떤 편집이 실패하면 긍정 프롬프트를 다시 쓰기 전에 그 실패를 후보 네거티브 항목으로 먼저 기록하세요. 이렇게 하는 팀은 매번 처음부터 다시 쓰는 팀보다 안정적인 프롬프트에 더 빨리 도달합니다.

코드에서 레시피 테스트하고 반복하기

프롬프트 레시피는 실행 가능할 때만 자산이 됩니다. 가벼운 반복 루프 하나면 충분합니다. 레시피는 고정하고, 슬롯 하나를 바꾸고, 생성하고, 비교하고, 조여 갑니다.

레시피를 데이터로 구조화하기

동결된 슬롯은 상수로, 가변 슬롯은 매개변수로 유지하세요. 그러면 「테스트」는 손으로 조립한 서로 다른 문자열이 아니라 서로 다른 매개변수가 됩니다.

RECIPE = {
  "intent": "Change only the background of this product photo.",
  "preserve": "product silhouette, label typography, brand colors, camera angle",
  "integrate": "match the new scene's light direction and add a contact shadow",
  "constraints": [
    "do not redraw the label",
    "no fringe at the product edge",
    "do not change the camera angle",
  ],
}

def build_prompt(recipe, change, negatives):
    return (
        f"Edit intent: {recipe['intent']}\n"
        f"Preserve: {recipe['preserve']}.\n"
        f"Change: {change}.\n"
        f"Integrate: {recipe['integrate']}.\n"
        f"Constraints: {'; '.join(recipe['constraints'] + negatives)}."
    )

반복 루프

  1. 동결 참조 이미지와 테스트 대상 슬롯을 제외한 모든 슬롯을 고정합니다.
  2. 한 가지만 변경 — 보통 변경 조항이나 네거티브 항목 하나입니다.
  3. 생성 변형은 동일한 이미지 투 이미지 호출로 실행해 유일한 차이가 프롬프트 텍스트가 되게 합니다.
  4. 보존 조항과 항목별로 비교: 정체성, 기하 구조, 텍스트, 조명. 「좋아 보인다」가 아니라 항목별 통과/실패로 점수를 매기세요.
  5. 수정 문구를 고치고 다시 실행합니다. 특정 문구가 연속 두 번 통과한 뒤에만 공유 레시피로 승격하세요.

기록해야 할 것

전체 프롬프트, 레시피 버전, 참조 이미지 식별자, 그리고 각 보존 항목의 통과/실패 결과를 저장하세요. 누군가 어떤 레시피의 문구가 왜 이상한지 물을 때 그 로그가 답이 되며, 모델이나 엔드포인트 동작이 바뀔 때는 추측 대신 마지막으로 알려진 정상 실행과 비교해 diff할 수 있습니다.

프롬프트가 아니라 레시피를 인도하기

프롬프트 하나는 일회용이지만, 이름 붙은 슬롯과 네거티브 목록이 있는 레시피는 팀 자산입니다. 버전 관리를 하고, 코드 리뷰하듯 그 변경을 리뷰하고, 변경 이력을 보존하세요. 이것이 이미지 투 이미지 편집을 사람과 시간을 넘어 재현 가능하게 만드는 방법입니다.

이 레시피를 실제 파이프라인에 연결할 준비가 되면, HiAPI.ai의 이미지 투 이미지 엔드포인트가 동일한 프롬프트 구조를 받아들이며 사용량에 따라 과금합니다. 현재 요율은 가격 패널에서 확인할 수 있습니다.

영구 AI 아티팩트로 빌드 시작하기

API 키를 받아 태스크 기반의 하나의 API로 이미지, 비디오, 오디오 모델을 호출하세요.

API 문서 보기