VectoSolve TypeScript SDK: AI 이미지 벡터화를 앱에 통합하세요
VectoSolve 공식 TypeScript SDK는 AI 벡터화, 배경 제거, 업스케일링, 로고 생성에 대한 타입 안전한 액세스를 제공합니다. npm으로 설치하고, API 키로 인증하고, 몇 분 만에 프로덕션 통합을 배포하세요.

Founder of VectoSolve
Self-taught developer, founder and sole developer of VectoSolve since 2024. He builds the conversion engine and the cutting, embroidery and 3D printing exports.
How this article was made: drafted with AI assistance, then edited and fact-checked before publication. About the author
@vectosolve/sdk 패키지는 모든 TypeScript 또는 JavaScript 프로젝트에서 VectoSolve API의 모든 엔드포인트에 타입 안전한 액세스를 제공합니다. 이미지 벡터화, 배경 제거, 업스케일링, 로고 생성 — 모두 npm install 하나로 가능합니다.
설치
npm install @vectosolve/sdk
빠른 시작
import { VectoSolve } from '@vectosolve/sdk';
const client = new VectoSolve({ apiKey: 'vs_xxx' });
// 이미지를 SVG로 변환
const result = await client.vectorize({ file: 'photo.png' });
console.log(result.data.svg); // 깨끗한 SVG 출력
API 키는 vectosolve.com/developers에서 받으세요.
코어 메서드
vectorize()
모든 래스터 이미지를 깨끗한 SVG 벡터 형식으로 변환합니다.
// 로컬 파일에서
const result = await client.vectorize({ file: 'logo.png' });
console.log(result.data.svg);
// URL에서
const result2 = await client.vectorize({ imageUrl: 'https://example.com/image.png' });
console.log(result2.data.svg_url);
비용: 이미지당 $0.20.
removeBg()
모든 이미지에서 배경을 제거합니다. 투명 PNG를 반환합니다.
const result = await client.removeBg({ file: 'product.jpg' });
console.log(result.data.image_url); // 투명 PNG URL
비용: 이미지당 $0.07.
upscale()
AI 업스케일로 더 높은 해상도 — 아이콘, 썸네일, 오래된 에셋에 이상적입니다.
const result = await client.upscale({ file: 'small-icon.png' });
console.log(result.data.image_url); // 고해상도 이미지 URL
비용: 이미지당 $0.15.
generateLogo()
텍스트 프롬프트에서 SVG 로고를 생성합니다. 스타일, 브랜드 색상, 다양한 변형을 지원합니다.
const result = await client.generateLogo({
prompt: '추상적인 형태를 사용한 모던 테크 스타트업 로고',
style: 'vector_illustration',
colors: ['#0090ff', '#1cb721'],
num_variants: 4,
});
result.data.logos.forEach(logo => console.log(logo.svg));
비용: 로고당 $0.40 (recraftv3) 또는 $0.25 (recraftv2).
batch()
여러 이미지를 한 번의 호출로 처리합니다.
const result = await client.batch([
{ url: 'https://example.com/img1.png', operation: 'vectorize' },
{ url: 'https://example.com/img2.png', operation: 'remove_bg' },
]);
A Full Year of Conversions for $49
Starter Annual: 25 conversions every month, $49 for the whole year. That is about $4.08 a month · Cancel anytime
Get the Annual Deal인증
모든 요청에는 API 키가 필요합니다. vectosolve.com/developers에서 받으세요.
// 직접 지정
const client = new VectoSolve({ apiKey: 'vs_xxx' });
// 환경 변수에서
const client = new VectoSolve({ apiKey: process.env.VECTOSOLVE_API_KEY });
크레딧 추적
모든 응답에 크레딧 사용량이 포함되어 지출을 모니터링할 수 있습니다:
const result = await client.vectorize({ file: 'image.png' });
console.log(result.credits); // { used: 0.20, remaining: 4.80 }
크레딧 구매 또는 구독은 vectosolve.com/pricing에서.
개발자 에코시스템의 일부
SDK는 VectoSolve의 3가지 개발자 도구 중 하나입니다:
| 도구 | 설치 | 용도 |
|---|---|---|
| TypeScript SDK | npm i @vectosolve/sdk | 앱 통합 |
| CLI | npm i -g vectosolve | 터미널 & CI/CD |
| MCP Server | npx @vectosolve/mcp | AI IDE 통합 |
세 가지 모두 동일한 VectoSolve API에 연결되며 크레딧 잔액을 공유합니다.