@runapi.ai/gpt-4o-image
Advanced tools
+7
-12
@@ -5,18 +5,13 @@ import { AsyncTaskStatus, HttpClient, RequestOptions, PollingOptions, ClientOptions } from '@runapi.ai/core'; | ||
| type Gpt4oImageModel = 'gpt-4o-image'; | ||
| type ImageSize = '1:1' | '3:2' | '2:3'; | ||
| type VariantCount = 1 | 2 | 4; | ||
| type FallbackModel = 'GPT_IMAGE_1' | 'FLUX_MAX'; | ||
| type AspectRatio = '1:1' | '3:2' | '2:3'; | ||
| type OutputCount = 1 | 2 | 4; | ||
| interface TextToImageParams { | ||
| model: Gpt4oImageModel; | ||
| prompt?: string; | ||
| size: ImageSize; | ||
| files_url?: string[]; | ||
| aspect_ratio: AspectRatio; | ||
| source_image_urls?: string[]; | ||
| mask_url?: string; | ||
| n_variants?: VariantCount; | ||
| output_count?: OutputCount; | ||
| callback_url?: string; | ||
| is_enhance?: boolean; | ||
| upload_cn?: boolean; | ||
| enable_fallback?: boolean; | ||
| fallback_model?: FallbackModel; | ||
| file_url?: string; | ||
| enable_prompt_expansion?: boolean; | ||
| } | ||
@@ -55,2 +50,2 @@ interface TaskCreateResponse { | ||
| export { type FallbackModel, Gpt4oImageClient, type Gpt4oImageModel, type Image, type ImageSize, type TaskCreateResponse, type TextToImageParams, type TextToImageResponse, type VariantCount }; | ||
| export { type AspectRatio, Gpt4oImageClient, type Gpt4oImageModel, type Image, type OutputCount, type TaskCreateResponse, type TextToImageParams, type TextToImageResponse }; |
+7
-12
@@ -5,18 +5,13 @@ import { AsyncTaskStatus, HttpClient, RequestOptions, PollingOptions, ClientOptions } from '@runapi.ai/core'; | ||
| type Gpt4oImageModel = 'gpt-4o-image'; | ||
| type ImageSize = '1:1' | '3:2' | '2:3'; | ||
| type VariantCount = 1 | 2 | 4; | ||
| type FallbackModel = 'GPT_IMAGE_1' | 'FLUX_MAX'; | ||
| type AspectRatio = '1:1' | '3:2' | '2:3'; | ||
| type OutputCount = 1 | 2 | 4; | ||
| interface TextToImageParams { | ||
| model: Gpt4oImageModel; | ||
| prompt?: string; | ||
| size: ImageSize; | ||
| files_url?: string[]; | ||
| aspect_ratio: AspectRatio; | ||
| source_image_urls?: string[]; | ||
| mask_url?: string; | ||
| n_variants?: VariantCount; | ||
| output_count?: OutputCount; | ||
| callback_url?: string; | ||
| is_enhance?: boolean; | ||
| upload_cn?: boolean; | ||
| enable_fallback?: boolean; | ||
| fallback_model?: FallbackModel; | ||
| file_url?: string; | ||
| enable_prompt_expansion?: boolean; | ||
| } | ||
@@ -55,2 +50,2 @@ interface TaskCreateResponse { | ||
| export { type FallbackModel, Gpt4oImageClient, type Gpt4oImageModel, type Image, type ImageSize, type TaskCreateResponse, type TextToImageParams, type TextToImageResponse, type VariantCount }; | ||
| export { type AspectRatio, Gpt4oImageClient, type Gpt4oImageModel, type Image, type OutputCount, type TaskCreateResponse, type TextToImageParams, type TextToImageResponse }; |
+2
-2
| { | ||
| "name": "@runapi.ai/gpt-4o-image", | ||
| "version": "0.2.4", | ||
| "version": "0.2.5", | ||
| "description": "RunAPI GPT-4o Image SDK for JavaScript, Ruby, and Go", | ||
@@ -30,3 +30,3 @@ "main": "./dist/index.js", | ||
| "dependencies": { | ||
| "@runapi.ai/core": "^0.2.4" | ||
| "@runapi.ai/core": "^0.2.5" | ||
| }, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
+1
-1
| # GPT-4o Image API JavaScript SDK for RunAPI | ||
| 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. | ||
| 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. | ||
@@ -5,0 +5,0 @@ 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. |
28441
-1.07%201
-2.43%Updated