OPENCLAW + IMAGEN 4

OpenClaw에서 Imagen 4 사용하기.

Imagen 4는 정확한 텍스트 렌더링과 높은 프롬프트 충실도를 갖춘 Google DeepMind의 이미지 생성 모델입니다. OpenClaw agent는 채팅에 사용하는 동일한 RunAPI endpoint와 API key로 호출합니다 — 추가 skill을 설치할 필요가 없습니다.

하나의 API key · 텍스트-이미지 엔드포인트 · 비동기 작업 폴링
Use RunAPI to generate an image with Google Imagen 4.

Requirements:
- Read the API key from RUNAPI_API_KEY. Do not hardcode the key.
- Send a POST request to https://runapi.ai/v1/text_to_image.
- Set the model to imagen-4.
- Write a descriptive prompt for the image you want.
- The response returns a task_id. Poll the task status endpoint until the task completes.
- When the task is complete, retrieve the image URL from the response.
curl -X POST https://runapi.ai/v1/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "imagen-4",
    "prompt": "A ceramic coffee mug on a wooden table with morning light, the text HELLO printed on the side in serif font, photorealistic"
  }'
{
  "task_id": "tsk_abc123",
  "status": "pending",
  "model": "imagen-4"
}
curl 명령어를 복사하여 테스트하세요 imagen-4
작동 방식

OpenClaw에서 Imagen 4를 세 단계로 사용하기

1

RunAPI 설정

RUNAPI_API_KEY 환경 변수를 설정하세요. 이미 OpenClaw에서 채팅용 provider로 RunAPI를 설정했다면, 동일한 key가 이미지 생성에도 사용됩니다.

export RUNAPI_API_KEY=runapi_xxx
2

Imagen 4 호출

model을 imagen-4로 설정하여 text_to_image endpoint에 POST 요청을 보내세요. 설명적인 프롬프트를 포함하세요. 필요에 따라 aspect_ratio나 negative_prompt를 추가하세요.

POST /v1/text_to_image
3

결과 가져오기

응답에는 task_id가 포함됩니다. status가 completed로 변경될 때까지 task status endpoint를 폴링하세요. 완료된 응답에는 생성된 이미지 URL이 포함됩니다.

task_id: tsk_abc123
파라미터

Imagen 4 API 파라미터

파라미터 유형 설명
model string 필수. imagen-4, imagen-4-fast, 또는 imagen-4-ultra.
prompt string 원하는 이미지에 대한 텍스트 설명.
aspect_ratio string 선택 사항. 예) 1:1, 16:9, 9:16.
negative_prompt string 선택 사항. 생성된 이미지에서 피해야 할 것.

OpenClaw의 Imagen 4란?

Imagen 4는 Google DeepMind의 이미지 모델로 빠른 프로토타이핑용 Fast·프로덕션 작업용 Standard·최고 디테일의 Ultra 3단계를 제공하며, 가장 저렴한 티어는 장당 약 $0.02입니다. OpenClaw agent는 동일한 RunAPI 키로 세 티어 모두를 호출할 수 있습니다.

Imagen 4 활용 사례

대규모 빠른 프로토타이핑

Fast 티어로 장당 $0.02에 컨셉 탐색을 진행하고, 방향이 결정되면 Standard 또는 Ultra 티어로 전환해 여러 변형을 생성합니다.

읽기 쉬운 텍스트가 포함된 UI 및 레이블 디자인

UI 목업·제품 레이블·표지판 디자인을 생성하며, 삽입된 텍스트가 깔끔하게 렌더링되고 프롬프트를 정확히 따릅니다.

포토리얼리스틱 텍스처 및 재질

정확한 조명과 표면 디테일로 포토리얼리스틱 재질 텍스처·빈티지 여행 엽서·모험적인 사진 장면을 제작합니다.

FAQ

Imagen 4 + OpenClaw 자주 묻는 질문

OpenClaw 일반 설정

아직 설정하지 않으셨나요? OpenClaw용 RunAPI 설정 가이드로 시작하세요.

OpenClaw 설정 가이드 →

Imagen 4 모델 카탈로그

Imagen 4의 모든 변형, 가격, API 문서를 확인하세요.

Imagen 4 모델 →

지금 OpenClaw에서 Imagen 4를 사용해보세요.

무료 RunAPI key를 발급받고, OpenClaw에 프롬프트를 붙여넣어 Google Imagen 4로 이미지를 생성해보세요.