API 테스트

서버 사이드 연동 테스트 및 로컬 스크립트 안내. API 키는 브라우저에 노출하지 않습니다.

서버 사이드 테스트

관리자 API — body { "test": "kling" | … }

Kling API (auth probe)

KLING_API_KEY(Bearer) 또는 ACCESS+SECRET(JWT)로 목록 GET을 호출해 인증만 검증합니다. 이미지 생성은 하지 않습니다.

DashScope embedding

1×1 PNG로 multimodal embedding API를 1회 호출합니다 (키 필요, 소량 과금 가능).

Supabase Storage

Service Role로 listBuckets 및 product-working/products 목록을 조회합니다.

Signed URL

product_images 첫 행 또는 product-working/products 첫 객체로 createSignedUrl을 생성합니다.

로컬 스크립트 (scripts/)

프로젝트 루트에서 npx tsx scripts/… 형태로 실행

test-kling-connection.ts

scripts/test-kling-connection.ts

Kling 인증 연결 검증 (npm run test:kling)

test-dashscope-vision-embedding.ts

scripts/test-dashscope-vision-embedding.ts

DashScope multimodal embedding(768) 로컬 호출 검증

test-hf-clip-embedding.ts

scripts/test-hf-clip-embedding.ts

Hugging Face CLIP embedding 실험 (레거시/비교용)

test-jina-image-embedding.ts

scripts/test-jina-image-embedding.ts

Jina image embedding 실험

test-openai-text.ts

scripts/test-openai-text.ts

OpenAI 텍스트 API 연결 검증