Flux Kontext
고급 이미지 생성 및 편집 기능을 갖춘 Flux Kontext 모델
기능
- 텍스트-이미지 생성
- 스타일 변환
- 이미지 편집
- 고품질 출력
요금제
| Model | Credits |
|---|---|
| flux-kontext-pro | 2 (~$0.02) |
| flux-kontext-max | 4 (~$0.04) |
엔드포인트
POST
/api/v1/images/generate매개변수
| Parameter | 타입 | 필수 | 설명 |
|---|---|---|---|
| model | string | 필수 | "flux-kontext-pro" or "flux-kontext-max" |
| type | string | 선택 사항 | "text-to-image" or "image-to-image" (default: text-to-image) |
| prompt | string | 필수 | Text description |
| image_urls | string[] | 선택 사항 | Input image URLs or base64 for editing/style transfer |
| input_image | string | 선택 사항 | Deprecated. Alias for image_urls[0] |
| image_size | string | 선택 사항 | Output image size (e.g. 1024x1024) |
요청 예시
{
"model": "flux-kontext-pro",
"type": "image-to-image",
"prompt": "Transform into a watercolor painting style",
"image_urls": ["https://tempfile.aiquickdraw.com/workers/nano/image_1772780968156_ygk0zm.png"]
}응답 예시
{
"success": true,
"data": {
"task_id": "task_flux123",
"credits_used": 2,
"remaining_credits": 498
}
}코드 예제
curl -X POST https://gateway.bananapro.site/api/v1/images/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-kontext-pro",
"type": "image-to-image",
"prompt": "Transform into a watercolor painting style",
"image_urls": ["https://tempfile.aiquickdraw.com/workers/nano/image_1772780968156_ygk0zm.png"]
}'