Aibubu
Aibubu 방문 ↗
파일과 애셋

참조 이미지 업로드

이미지를 업로드하고 이미지 또는 영상 생성에 사용할 호스팅 URL을 받습니다.

POST/v1/uploads/images

참조 이미지를 먼저 업로드한 뒤 반환된 url을 이미지 또는 영상 생성의 reference_images에 전달하세요. 지원 여부와 항목 제한은 대상 모델의 schema.fields를 따릅니다.

POST /v1/uploads/images

개요

항목세부 사항
인증Authorization: Bearer sk_aibubu_xxx
필요 스코프v1:generate
요청 본문multipart/form-data
파일 필드file
지원 형식PNG, JPEG, WebP, GIF
응답201 Created + 업로드된 이미지 메타데이터

이미지는 API 키의 워크스페이스와 리전에 저장됩니다. 업로드에는 과금되지 않습니다.

예시

curl -X POST https://aibubu.ai/v1/uploads/images \
  -H "Authorization: Bearer sk_aibubu_your_api_key" \
  -F "file=@./reference.png"

응답

{
  "asset_id": "asset_01jxyz...",
  "url": "https://files.aibubu.ai/uploads/global/user_xxx/reference.png",
  "content_type": "image/png",
  "size": 5074444,
  "width": 2048,
  "height": 2048
}

반환된 URL을 이미지 요청에 사용하세요.

{
  "model": "nano-banana-pro",
  "prompt": "Improve the details based on this reference image",
  "reference_images": ["https://files.aibubu.ai/uploads/global/user_xxx/reference.png"]
}