imagen-4.0-fast-generate-001 (asia-northeast1)

Google imagen-4.0-fast-generate-001 hosted on GCP Vertex AI in asia-northeast1.

Provider: All Google models | GCP Vertex AI

Inference regions: asia-northeast1

API Endpoint

https://asia-northeast1-aiplatform.googleapis.com/v1/projects/{project}/locations/{region}/publishers/{publisher}/models/{model}:generateContent

Quick Start (Python)

Install: pip install google-cloud-aiplatform

import vertexai
from vertexai.generative_models import GenerativeModel

vertexai.init(project="your-project-id", location="asia-northeast1")

model = GenerativeModel("imagen-4.0-fast-generate-001")

response = model.generate_content("Hello, how are you?")

print(response.text)

Supported Parameters

ParameterTypeDescription
maxOutputTokensintegerMaximum number of tokens to generate. (≥1)
temperaturefloatControls randomness. (0–2) Default: 1.
topPfloatNucleus sampling threshold. (0–1) Default: 1.
topKintegerTop-K sampling. (≥0)
stopSequencesstringSequences where generation stops.