Skip to content

fix(deepinfra): export DeepInfraImageModelOptions#12553

Open
unisone wants to merge 1 commit intovercel:mainfrom
unisone:fix/export-deepinfra-image-options
Open

fix(deepinfra): export DeepInfraImageModelOptions#12553
unisone wants to merge 1 commit intovercel:mainfrom
unisone:fix/export-deepinfra-image-options

Conversation

@unisone
Copy link

@unisone unisone commented Feb 13, 2026

Fixes #12460

This PR adds the missing DeepInfraImageModelOptions type export for the DeepInfra provider's image models.

Changes

  • Defined DeepInfraImageModelOptions (with a Zod schema) in packages/deepinfra/src/deepinfra-image-settings.ts
  • Exported the type from @ai-sdk/deepinfra
  • Added a d.ts type test to verify the export
  • Added a changeset

The type covers common DeepInfra image generation parameters:

  • guidance_scale — classifier-free guidance (FLUX-1-dev, FLUX-1-schnell, SD models)
  • num_inference_steps — denoising steps (FLUX-1-dev, FLUX-1-schnell, SD models)
  • negative_prompt — negative prompting (Stable Diffusion models)
  • prompt_upsampling — automatic prompt enhancement (FLUX-1.1-pro, FLUX-pro)
  • safety_tolerance — moderation tolerance level 0–6 (FLUX-1.1-pro, FLUX-pro)

Uses .passthrough() to allow any additional model-specific parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add image model options types for Deepinfra provider

1 participant