@runapi.ai/gpt-4o-image 0.2.3 → 0.2.5

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # GPT-4o Image API JavaScript SDK for RunAPI
2
2
 
3
- The gpt-4o image api JavaScript SDK is the language-specific package for GPT-4o Image on RunAPI. Use this gpt-4o image api package for text-to-image, image-to-image, edit, and creative production flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in JavaScript.
3
+ The gpt-4o image api JavaScript SDK is the language-specific package for GPT-4o Image on RunAPI. Use this gpt-4o image api package for text-to-image, image editing, and creative production flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in JavaScript.
4
4
 
5
5
  This gpt-4o image api README is the JavaScript package guide inside the public `gpt4o-image-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/gpt-4o-image; for API reference, use https://runapi.ai/docs#gpt-4o-image; for SDK docs, use https://runapi.ai/docs#sdk-gpt-4o-image.
6
6
 
package/dist/index.d.mts CHANGED
@@ -2,22 +2,17 @@ import { AsyncTaskStatus, HttpClient, RequestOptions, PollingOptions, ClientOpti
2
2
  export { AuthenticationError, InsufficientCreditsError, NetworkError, NotFoundError, RateLimitError, RunApiError, ServiceUnavailableError, TaskFailedError, TaskTimeoutError, TimeoutError, ValidationError } from '@runapi.ai/core';
3
3
 
4
4
  type Gpt4oImageModel = 'gpt-4o-image';
5
- type ImageSize = '1:1' | '3:2' | '2:3';
6
- type VariantCount = 1 | 2 | 4;
7
- type FallbackModel = 'GPT_IMAGE_1' | 'FLUX_MAX';
5
+ type AspectRatio = '1:1' | '3:2' | '2:3';
6
+ type OutputCount = 1 | 2 | 4;
8
7
  interface TextToImageParams {
9
8
  model: Gpt4oImageModel;
10
9
  prompt?: string;
11
- size: ImageSize;
12
- files_url?: string[];
10
+ aspect_ratio: AspectRatio;
11
+ source_image_urls?: string[];
13
12
  mask_url?: string;
14
- n_variants?: VariantCount;
13
+ output_count?: OutputCount;
15
14
  callback_url?: string;
16
- is_enhance?: boolean;
17
- upload_cn?: boolean;
18
- enable_fallback?: boolean;
19
- fallback_model?: FallbackModel;
20
- file_url?: string;
15
+ enable_prompt_expansion?: boolean;
21
16
  }
22
17
  interface TaskCreateResponse {
23
18
  id: string;
@@ -51,4 +46,4 @@ declare class Gpt4oImageClient {
51
46
  constructor(options?: ClientOptions);
52
47
  }
53
48
 
54
- export { type FallbackModel, Gpt4oImageClient, type Gpt4oImageModel, type Image, type ImageSize, type TaskCreateResponse, type TextToImageParams, type TextToImageResponse, type VariantCount };
49
+ export { type AspectRatio, Gpt4oImageClient, type Gpt4oImageModel, type Image, type OutputCount, type TaskCreateResponse, type TextToImageParams, type TextToImageResponse };
package/dist/index.d.ts CHANGED
@@ -2,22 +2,17 @@ import { AsyncTaskStatus, HttpClient, RequestOptions, PollingOptions, ClientOpti
2
2
  export { AuthenticationError, InsufficientCreditsError, NetworkError, NotFoundError, RateLimitError, RunApiError, ServiceUnavailableError, TaskFailedError, TaskTimeoutError, TimeoutError, ValidationError } from '@runapi.ai/core';
3
3
 
4
4
  type Gpt4oImageModel = 'gpt-4o-image';
5
- type ImageSize = '1:1' | '3:2' | '2:3';
6
- type VariantCount = 1 | 2 | 4;
7
- type FallbackModel = 'GPT_IMAGE_1' | 'FLUX_MAX';
5
+ type AspectRatio = '1:1' | '3:2' | '2:3';
6
+ type OutputCount = 1 | 2 | 4;
8
7
  interface TextToImageParams {
9
8
  model: Gpt4oImageModel;
10
9
  prompt?: string;
11
- size: ImageSize;
12
- files_url?: string[];
10
+ aspect_ratio: AspectRatio;
11
+ source_image_urls?: string[];
13
12
  mask_url?: string;
14
- n_variants?: VariantCount;
13
+ output_count?: OutputCount;
15
14
  callback_url?: string;
16
- is_enhance?: boolean;
17
- upload_cn?: boolean;
18
- enable_fallback?: boolean;
19
- fallback_model?: FallbackModel;
20
- file_url?: string;
15
+ enable_prompt_expansion?: boolean;
21
16
  }
22
17
  interface TaskCreateResponse {
23
18
  id: string;
@@ -51,4 +46,4 @@ declare class Gpt4oImageClient {
51
46
  constructor(options?: ClientOptions);
52
47
  }
53
48
 
54
- export { type FallbackModel, Gpt4oImageClient, type Gpt4oImageModel, type Image, type ImageSize, type TaskCreateResponse, type TextToImageParams, type TextToImageResponse, type VariantCount };
49
+ export { type AspectRatio, Gpt4oImageClient, type Gpt4oImageModel, type Image, type OutputCount, type TaskCreateResponse, type TextToImageParams, type TextToImageResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runapi.ai/gpt-4o-image",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "RunAPI GPT-4o Image SDK for JavaScript, Ruby, and Go",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -27,7 +27,7 @@
27
27
  "clean": "rm -rf dist"
28
28
  },
29
29
  "dependencies": {
30
- "@runapi.ai/core": "^0.2.3"
30
+ "@runapi.ai/core": "^0.2.5"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^20.0.0",