Ideogram V3 — edit
MegaBrain API로 쓰는 Ideogram V3 — edit(이미지 편집): 이미지당 $0.021. 모든 모델에 키 하나, 달러 선불 잔액에서 결제, 구독 없음.
ideogram/v3/edit작업이 대기열에 들어갈 때 차감되고, 생성에 실패하면 환불됩니다.
출력 예시
브라우저에서 사용해 보기
로그인하면 영어 페이지의 플레이그라운드에서 Ideogram V3 — edit을(를) 브라우저로 실행할 수 있으며, API와 같은 잔액에서 결제됩니다.
플레이그라운드 열기요청 파라미터
요청 JSON 본문의 필드입니다. 모델은 다른 필드를 받지 않으며, 포함하면 400 오류가 반환됩니다.
- prompt문자열필수
- image_urlURL필수
- rendering_speed문자열선택
- 기본값:
BALANCED- 값:
TURBO,BALANCED,QUALITY
- mask_urlURL필수
- expand_prompttrue / false선택
- 기본값:
true
- seed정수선택
API로 사용하기
작업을 보내고 status_url이 COMPLETED가 될 때까지 확인한 뒤 response_url에서 결과를 받으세요. 같은 키와 잔액으로 텍스트 모델도 쓸 수 있습니다. API 문서(영어)
curl
curl -X POST https://getmegabrain.com/api/gateway/v1/queue/ideogram/v3/edit \
-H "Authorization: Bearer $MEGABRAIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"a ceramic coffee mug on a sunlit oak table, product photo","image_url":"https://example.com/photo.jpg","mask_url":"https://example.com/mask.png"}'
# Then poll status_url and fetch the result from response_url:
curl https://getmegabrain.com/api/gateway/v1/queue/requests/$REQUEST_ID -H "Authorization: Bearer $MEGABRAIN_API_KEY"Python
import os, time, requests
BASE = "https://getmegabrain.com/api/gateway/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MEGABRAIN_API_KEY']}"}
job = requests.post(f"{BASE}/queue/ideogram/v3/edit", headers=HEADERS, json={
"prompt": "a ceramic coffee mug on a sunlit oak table, product photo",
"image_url": "https://example.com/photo.jpg",
"mask_url": "https://example.com/mask.png"
}).json()
while requests.get(job["status_url"], headers=HEADERS).json()["status"] not in ("COMPLETED", "FAILED"):
time.sleep(2)
print(requests.get(job["response_url"], headers=HEADERS).json())JavaScript
const BASE = 'https://getmegabrain.com/api/gateway/v1';
const headers = {
Authorization: `Bearer ${process.env.MEGABRAIN_API_KEY}`,
'Content-Type': 'application/json',
};
const job = await fetch(`${BASE}/queue/ideogram/v3/edit`, {
method: 'POST',
headers,
body: JSON.stringify({
"prompt": "a ceramic coffee mug on a sunlit oak table, product photo",
"image_url": "https://example.com/photo.jpg",
"mask_url": "https://example.com/mask.png"
}),
}).then(r => r.json());
let status = job.status;
while (status !== 'COMPLETED' && status !== 'FAILED') {
await new Promise(r => setTimeout(r, 2000));
({ status } = await fetch(job.status_url, { headers }).then(r => r.json()));
}
console.log(await fetch(job.response_url, { headers }).then(r => r.json()));자주 묻는 질문
Ideogram V3 — edit API 가격은 얼마인가요?
이미지당 $0.021. 달러 선불 잔액에서 차감되며, 실패한 생성은 전액 환불됩니다. 구독은 없습니다.
Ideogram V3 — edit을(를) API로 어떻게 사용하나요?
MegaBrain API 키로 POST https://getmegabrain.com/api/gateway/v1/queue/ideogram/v3/edit에 작업을 보내고, status_url이 COMPLETED가 될 때까지 확인한 뒤 response_url에서 결과를 받으세요. 같은 키와 잔액으로 텍스트 모델도 쓸 수 있습니다.
코드 없이 Ideogram V3 — edit을(를) 써 볼 수 있나요?
네. 로그인하면 모델의 영어 페이지에 있는 플레이그라운드에서 Ideogram V3 — edit을(를) 브라우저로 실행할 수 있으며, API와 같은 잔액에서 결제됩니다.
Ideogram V3 — edit은(는) 입력 이미지를 받나요?
네. 원본 이미지를 image_url(이미지 URL)로 보내고 편집 내용을 프롬프트에 적으세요.