Imagen 4 в разработке
Developing
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"instances": [
{
"prompt": "Robot holding a red skateboard"
}
],
"parameters": {
"sampleCount": 4
}
}
Request Code Samples
curl --location --globoff 'https://stackapi.ai/v1beta/models/imagen-3.0-generate-002:predict?key=' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"instances": [
{
"prompt": "Robot holding a red skateboard"
}
],
"parameters": {
"sampleCount": 4
}
}'
Responses
application/json
Modified at 2026-06-15 10:10:18