Google imagen-4.0-ultra-generate-001 hosted on GCP Vertex AI in australia-southeast1.
Provider: All Google models | GCP Vertex AI
Inference regions: australia-southeast1
https://australia-southeast1-aiplatform.googleapis.com/v1/projects/{project}/locations/{region}/publishers/{publisher}/models/{model}:generateContentInstall: pip install google-cloud-aiplatform
import vertexai
from vertexai.generative_models import GenerativeModel
vertexai.init(project="your-project-id", location="australia-southeast1")
model = GenerativeModel("imagen-4.0-ultra-generate-001")
response = model.generate_content("Hello, how are you?")
print(response.text)| Parameter | Type | Description |
|---|---|---|
| maxOutputTokens | integer | Maximum number of tokens to generate. (≥1) |
| temperature | float | Controls randomness. (0–2) Default: 1. |
| topP | float | Nucleus sampling threshold. (0–1) Default: 1. |
| topK | integer | Top-K sampling. (≥0) |
| stopSequences | string | Sequences where generation stops. |