Skip to main content
The provider_params field lets you pass provider-specific parameters that aren’t part of Eden AI’s unified schema. This gives you access to advanced or niche options offered by individual providers without breaking the standard request format.

How It Works

Add a provider_params object to any Universal AI request. Every subfeature enforces a per-provider allowlist: only parameters on the provider’s list are forwarded alongside the standard input fields, and any other parameter is rejected with 400 Bad Request (see Parameter Validation and Allowlisting).

Basic Example

Common Use Cases

Image Generation: Style and Quality

Control output style and quality for image generation:

Text to Speech: Voice Settings

Pass provider-specific voice parameters:

Parameter Validation and Allowlisting

provider_params is default-deny on every Universal AI subfeature. Each subfeature accepts only the parameters on a per-provider allowlist:
  • Subfeatures with provider parameters (such as video generation, web subfeatures, image generation, background removal, text to speech, speech to text, text anonymization, text AI detection, and plagiarism detection): only the listed request parameters for that provider are accepted.
  • All other subfeatures (such as OCR, translation, face features, and moderation): every provider has an empty allowlist ([]), so any non-empty provider_params is rejected.
Any parameter not on the allowlist (checked case-insensitively at every depth, including empty objects or arrays) is rejected with a 400 Bad Request error naming the parameters that were refused. The check covers every provider the request can reach: with fallbacks, each parameter must be allowed for the provider in model and for every fallback provider, or the whole request is rejected.

Discovering Allowed Parameters

To read an allowlist from your code, query the subfeature detail endpoint:
The response includes a provider_params object mapping each provider to its accepted parameter paths. Abridged to three of the providers:
Each entry is a path in the provider’s own request format, lowercased, with nested keys joined by dots. Send the parameter as a nested object, in the casing the provider documents. videogenerationconfig.seed for Amazon means:
Likewise, Google’s aspectratio is sent as aspectRatio. The allowlist check ignores case, so a lowercased aspectratio passes it, but the provider then receives a key it does not recognize. Every subfeature returns a provider_params object mapping each provider to its allowlist; an empty list ([]) means the provider accepts no provider_params. To inspect provider_params across all subfeatures at once, call GET /v3/info?include=schemas (see List Expert Models) and read each subfeature’s provider_params field. You can also check the documentation_url field returned for each model in GET /v3/info to view the provider’s official documentation.

Important Notes

  • Available parameters vary by provider and feature. Refer to the provider’s own documentation for what each one does.
  • provider_params are sent to every provider the request reaches, including fallbacks, and every parameter must be on the allowlist of both the primary provider and every fallback provider.

Next Steps

Bring Your Own Key

Use your own provider API keys for full control over costs and limits