Genkit JS API reference
Preparing search index...
@genkit-ai/compat-oai
compatOaiImageModelRef
Function compatOaiImageModelRef
compatOaiImageModelRef
<
CustomOptions
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
>
(
params
:
{
config
?:
any
;
configSchema
?:
CustomOptions
;
info
?:
{
configSchema
?:
Record
<
string
,
any
>
;
label
?:
string
;
stage
?:
"stable"
|
"unstable"
|
"featured"
|
"legacy"
|
"deprecated"
;
supports
?:
{
constrained
?:
"all"
|
"none"
|
"no-tools"
;
contentType
?:
string
[]
;
context
?:
boolean
;
media
?:
boolean
;
multiturn
?:
boolean
;
output
?:
string
[]
;
systemRole
?:
boolean
;
toolChoice
?:
boolean
;
tools
?:
boolean
;
}
;
versions
?:
string
[]
;
}
;
name
:
string
;
namespace
?:
string
;
}
,
)
:
ModelReference
<
z
.
AnyZodObject
|
CustomOptions
>
Image generation ModelRef helper, with reasonable defaults for OpenAI-compatible providers
Type Parameters
CustomOptions
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
Parameters
params
:
{
config
?:
any
;
configSchema
?:
CustomOptions
;
info
?:
{
configSchema
?:
Record
<
string
,
any
>
;
label
?:
string
;
stage
?:
"stable"
|
"unstable"
|
"featured"
|
"legacy"
|
"deprecated"
;
supports
?:
{
constrained
?:
"all"
|
"none"
|
"no-tools"
;
contentType
?:
string
[]
;
context
?:
boolean
;
media
?:
boolean
;
multiturn
?:
boolean
;
output
?:
string
[]
;
systemRole
?:
boolean
;
toolChoice
?:
boolean
;
tools
?:
boolean
;
}
;
versions
?:
string
[]
;
}
;
name
:
string
;
namespace
?:
string
;
}
Returns
ModelReference
<
z
.
AnyZodObject
|
CustomOptions
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Image generation ModelRef helper, with reasonable defaults for OpenAI-compatible providers