@shop-os/modelkit 0.5.0 → 0.6.1

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/dist/index.d.ts CHANGED
@@ -71,7 +71,62 @@ type ModelType = "text" | "image" | "video" | "audio"
71
71
  /** A face driven by speech (`lipsync`): a `sourceVideo` re-timed or a still `image` animated. */
72
72
  | "lipsync"
73
73
  /** Speech to text (`transcribe`). */
74
- | "transcription";
74
+ | "transcription"
75
+ /** A prompt and/or photos of an object in, a GLB 3D model out. */
76
+ | "model3d";
77
+ /**
78
+ * How a `model3d` row's provider API is shaped. The adapter builds the request body and
79
+ * reads the result per family; everything a caller shows (inputs, views, options) is
80
+ * data on the row's `constraints.model3d`.
81
+ */
82
+ type Model3dFamily = "trellis" | "hunyuan" | "tripo" | "rodin" | "meshy" | "hi3d" | "sam";
83
+ /**
84
+ * How a `model3d` row takes extra views of the object:
85
+ * - `none`: one image only.
86
+ * - `unordered`: a list of images in any order (Meshy, Rodin).
87
+ * - `ordered`: front, left, back, right, contiguous from the front (Tripo).
88
+ * - `named`: one slot per side (Hunyuan, Hi3D).
89
+ */
90
+ type Model3dViews = "none" | "unordered" | "ordered" | "named";
91
+ type Model3dTexture = "none" | "standard" | "detailed";
92
+ /** fal paths a `model3d` row calls, by what the request carries. */
93
+ interface Model3dEndpoints {
94
+ /** A prompt and no image. */
95
+ text?: string;
96
+ /** One image. */
97
+ image?: string;
98
+ /** More than one image (the main image plus views). */
99
+ multiImage?: string;
100
+ }
101
+ /** What a `model3d` row takes and offers; see Model3dFamily. */
102
+ interface Model3dConstraints {
103
+ family: Model3dFamily;
104
+ endpoints: Model3dEndpoints;
105
+ /** Takes a text prompt (text-to-3D, or SAM's object name). */
106
+ text: boolean;
107
+ /** Needs an image whatever else is sent. */
108
+ imageRequired: boolean;
109
+ /** Needs a prompt whatever else is sent (SAM names the object to lift). */
110
+ promptRequired?: boolean;
111
+ views: Model3dViews;
112
+ /** Most images one request takes, the main image included. */
113
+ maxImages: number;
114
+ /** Texture choices; empty means the model has no texture switch. */
115
+ texture: Model3dTexture[];
116
+ pbr: boolean;
117
+ /** Takes a texture prompt and a texture image (Meshy). */
118
+ textureRef: boolean;
119
+ /** The provider takes a seed (for Meshy, only from a prompt). */
120
+ seed: boolean;
121
+ /** Largest seed the provider takes (Rodin: 65535); absent, any non-negative integer. */
122
+ seedMax?: number;
123
+ /** A quality or resolution choice the row prices by; absent when it has none. */
124
+ resolutions?: {
125
+ label: string;
126
+ options: string[];
127
+ default: string;
128
+ };
129
+ }
75
130
  /** What a `video-tool` row does to its source clip. */
76
131
  type VideoToolKind = "upscale" | "interpolate" | "hdr" | "bg-remove" | "subtitles";
77
132
  /** Container/codec a video-tool row can write. */
@@ -271,6 +326,69 @@ interface VideoToolResult {
271
326
  usage: UsageEvent;
272
327
  raw?: unknown;
273
328
  }
329
+ /** One 3D generation. Image URLs must be public; the provider fetches them. */
330
+ interface Model3dRequest {
331
+ model: string;
332
+ prompt?: string;
333
+ /** The main (front) image. */
334
+ image?: string;
335
+ /**
336
+ * Extra views of the same object; read only by rows whose `views` is not `none`. `top` is a
337
+ * fifth photo that only `unordered` rows send (all five fit Rodin's `maxImages` 5; Meshy sends
338
+ * the first 4 set); `named` and `ordered` rows have no slot for it and ignore it.
339
+ */
340
+ views?: {
341
+ back?: string;
342
+ left?: string;
343
+ right?: string;
344
+ top?: string;
345
+ };
346
+ /** Rows with `textureRef`. */
347
+ texturePrompt?: string;
348
+ textureImage?: string;
349
+ /** The row's `texture` default when unset; ignored by rows without a texture switch. */
350
+ texture?: Model3dTexture;
351
+ /** Rows with `pbr`; only applied to a textured model. */
352
+ pbr?: boolean;
353
+ /** One of the row's `resolutions.options`; its default when unset. */
354
+ resolution?: string;
355
+ /** Rows with `seed`. */
356
+ seed?: number;
357
+ }
358
+ /**
359
+ * A submitted 3D job. Plain JSON so a caller can store it and pass it back to
360
+ * `model3dStatus` / `model3dResult` / `cancelModel3d` from another process.
361
+ */
362
+ interface Model3dSubmission {
363
+ model: string;
364
+ provider: "fal";
365
+ /** The fal path the job went to. */
366
+ endpoint: string;
367
+ /** The priced option combination (pro-backend credit_pricing_flat model key). */
368
+ sku: string;
369
+ requestId: string;
370
+ statusUrl: string;
371
+ responseUrl: string;
372
+ cancelUrl: string;
373
+ /** Epoch ms when the kit submitted the job; the result's usage `latencyMs` is measured from it. */
374
+ submittedAt?: number;
375
+ }
376
+ type Model3dStatus = "queued" | "running" | "completed";
377
+ interface Model3dResult {
378
+ /** The binary glTF the provider made. */
379
+ glb: {
380
+ url: string;
381
+ mime?: string;
382
+ bytes?: number;
383
+ };
384
+ /** The provider's still of the model, when it returns one. */
385
+ thumbnail?: {
386
+ url: string;
387
+ };
388
+ sku: string;
389
+ usage: UsageEvent;
390
+ raw?: unknown;
391
+ }
274
392
  interface AudioRequest {
275
393
  model: string;
276
394
  prompt: string;
@@ -575,6 +693,8 @@ interface ModelConstraints {
575
693
  };
576
694
  /** What a `video-tool` row accepts. Read it through `videoToolConstraints(row)`. */
577
695
  tool?: VideoToolConstraints;
696
+ /** Required on `model3d` rows. */
697
+ model3d?: Model3dConstraints;
578
698
  /** Whether the output has sound. Read it through `outputAudio(row)`, which tolerates bad data. */
579
699
  audio?: AudioOutput;
580
700
  /** Prompt conventions. Read them through `promptConventions(row)`, which fills the default. */
@@ -600,7 +720,8 @@ type ProviderOptions = {
600
720
  [key: string]: ProviderOptionValue;
601
721
  };
602
722
  };
603
- type UsageUnit = "tokens" | "images" | "seconds" | "reported_cost_usd" | "compute_seconds";
723
+ /** `requests`: one call billed at a flat price per request (a 3D job); the usage sink's `REQUESTS`. */
724
+ type UsageUnit = "tokens" | "images" | "seconds" | "reported_cost_usd" | "compute_seconds" | "requests";
604
725
  type UsageModality = "TEXT" | "IMAGE" | "VIDEO" | "AUDIO";
605
726
  type PricingKind = "token" | "image_size" | "video_per_second" | "flat";
606
727
  /** What a model picker shows for a row. Free of any surface-specific ids. */
@@ -967,6 +1088,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
967
1088
  dubbing: "dubbing";
968
1089
  lipsync: "lipsync";
969
1090
  transcription: "transcription";
1091
+ model3d: "model3d";
970
1092
  }>;
971
1093
  adapter: z.ZodEnum<{
972
1094
  "ai-sdk-text": "ai-sdk-text";
@@ -1163,6 +1285,46 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1163
1285
  translationLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1164
1286
  maxSecondsAbove1080p: z.ZodOptional<z.ZodNumber>;
1165
1287
  }, z.core.$loose>>;
1288
+ model3d: z.ZodOptional<z.ZodObject<{
1289
+ family: z.ZodEnum<{
1290
+ trellis: "trellis";
1291
+ hunyuan: "hunyuan";
1292
+ tripo: "tripo";
1293
+ rodin: "rodin";
1294
+ meshy: "meshy";
1295
+ hi3d: "hi3d";
1296
+ sam: "sam";
1297
+ }>;
1298
+ endpoints: z.ZodObject<{
1299
+ text: z.ZodOptional<z.ZodString>;
1300
+ image: z.ZodOptional<z.ZodString>;
1301
+ multiImage: z.ZodOptional<z.ZodString>;
1302
+ }, z.core.$loose>;
1303
+ text: z.ZodBoolean;
1304
+ imageRequired: z.ZodBoolean;
1305
+ promptRequired: z.ZodOptional<z.ZodBoolean>;
1306
+ views: z.ZodEnum<{
1307
+ none: "none";
1308
+ unordered: "unordered";
1309
+ ordered: "ordered";
1310
+ named: "named";
1311
+ }>;
1312
+ maxImages: z.ZodNumber;
1313
+ texture: z.ZodArray<z.ZodEnum<{
1314
+ none: "none";
1315
+ standard: "standard";
1316
+ detailed: "detailed";
1317
+ }>>;
1318
+ pbr: z.ZodBoolean;
1319
+ textureRef: z.ZodBoolean;
1320
+ seed: z.ZodBoolean;
1321
+ seedMax: z.ZodOptional<z.ZodNumber>;
1322
+ resolutions: z.ZodOptional<z.ZodObject<{
1323
+ label: z.ZodString;
1324
+ options: z.ZodArray<z.ZodString>;
1325
+ default: z.ZodString;
1326
+ }, z.core.$loose>>;
1327
+ }, z.core.$loose>>;
1166
1328
  audio: z.ZodOptional<z.ZodUnknown>;
1167
1329
  prompt: z.ZodOptional<z.ZodUnknown>;
1168
1330
  }, z.core.$loose>;
@@ -1351,6 +1513,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1351
1513
  seconds: "seconds";
1352
1514
  reported_cost_usd: "reported_cost_usd";
1353
1515
  compute_seconds: "compute_seconds";
1516
+ requests: "requests";
1354
1517
  }>;
1355
1518
  slug: z.ZodOptional<z.ZodString>;
1356
1519
  providerLabel: z.ZodOptional<z.ZodString>;
@@ -1505,6 +1668,13 @@ interface Adapter {
1505
1668
  videoToolStatus?(sub: VideoToolSubmission, ctx: AdapterContext): Promise<VideoToolStatus>;
1506
1669
  videoToolResult?(sub: VideoToolSubmission, ctx: AdapterContext, webhook?: FalWebhookBody): Promise<VideoToolResult>;
1507
1670
  cancelVideoTool?(sub: VideoToolSubmission, ctx: AdapterContext): Promise<boolean>;
1671
+ /** 3D models run as provider jobs the caller tracks; see ModelKit.submitModel3d. */
1672
+ submitModel3d?(req: Model3dRequest, ctx: AdapterContext, opts: {
1673
+ webhookUrl?: string;
1674
+ }): Promise<Model3dSubmission>;
1675
+ model3dStatus?(sub: Model3dSubmission, ctx: AdapterContext): Promise<Model3dStatus>;
1676
+ model3dResult?(sub: Model3dSubmission, ctx: AdapterContext, webhook?: FalWebhookBody): Promise<Model3dResult>;
1677
+ cancelModel3d?(sub: Model3dSubmission, ctx: AdapterContext): Promise<boolean>;
1508
1678
  /**
1509
1679
  * Turn a media reference into an AI SDK file part the provider's language
1510
1680
  * model accepts. Google uploads large videos through the Files API.
@@ -1778,6 +1948,21 @@ interface ModelKit extends TextMethods, AudioNodeMethods {
1778
1948
  }): Promise<VideoToolResult>;
1779
1949
  /** True when the provider accepted the cancel, false when the job had already ended. */
1780
1950
  cancelVideoTool(sub: VideoToolSubmission, call?: CallContext): Promise<boolean>;
1951
+ /**
1952
+ * Start a 3D generation (`type: "model3d"`) and return without waiting. Store the
1953
+ * submission; the provider posts to `call.webhookUrl` when the job ends.
1954
+ */
1955
+ submitModel3d(req: Model3dRequest, call?: VideoToolCallContext): Promise<Model3dSubmission>;
1956
+ model3dStatus(sub: Model3dSubmission, call?: CallContext): Promise<Model3dStatus>;
1957
+ /**
1958
+ * The finished model. Pass the verified webhook body when there is one; without it the
1959
+ * kit fetches the provider's stored result. Emits the usage event.
1960
+ */
1961
+ model3dResult(sub: Model3dSubmission, call?: CallContext & {
1962
+ webhook?: FalWebhookBody;
1963
+ }): Promise<Model3dResult>;
1964
+ /** True when the provider accepted the cancel, false when the job had already ended. */
1965
+ cancelModel3d(sub: Model3dSubmission, call?: CallContext): Promise<boolean>;
1781
1966
  }
1782
1967
  interface LanguageModelHandle {
1783
1968
  model: LanguageModelV3;
@@ -1851,6 +2036,72 @@ declare function planVideoTool(row: CatalogModel, req: Omit<VideoToolRequest, "m
1851
2036
  */
1852
2037
  declare const VIDEO_TOOL_MODELS: CatalogModel[];
1853
2038
 
2039
+ /**
2040
+ * 3D generation on fal: the newest model of each 3D family. A request's price depends on
2041
+ * its options (texture, PBR, views, resolution), so each row bills one flat price per
2042
+ * option combination: `model3dSkus(row)` lists them and pro-backend keeps a
2043
+ * credit_pricing_flat row for each.
2044
+ */
2045
+ declare const MODEL3D_MODELS: CatalogModel[];
2046
+
2047
+ /** A `model3d` row's spec, or undefined for any other row. */
2048
+ declare function model3dConstraints(row: CatalogModel): Model3dConstraints | undefined;
2049
+ /** Which inputs a request carries (or a canvas node has wired). */
2050
+ interface Model3dWired {
2051
+ prompt: boolean;
2052
+ image: boolean;
2053
+ back: boolean;
2054
+ left: boolean;
2055
+ right: boolean;
2056
+ /** The fifth photo (`views.top`); only `unordered` rows read it. */
2057
+ top?: boolean;
2058
+ }
2059
+ /**
2060
+ * The image slots the fal adapter's request mapping (`model3dCall`) fills for each kind of
2061
+ * views, in the order it sends them. A row's `maxImages` may not exceed its kind's count.
2062
+ */
2063
+ declare const MODEL3D_IMAGE_SLOTS: {
2064
+ readonly none: readonly ["image"];
2065
+ readonly named: readonly ["image", "back", "left", "right"];
2066
+ readonly ordered: readonly ["image", "left", "back", "right"];
2067
+ readonly unordered: readonly ["image", "back", "left", "right", "top"];
2068
+ };
2069
+ type Model3dInputRefusal = "model3d_needs_image" | "model3d_needs_prompt" | "model3d_needs_input" | "model3d_views_need_image" | "model3d_views_out_of_order";
2070
+ /** Why a row cannot run with these inputs, or null when it can. */
2071
+ declare function model3dInputRefusal(spec: Model3dConstraints, wired: Model3dWired): Model3dInputRefusal | null;
2072
+ /** Whether the row's provider takes this seed: a non-negative integer up to its `seedMax`. */
2073
+ declare function model3dSeedFits(spec: Model3dConstraints, seed: number): boolean;
2074
+ /** The texture a request gets: its own when the row offers it, else the row's default. */
2075
+ declare function model3dTexture(spec: Model3dConstraints, requested: Model3dTexture | undefined): Model3dTexture;
2076
+ /** The resolution a request gets: its own when the row offers it, else the row's default. */
2077
+ declare function model3dResolution(spec: Model3dConstraints, requested: string | undefined): string | undefined;
2078
+ /** The options a request sets that change its price. */
2079
+ interface Model3dPricedOptions {
2080
+ texture?: Model3dTexture;
2081
+ pbr?: boolean;
2082
+ resolution?: string;
2083
+ }
2084
+ /**
2085
+ * What the request carries that changes its price: an image (Tripo prices text lower)
2086
+ * and side views (Hunyuan adds for them). A quote that cannot tell passes both true.
2087
+ */
2088
+ interface Model3dPricedInputs {
2089
+ image: boolean;
2090
+ views: boolean;
2091
+ }
2092
+ /** The pro-backend credit_pricing_flat key one request bills under. */
2093
+ declare function model3dPricingSku(row: CatalogModel, options: Model3dPricedOptions, inputs: Model3dPricedInputs): string;
2094
+ /** Every SKU a row can bill under; pro-backend needs a price for each. */
2095
+ declare function model3dSkus(row: CatalogModel): string[];
2096
+
2097
+ /** The fal path and body for one request. */
2098
+ interface Model3dCall {
2099
+ endpoint: string;
2100
+ input: JsonObject;
2101
+ }
2102
+ /** The fal path and body for one request, by the row's family. Pure; exported for tests. */
2103
+ declare function model3dCall(row: CatalogModel, spec: Model3dConstraints, req: Model3dRequest): Model3dCall;
2104
+
1854
2105
  /**
1855
2106
  * All adapters registered. Keys default to process.env (pro = bare names,
1856
2107
  * enterprise = ENTERPRISE_ prefix, sloosh = SLOOSH_ prefix) when `keys` is omitted.
@@ -1886,4 +2137,4 @@ declare function describeThrown(cause: unknown): ThrownErrorInfo;
1886
2137
  /** Add the AI SDK `GeneratedFile` accessors to adapter image bytes. base64 is computed on first read. */
1887
2138
  declare function toGeneratedImage(image: ImageBytes): GeneratedImage;
1888
2139
 
1889
- export { ADAPTER_IDS, ADAPTER_KEYS, ARRAY_INPUT_SPEC_KEYS, AUDIO_INPUT_SPEC_KEYS, type Adapter, type AdapterContext, type AdapterEndpoints, type AdapterId, type AdapterRegistry, type AiTextProviderOptions, type ArrayInputSpecKey, type AspectRatio, type AudioNodeMethods, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type CatalogTextModel, DEFAULT_ADAPTERS, type DataOnlyRow, type DataOnlyVerdict, type DefaultObjectOutput, type DubbingOutcome, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type FalWebhookBody, type GeneratedImage, IMAGE_INPUT_SPEC_KEYS, INPUT_SPEC_SUPPORTS_KEYS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type InputSpec, type InputSpecDimensions, type InputSpecIssue, type InputSpecKey, InputSpecSchema, type JsonObject, JsonObjectSchema, type JsonPrimitive, type JsonValue, JsonValueSchema, type KeyTier, type LanguageModelHandle, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MODELS, type MaskBox, type MaskPoint, type MediaJobCallContext, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type ModelConstraints, type ModelKit, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, type ModelkitGenerateObjectOptions, type ModelkitGenerateTextOptions, type ModelkitStreamObjectOptions, type ModelkitStreamTextOptions, type ObjectOutput, type ObjectResult, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveResult, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, type TextMethods, type TextModelInstance, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_INPUT_SPEC_KEYS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceChangeRequest, type VoiceGender, type VoiceOption, type Warning, adapterServesType, aiSdkTextAdapter, arkAdapter, aspectRatioToSize, classifyHttpError, compareCatalogOrder, createDefaultModelKit, createModelKit, dataOnlyCapable, describe, describeThrown, generateImage as experimental_generateImage, falAdapter, falWebhookBodySchema, fileCatalogCache, generateAudio, generateImage, generateObject, generateText, generateVideo, googleGenaiAdapter, googleImageAdapter, hasAwsCredentials, higgsfieldAdapter, isArrayInputSpecKey, isInputSpecKey, isListed, isListedOn, isModelKitError, keysFromEnv, languageModel, liveCatalog, liveState, mergeTextProviderOptions, missingTierKeys, nearestAspectRatio, normalizeExposure, openaiImageAdapter, passthroughTextModel, planVideoTool, pollUntil, prepareMediaPart, primeCatalog, prodiaAdapter, readErrorBody, replicateAdapter, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveKeys, resolveLipsyncOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, shouldRetry, sleep, sortCatalogRows, streamObject, streamText, textUsageEvent, toGeneratedImage, validateInputSpec, videoLengthViolation, videoToolConstraints, withRetry, xaiVideoAdapter };
2140
+ export { ADAPTER_IDS, ADAPTER_KEYS, ARRAY_INPUT_SPEC_KEYS, AUDIO_INPUT_SPEC_KEYS, type Adapter, type AdapterContext, type AdapterEndpoints, type AdapterId, type AdapterRegistry, type AiTextProviderOptions, type ArrayInputSpecKey, type AspectRatio, type AudioNodeMethods, type AudioOutput, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type CatalogTextModel, DEFAULT_ADAPTERS, type DataOnlyRow, type DataOnlyVerdict, type DefaultObjectOutput, type DubbingOutcome, type DubbingRequest, type DubbingResult, type Exposure, ExposureSchema, type FalWebhookBody, type GeneratedImage, IMAGE_INPUT_SPEC_KEYS, INPUT_SPEC_SUPPORTS_KEYS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type InputSpec, type InputSpecDimensions, type InputSpecIssue, type InputSpecKey, InputSpecSchema, type JsonObject, JsonObjectSchema, type JsonPrimitive, type JsonValue, JsonValueSchema, type KeyTier, type LanguageModelHandle, type LanguageOption, type Lifecycle, type LipsyncRequest, type LipsyncResult, type LiveCatalogState, MODEL3D_IMAGE_SLOTS, MODEL3D_MODELS, MODELS, type MaskBox, type MaskPoint, type MediaJobCallContext, type MediaNodeDefaults, type MediaOutput, type MediaPart, type MediaRef, type Model3dCall, type Model3dConstraints, type Model3dEndpoints, type Model3dFamily, type Model3dInputRefusal, type Model3dPricedInputs, type Model3dPricedOptions, type Model3dRequest, type Model3dResult, type Model3dStatus, type Model3dSubmission, type Model3dTexture, type Model3dViews, type Model3dWired, type ModelConstraints, type ModelKit, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, type ModelkitGenerateObjectOptions, type ModelkitGenerateTextOptions, type ModelkitStreamObjectOptions, type ModelkitStreamTextOptions, type ObjectOutput, type ObjectResult, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type PromptConventions, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, type ReferenceLimits, type ReferenceSyntax, type RequiredInput, type RequiredKeyName, type ResolveResult, type Routing, SURFACES, type SpeechRequest, type SubtitleOptions, type SubtitleTextStyle, type SupportedOption, type Surface, SurfaceSchema, type TextMethods, type TextModelInstance, type TranscriptWord, type TranscriptionRequest, type TranscriptionResult, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_INPUT_SPEC_KEYS, VIDEO_TOOL_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, VideoResolutionSchema, type VideoResult, type VideoSecondsLimits, type VideoToolCallContext, type VideoToolConstraints, type VideoToolKind, type VideoToolOutputFormat, type VideoToolOutputSpec, type VideoToolPlan, type VideoToolRequest, type VideoToolResult, type VideoToolSource, type VideoToolStatus, type VideoToolSubmission, type VoiceChangeRequest, type VoiceGender, type VoiceOption, type Warning, adapterServesType, aiSdkTextAdapter, arkAdapter, aspectRatioToSize, classifyHttpError, compareCatalogOrder, createDefaultModelKit, createModelKit, dataOnlyCapable, describe, describeThrown, generateImage as experimental_generateImage, falAdapter, falWebhookBodySchema, fileCatalogCache, generateAudio, generateImage, generateObject, generateText, generateVideo, googleGenaiAdapter, googleImageAdapter, hasAwsCredentials, higgsfieldAdapter, isArrayInputSpecKey, isInputSpecKey, isListed, isListedOn, isModelKitError, keysFromEnv, languageModel, liveCatalog, liveState, mergeTextProviderOptions, missingTierKeys, model3dCall, model3dConstraints, model3dInputRefusal, model3dPricingSku, model3dResolution, model3dSeedFits, model3dSkus, model3dTexture, nearestAspectRatio, normalizeExposure, openaiImageAdapter, passthroughTextModel, planVideoTool, pollUntil, prepareMediaPart, primeCatalog, prodiaAdapter, readErrorBody, replicateAdapter, resetLiveCatalog, resolutionTier, resolveAudioOptions, resolveDubbingOptions, resolveImageOptions, resolveKeys, resolveLipsyncOptions, resolveSpeechOptions, resolveTranscriptionOptions, resolveVideoOptions, resolveVoiceChangeOptions, shouldRetry, sleep, sortCatalogRows, streamObject, streamText, textUsageEvent, toGeneratedImage, validateInputSpec, videoLengthViolation, videoToolConstraints, withRetry, xaiVideoAdapter };