위치: Model customization › Custom model import › Custom model import: Import pretrained open-source models › Invoke your imported model › Advanced API features for imported models
한 줄 요약
2025년 11월 11일 이후 가져온 모델은 구조화 출력(structured outputs), 멀티 이미지 비전(요청당 최대 3장), 로그 확률(log probabilities) 을 쓸 수 있습니다. API 형식별로 지원 범위가 다르고, 복잡한 제약일수록 지연이 커집니다.
핵심 내용
구조화 출력
파라미터
타입
response_format
json_object, json_schema
structured_outputs
json, regex, choice, grammar
API 형식
response_format
structured_outputs
BedrockCompletion
✅
❌
OpenAICompletion (max_tokens 사용 시 라우팅)
✅
✅
OpenAIChatCompletion
✅
✅
{ "prompt": "Classify the sentiment ... Amazon Bedrock CMI is Amazing!",
"max_tokens": 10,
"structured_outputs": { "choice": ["positive", "negative"] } }
⚠️ 생성 중 제약 검증 때문에 성능이 떨어집니다. choice, json_object는 영향이 작고 json_schema, grammar는 지연 증가·처리량 감소가 클 수 있습니다. 💡 단순한 제약과 평평한(flat) 스키마를 쓰세요.
비전
항목
내용
지원 API
OpenAIChatCompletion만
이미지 수
요청당 최대 3장 (이전엔 1장)
인코딩
⚠️ Base64 필수. 이미지 URL은 요청 실패
성능
⚠️ 고해상도 이미지는 처리 시간·메모리를 크게 늘리고 타임아웃을 낼 수 있음. 여러 장이면 영향이 더 커짐 → 리사이즈 권장
이미지는 content 배열에 {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,..."}} 형태로 넣습니다.