apick-api 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.4.0 - 2026-09-05
4
+
5
+ - 이미지 장수 옵션을 의미가 분명한 `imageCount`로 바꾸고 압축 조정 옵션을 제거했습니다.
6
+ - 이미지 크기를 5개 표준 크기 중에서만 선택하도록 타입과 런타임 검증을 강화했습니다.
7
+ - 생성 요청에 선택적 `referenceImage`를 더해 참고 이미지와 텍스트를 함께 사용할 수 있습니다.
8
+
9
+ ## 2.3.1 - 2026-09-05
10
+
11
+ - 이미지 편집 입력에서 마스크 파일을 제거하고 원본 이미지와 프롬프트만 받도록 계약을 단순화했습니다.
12
+
13
+ ## 2.3.0 - 2026-09-05
14
+
15
+ - 이미지 생성·편집과 최대 50장 비동기 작업 메서드 8종을 추가했습니다.
16
+ - 이미지당 25포인트, 성공분 과금, 멱등 키, 24시간 결과 보관 계약을 문서화했습니다.
17
+
3
18
  ## 2.2.0 - 2026-09-03
4
19
 
5
20
  - `maskResidenceCard()`의 개인정보 마스킹 대상을 외국인등록증·영주증·외국국적동포 국내거소신고증으로 확대했습니다.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  # APICK API for Node.js
4
4
 
5
- **에이픽 주요 API 25개를 API 키 하나로 간편하게 호출하는 공식 Node.js SDK**
5
+ **에이픽 데이터·AI·이미지 API를 API 키 하나로 호출하는 공식 Node.js SDK**
6
6
 
7
- **Official zero-dependency Node.js SDK for 25 popular APICK Korean data and AI APIs**
7
+ **Official zero-dependency Node.js SDK for APICK data, AI, and image APIs**
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/apick-api?color=%230a7cff&label=npm%20apick-api)](https://www.npmjs.com/package/apick-api)
10
10
  [![Node.js](https://img.shields.io/badge/Node.js-18%2B-339933)](https://nodejs.org/)
@@ -76,6 +76,13 @@ Leave the allowed-IP list blank for unrestricted access. To restrict access, reg
76
76
  | `jsonToExcel(data, options)` | JSON→Excel | Binary |
77
77
  | `summarize(text)` | 텍스트 요약 / Text summarization | JSON |
78
78
  | `polish(text)` | 텍스트 다듬기 / Text polishing | JSON |
79
+ | `generateImages(prompt, options)` | 이미지 생성 / Image generation | JSON |
80
+ | `editImages(image, prompt, options)` | 이미지 편집 / Image editing | JSON |
81
+ | `createImageGenerationJob(prompt, options)` | 대량 이미지 생성 작업 / Batch generation job | JSON |
82
+ | `createImageEditJob(image, prompt, options)` | 대량 이미지 편집 작업 / Batch edit job | JSON |
83
+ | `getImageJob(jobId)` · `cancelImageJob(jobId)` | 이미지 작업 조회·취소 / Job status and cancellation | JSON |
84
+ | `downloadImageJobImage(jobId, index)` | 개별 결과 / Individual result | Binary |
85
+ | `downloadImageJobArchive(jobId)` | ZIP 결과 / ZIP archive | Binary |
79
86
 
80
87
  ## JSON 결과 / JSON results
81
88
 
@@ -92,6 +99,38 @@ console.log(result.meta);
92
99
 
93
100
  ## 파일 입력 / File input
94
101
 
102
+ ## 이미지 생성·편집 / Image generation and editing
103
+
104
+ 이미지는 장당 25포인트이며 동기는 1~4장, 작업형 API는 최대 50장까지 지원합니다. 성공적으로 저장된 이미지에 대해서만 과금되며 결과는 완료 후 24시간 동안 반복 다운로드할 수 있습니다.
105
+
106
+ Images cost 25 points each. Synchronous calls support 1–4 images and job calls support up to 50. Only stored successful results are charged, and completed job results remain downloadable for 24 hours.
107
+
108
+ ```js
109
+ const made = await apick.generateImages("따뜻한 조명의 미니멀 제품 사진", {
110
+ imageCount: 2, size: "1024x1024", outputFormat: "webp",
111
+ idempotencyKey: "catalog-cover-20260905"
112
+ });
113
+
114
+ const referenced = await apick.generateImages("구도와 제품 형태는 유지하고 여름 해변 분위기로", {
115
+ referenceImage: "./reference.png",
116
+ referenceFilename: "reference.png",
117
+ referenceContentType: "image/png"
118
+ });
119
+
120
+ const edited = await apick.editImages("./source.png", "컵 색상을 파란색으로 변경", {
121
+ outputFormat: "png"
122
+ });
123
+
124
+ const queued = await apick.createImageGenerationJob("여행 포스터 시안", { imageCount: 20 });
125
+ const job = await apick.getImageJob(queued.data.job_id);
126
+ const image = await apick.downloadImageJobImage(job.data.job_id, 0);
127
+ await image.save("./result.png");
128
+ ```
129
+
130
+ PNG·JPEG·WebP 출력, 투명 배경 미리보기(PNG/WebP), 5개 표준 크기(`1024x1024`, `1536x1024`, `1024x1536`, `1152x864`, `864x1152`)를 지원합니다. 입력 프롬프트는 최대 6,000자입니다. `idempotencyKey`는 네트워크 재전송 때 중복 생성과 중복 과금을 막는 8~128자의 요청 식별자이며, 같은 작업을 다시 보낼 때 같은 값을 사용합니다. 자동 재시도는 하지 않습니다.
131
+
132
+ PNG, JPEG, and WebP outputs, transparent-background previews for PNG/WebP, and five standard sizes are supported. Prompts are limited to 6,000 characters. `idempotencyKey` identifies the same request during network retransmission to prevent duplicate generation and billing. Requests are never retried automatically.
133
+
95
134
  OCR은 PNG/JPEG 파일 경로, `Blob`, `ArrayBuffer`, `Uint8Array`를 받습니다. 최대 크기는 50MB입니다.
96
135
  OCR accepts a PNG/JPEG file path, `Blob`, `ArrayBuffer`, or `Uint8Array`, up to 50MB.
97
136
 
package/docs/guide.en.md CHANGED
@@ -123,6 +123,30 @@ const polished = await client.polish(draftText);
123
123
 
124
124
  Text input is limited to 100,000 characters.
125
125
 
126
+ ## Image AI
127
+
128
+ ```js
129
+ const result = await client.generateImages('A clean product photo on white', {
130
+ imageCount: 4, size: '1024x1024', outputFormat: 'webp',
131
+ idempotencyKey: 'product-draft-001'
132
+ });
133
+
134
+ const referenceResult = await client.generateImages('Keep the product shape and composition, and change the background to a sunny kitchen', {
135
+ referenceImage: './reference.png',
136
+ referenceFilename: 'reference.png',
137
+ referenceContentType: 'image/png'
138
+ });
139
+
140
+ const job = await client.createImageGenerationJob('Landscape article cover concepts', { imageCount: 20, size: '1536x1024' });
141
+ const status = await client.getImageJob(job.data.job_id);
142
+ ```
143
+
144
+ `imageCount` is the number of images to make and defaults to one. Synchronous generation and editing support 1–4 images; job methods support 1–50. Add `referenceImage` to generation when the prompt should build from an existing composition, palette, or product shape. Editing accepts one PNG, JPEG, or WebP source up to 50 MB plus a prompt; mask files are not supported. Choose one of five sizes: `1024x1024`, `1536x1024`, `1024x1536`, `1152x864`, or `864x1152`. Each stored successful image costs 25 points, while reservations for failed or cancelled items are released. Results remain available for 24 hours.
145
+
146
+ `idempotencyKey` is a safety identifier that prevents duplicate generation and billing if a network problem sends the same request twice. Use 8–128 letters, numbers, underscores, or hyphens. Reuse it only for the exact same request and create a new value when the prompt or options change.
147
+
148
+ Methods: `generateImages`, `editImages`, `createImageGenerationJob`, `createImageEditJob`, `getImageJob`, `cancelImageJob`, `downloadImageJobImage`, and `downloadImageJobArchive`.
149
+
126
150
  ## Response shape
127
151
 
128
152
  JSON methods resolve to:
package/docs/guide.ko.md CHANGED
@@ -123,6 +123,32 @@ const polished = await client.polish(draftText);
123
123
 
124
124
  입력 텍스트는 최대 100,000자입니다.
125
125
 
126
+ ## 이미지 AI
127
+
128
+ ```js
129
+ const result = await client.generateImages('흰 배경의 제품 사진', {
130
+ imageCount: 4,
131
+ size: '1024x1024',
132
+ outputFormat: 'webp',
133
+ idempotencyKey: 'product-draft-001'
134
+ });
135
+
136
+ const referenceResult = await client.generateImages('제품 모양과 구도는 유지하고 배경을 햇살 좋은 주방으로 변경', {
137
+ referenceImage: './reference.png',
138
+ referenceFilename: 'reference.png',
139
+ referenceContentType: 'image/png'
140
+ });
141
+
142
+ const job = await client.createImageGenerationJob('가로형 커버 시안', { imageCount: 20, size: '1536x1024' });
143
+ const status = await client.getImageJob(job.data.job_id);
144
+ ```
145
+
146
+ `imageCount`는 만들 이미지 장수이며 생략하면 1장입니다. 동기 생성·편집은 1~4장, 작업형 생성·편집은 1~50장입니다. 생성에 `referenceImage`를 함께 전달하면 참고 이미지의 구도·색감·제품 형태 등을 프롬프트와 조합할 수 있습니다. 편집은 50MB 이하의 PNG/JPEG/WebP 원본 이미지 한 장과 프롬프트를 받으며 마스크 파일은 지원하지 않습니다. 크기는 `1024x1024`, `1536x1024`, `1024x1536`, `1152x864`, `864x1152` 중에서 선택합니다. 성공 이미지 한 장당 25포인트가 확정되며 실패·취소 수량의 예약 포인트는 해제됩니다. 결과 보관 기간은 완료 후 24시간입니다.
147
+
148
+ `idempotencyKey`는 같은 요청이 통신 오류로 두 번 전송됐을 때 중복 생성과 중복 과금을 막는 안전번호입니다. 영문·숫자·밑줄·하이픈으로 8~128자를 만들고, 같은 작업을 다시 보낼 때는 같은 값을 사용하세요. 프롬프트나 옵션이 달라진 새 작업에는 새 값을 사용해야 합니다.
149
+
150
+ 지원 메서드: `generateImages`, `editImages`, `createImageGenerationJob`, `createImageEditJob`, `getImageJob`, `cancelImageJob`, `downloadImageJobImage`, `downloadImageJobArchive`.
151
+
126
152
  ## 응답 구조
127
153
 
128
154
  JSON 메서드:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apick-api",
3
- "version": "2.2.0",
4
- "description": "Official zero-dependency Node.js client for 25 APICK APIs. 에이픽 주요 API 25개를 간편하게 호출하는 공식 Node.js SDK.",
3
+ "version": "2.4.0",
4
+ "description": "Official zero-dependency Node.js client for APICK data, AI, and image APIs. 에이픽 데이터·AI·이미지 API 공식 Node.js SDK.",
5
5
  "type": "module",
6
6
  "main": "./src/index.cjs",
7
7
  "module": "./src/index.js",
@@ -27,14 +27,14 @@
27
27
  "node": ">=18"
28
28
  },
29
29
  "scripts": {
30
- "test": "node --test && npm run test:types",
31
- "test:types": "tsc -p tsconfig.json",
32
- "test:coverage": "node --test --experimental-test-coverage",
33
- "prepublishOnly": "npm test"
30
+ "test": "node --test && npm run test:types",
31
+ "test:types": "tsc -p tsconfig.json",
32
+ "test:coverage": "node --test --experimental-test-coverage",
33
+ "prepublishOnly": "npm test"
34
+ },
35
+ "devDependencies": {
36
+ "typescript": "^7.0.2"
34
37
  },
35
- "devDependencies": {
36
- "typescript": "^7.0.2"
37
- },
38
38
  "repository": {
39
39
  "type": "git",
40
40
  "url": "git+https://github.com/lead788/apick-api.git"
@@ -65,6 +65,7 @@
65
65
  "pdf",
66
66
  "excel",
67
67
  "tts-jobs",
68
- "text-summary"
68
+ "text-summary",
69
+ "image-generation"
69
70
  ]
70
71
  }
package/src/index.cjs CHANGED
@@ -3,6 +3,9 @@
3
3
  const DEFAULT_BASE_URL = 'https://apick.app';
4
4
  const DEFAULT_TIMEOUT_MS = 30_000;
5
5
  const MAX_OCR_BYTES = 50 * 1024 * 1024;
6
+ const MAX_IMAGE_AI_BYTES = 50 * 1024 * 1024;
7
+ const IMAGE_AI_SIZES = Object.freeze(['1024x1024', '1536x1024', '1024x1536', '1152x864', '864x1152']);
8
+ const IMAGE_AI_SIZE_SET = new Set(IMAGE_AI_SIZES);
6
9
  const TTS_VOICE_IDS = Object.freeze([
7
10
  'narrator_m_01', 'narrator_m_02', 'narrator_m_03', 'narrator_m_04', 'narrator_m_05',
8
11
  'narrator_f_10s_01', 'narrator_f_10s_02', 'narrator_f_10s_03',
@@ -37,7 +40,8 @@ const SERVICE_DEFINITIONS = Object.freeze({
37
40
  htmlToPdf: { endpoint: '/rest/html_to_pdf', timeoutMs: 25_000, output: 'binary', filename: 'document.pdf' },
38
41
  jsonToExcel: { endpoint: '/rest/json_to_excel', timeoutMs: 45_000, output: 'binary', filename: 'data.xlsx' },
39
42
  summarize: { endpoint: '/rest/llm/text_summary', timeoutMs: 75_000, output: 'json' },
40
- polish: { endpoint: '/rest/llm/text_polish', timeoutMs: 105_000, output: 'json' }
43
+ polish: { endpoint: '/rest/llm/text_polish', timeoutMs: 105_000, output: 'json' },
44
+ generateImages: { endpoint: '/rest/image-generation/generate', timeoutMs: 190_000, output: 'json' }
41
45
  });
42
46
 
43
47
  const SERVICES = Object.freeze(Object.fromEntries(
@@ -151,6 +155,7 @@ function inferImageType(filename) {
151
155
  const lower = String(filename || '').toLowerCase();
152
156
  if (lower.endsWith('.png')) return 'image/png';
153
157
  if (lower.endsWith('.jpg') || lower.endsWith('.jpeg')) return 'image/jpeg';
158
+ if (lower.endsWith('.webp')) return 'image/webp';
154
159
  return '';
155
160
  }
156
161
 
@@ -182,10 +187,11 @@ async function normalizeImage(image, options) {
182
187
  }
183
188
 
184
189
  const contentType = config.contentType || blob.type || inferImageType(filename);
185
- if (contentType !== 'image/png' && contentType !== 'image/jpeg') {
186
- throw new TypeError('OCR supports PNG and JPEG images only.');
190
+ const allowedTypes = config.allowedTypes || ['image/png', 'image/jpeg'];
191
+ if (!allowedTypes.includes(contentType)) {
192
+ throw new TypeError(config.typeError || 'OCR supports PNG and JPEG images only.');
187
193
  }
188
- if (blob.size > MAX_OCR_BYTES) {
194
+ if (blob.size > (config.maxBytes || MAX_OCR_BYTES)) {
189
195
  throw new RangeError('image must not exceed 50 MB.');
190
196
  }
191
197
  return { blob, filename, contentType };
@@ -522,6 +528,94 @@ class ApickClient {
522
528
  polish(text) {
523
529
  return this._call('polish', { text: requiredString('text', text, 100_000) });
524
530
  }
531
+
532
+ _imageOptions(prompt, options, maxCount) {
533
+ const config = options || {};
534
+ for (const key of ['model', 'quality', 'count', 'n', 'outputCompression', 'input_fidelity', 'moderation', 'mask', 'maskFilename', 'maskContentType']) {
535
+ if (Object.prototype.hasOwnProperty.call(config, key)) throw new TypeError(`${key} is not a supported image option.`);
536
+ }
537
+ const imageCount = positiveInteger('imageCount', config.imageCount, 1);
538
+ if (imageCount > maxCount) throw new RangeError(`imageCount must not exceed ${maxCount}.`);
539
+ const size = config.size || '1024x1024';
540
+ if (!IMAGE_AI_SIZE_SET.has(size)) throw new TypeError(`size must be one of: ${IMAGE_AI_SIZES.join(', ')}.`);
541
+ const payload = {
542
+ prompt: requiredString('prompt', prompt, 6_000), image_count: imageCount,
543
+ size, output_format: config.outputFormat || 'png',
544
+ background: config.background || 'auto'
545
+ };
546
+ if (config.idempotencyKey !== undefined) {
547
+ payload.idempotency_key = requiredString('idempotencyKey', config.idempotencyKey, 128);
548
+ if (!/^[A-Za-z0-9_-]{8,128}$/.test(payload.idempotency_key)) throw new TypeError('idempotencyKey must use 8-128 letters, numbers, underscores, or hyphens.');
549
+ }
550
+ return payload;
551
+ }
552
+
553
+ async generateImages(prompt, options) {
554
+ const config = options || {}, payload = this._imageOptions(prompt, config, 4);
555
+ if (config.referenceImage === undefined) return this._call('generateImages', payload);
556
+ const uploadOptions = {
557
+ filename: config.referenceFilename, contentType: config.referenceContentType,
558
+ allowedTypes:['image/png','image/jpeg','image/webp'], maxBytes:MAX_IMAGE_AI_BYTES,
559
+ typeError:'referenceImage must be PNG, JPEG, or WebP.'
560
+ };
561
+ const source = await normalizeImage(config.referenceImage, uploadOptions), form = new FormData();
562
+ Object.entries(payload).forEach(([key,value]) => form.append(key, String(value)));
563
+ form.append('reference_image', source.blob, source.filename);
564
+ return this._call('generateImages', null, form);
565
+ }
566
+
567
+ async editImages(image, prompt, options) {
568
+ const config = options || {}, payload = this._imageOptions(prompt, config, 4);
569
+ const uploadOptions = Object.assign({}, config, { allowedTypes:['image/png','image/jpeg','image/webp'], maxBytes:MAX_IMAGE_AI_BYTES, typeError:'image must be PNG, JPEG, or WebP.' });
570
+ const source = await normalizeImage(image, uploadOptions), form = new FormData();
571
+ Object.entries(payload).forEach(([key,value]) => form.append(key, String(value)));
572
+ form.append('image', source.blob, source.filename);
573
+ return this._call('generateImages', null, form, { endpoint:'/rest/image-generation/edit' });
574
+ }
575
+
576
+ async createImageGenerationJob(prompt, options) {
577
+ const config = options || {}, payload = this._imageOptions(prompt, config, 50);
578
+ if (config.referenceImage === undefined) return this._call('generateImages', payload, null, { endpoint:'/rest/image-generation/jobs/generate', timeoutMs:60_000 });
579
+ const uploadOptions = {
580
+ filename: config.referenceFilename, contentType: config.referenceContentType,
581
+ allowedTypes:['image/png','image/jpeg','image/webp'], maxBytes:MAX_IMAGE_AI_BYTES,
582
+ typeError:'referenceImage must be PNG, JPEG, or WebP.'
583
+ };
584
+ const source = await normalizeImage(config.referenceImage, uploadOptions), form = new FormData();
585
+ Object.entries(payload).forEach(([key,value]) => form.append(key, String(value)));
586
+ form.append('reference_image', source.blob, source.filename);
587
+ return this._call('generateImages', null, form, { endpoint:'/rest/image-generation/jobs/generate', timeoutMs:60_000 });
588
+ }
589
+
590
+ async createImageEditJob(image, prompt, options) {
591
+ const config = options || {}, payload = this._imageOptions(prompt, config, 50);
592
+ const uploadOptions = Object.assign({}, config, { allowedTypes:['image/png','image/jpeg','image/webp'], maxBytes:MAX_IMAGE_AI_BYTES, typeError:'image must be PNG, JPEG, or WebP.' });
593
+ const source = await normalizeImage(image, uploadOptions), form = new FormData();
594
+ Object.entries(payload).forEach(([key,value]) => form.append(key, String(value)));
595
+ form.append('image', source.blob, source.filename);
596
+ return this._call('generateImages', null, form, { endpoint:'/rest/image-generation/jobs/edit', timeoutMs:60_000 });
597
+ }
598
+
599
+ getImageJob(jobId) {
600
+ const id = normalizeTtsJobId(jobId);
601
+ return this._call('generateImages', null, null, { endpoint:'/rest/image-generation/jobs/'+id, method:'GET', timeoutMs:30_000 });
602
+ }
603
+
604
+ cancelImageJob(jobId) {
605
+ const id = normalizeTtsJobId(jobId);
606
+ return this._call('generateImages', null, null, { endpoint:'/rest/image-generation/jobs/'+id+'/cancel', timeoutMs:30_000 });
607
+ }
608
+
609
+ downloadImageJobImage(jobId, index) {
610
+ const id=normalizeTtsJobId(jobId), value=Number(index);
611
+ if(!Number.isInteger(value)||value<0||value>49) throw new RangeError('index must be an integer from 0 through 49.');
612
+ return this._call('generateImages', null, null, { endpoint:'/rest/image-generation/jobs/'+id+'/images/'+value, method:'GET', output:'binary', filename:id+'-'+value+'.bin', timeoutMs:60_000 });
613
+ }
614
+
615
+ downloadImageJobArchive(jobId) {
616
+ const id=normalizeTtsJobId(jobId);
617
+ return this._call('generateImages', null, null, { endpoint:'/rest/image-generation/jobs/'+id+'/result', method:'GET', output:'binary', filename:id+'.zip', timeoutMs:60_000 });
618
+ }
525
619
  }
526
620
 
527
621
  module.exports = {
package/src/index.d.ts CHANGED
@@ -27,6 +27,18 @@ export interface OcrOptions {
27
27
  contentType?: 'image/png' | 'image/jpeg';
28
28
  }
29
29
 
30
+ export type ImageAiFormat = 'png' | 'jpeg' | 'webp';
31
+ export type ImageAiBackground = 'auto' | 'opaque' | 'transparent';
32
+ export type ImageAiSize = '1024x1024' | '1536x1024' | '1024x1536' | '1152x864' | '864x1152';
33
+ export type ImageAiStatus = 'waiting' | 'processing' | 'completed' | 'completed_partial' | 'cancelled' | 'failed';
34
+ export type ApickImageErrorCode = `APICK_IMAGE_${string}`;
35
+ export interface ImageAiOptions { imageCount?: number; size?: ImageAiSize; outputFormat?: ImageAiFormat; background?: ImageAiBackground; idempotencyKey?: string; }
36
+ export interface ImageAiGenerateOptions extends ImageAiOptions { referenceImage?: string|BinaryInput|ArrayBuffer|ArrayBufferView; referenceFilename?: string; referenceContentType?: 'image/png'|'image/jpeg'|'image/webp'; }
37
+ export interface ImageAiEditOptions extends ImageAiOptions { filename?: string; contentType?: 'image/png'|'image/jpeg'|'image/webp'; }
38
+ export interface ImageAiResultImage { index:number; b64_json:string; mime_type:'image/png'|'image/jpeg'|'image/webp'; width:number; height:number; }
39
+ export interface ImageAiResultData { request_id:string; image_count:number; images:ImageAiResultImage[]; idempotent_replay?:boolean; }
40
+ export interface ImageAiJobData { job_id:string; status:ImageAiStatus; requested_count:number; completed_count?:number; failed_count?:number; charged_point?:number; result_available?:boolean; expires_at?:string|null; error_code?:ApickImageErrorCode|null; }
41
+
30
42
  export interface MaskResidentNumberOptions extends OcrOptions {
31
43
  type: 1 | 2 | 3;
32
44
  }
@@ -111,6 +123,14 @@ export class ApickClient {
111
123
  jsonToExcel(data: unknown[], options?: { sheetName?: string }): Promise<ApickBinaryResult>;
112
124
  summarize(text: string): Promise<ApickResult>;
113
125
  polish(text: string): Promise<ApickResult>;
126
+ generateImages(prompt:string, options?:ImageAiGenerateOptions): Promise<ApickResult<ImageAiResultData>>;
127
+ editImages(image:string|BinaryInput|ArrayBuffer|ArrayBufferView, prompt:string, options?:ImageAiEditOptions): Promise<ApickResult<ImageAiResultData>>;
128
+ createImageGenerationJob(prompt:string, options?:ImageAiGenerateOptions): Promise<ApickResult<ImageAiJobData>>;
129
+ createImageEditJob(image:string|BinaryInput|ArrayBuffer|ArrayBufferView, prompt:string, options?:ImageAiEditOptions): Promise<ApickResult<ImageAiJobData>>;
130
+ getImageJob(jobId:string): Promise<ApickResult<ImageAiJobData>>;
131
+ cancelImageJob(jobId:string): Promise<ApickResult<ImageAiJobData>>;
132
+ downloadImageJobImage(jobId:string,index:number): Promise<ApickBinaryResult>;
133
+ downloadImageJobArchive(jobId:string): Promise<ApickBinaryResult>;
114
134
  }
115
135
 
116
136
  export default ApickClient;