{"id":15221502,"url":"https://github.com/googlecloudplatform/vertex-ai-creative-studio","last_synced_at":"2026-05-26T23:02:23.016Z","repository":{"id":256064142,"uuid":"843119525","full_name":"GoogleCloudPlatform/vertex-ai-creative-studio","owner":"GoogleCloudPlatform","description":"Creative Studio is a Vertex AI generative media example user experience to highlight the use of Imagen and other generative media APIs on Google Cloud.","archived":false,"fork":false,"pushed_at":"2024-11-04T05:18:57.000Z","size":10761,"stargazers_count":29,"open_issues_count":2,"forks_count":10,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-02-04T19:01:37.059Z","etag":null,"topics":["google-cloud","imagen","vertex-ai"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoogleCloudPlatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T20:28:49.000Z","updated_at":"2025-01-29T11:40:26.000Z","dependencies_parsed_at":"2024-09-08T20:13:51.753Z","dependency_job_id":"0e563a44-47d1-4380-aa1a-afd14d8f3df2","html_url":"https://github.com/GoogleCloudPlatform/vertex-ai-creative-studio","commit_stats":null,"previous_names":["googlecloudplatform/vertex-ai-creative-studio"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fvertex-ai-creative-studio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fvertex-ai-creative-studio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fvertex-ai-creative-studio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fvertex-ai-creative-studio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoogleCloudPlatform","download_url":"https://codeload.github.com/GoogleCloudPlatform/vertex-ai-creative-studio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237236958,"owners_count":19277082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-cloud","imagen","vertex-ai"],"created_at":"2024-09-28T15:05:23.448Z","updated_at":"2025-10-20T00:32:18.182Z","avatar_url":"https://github.com/GoogleCloudPlatform.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Creative Studio | Vertex AI\n\nCreative Studio is an app that highlights the capabilities of Google Cloud Vertex AI generative AI creative APIs, including Imagen, the text-to-image model.\n\nFeatures Gemini for prompt rewriting as well as for a critic to provide a multimodal evaluation of the generated images. \n\nThis app is built with [Mesop](https://google.github.io/mesop), a Python-based UI framework that enables you to rapidly build web apps like this demo and internal apps.\n\n\n## GenMedia | Creative Studio\n\n![](./screenshots/creative_studio_02.png)\n\n\n\n## Run locally\n\nTwo environment variables are required to run this application:\n\n`PROJECT_ID`   \nProvide an environment variable for your Google Cloud Project ID\n\n```\nexport PROJECT_ID=$(gcloud config get project)\n```\n\n`IMAGE_CREATION_BUCKET`  \nYou'll need Google Cloud Storage bucket for the generative media. Note that this has to exist prior to running the application. \n\nIf an existing Google Cloud Storage bucket is available, please provide its name without the `\"gs://\"` prefix.  \n\n```\nexport IMAGE_CREATION_BUCKET=$PROJECT_ID-genmedia\n```  \n\nOtherwise, follow the next steps to create a storage bucket.  \n\n### Create Storage Bucket (Optional) \n\nPlease run the following command to obtain new credentials.  \n\n```\ngcloud auth login  \n```  \n\nIf you have already logged in with a different account, run:  \n\n```\ngcloud config set account $PROJECT_ID  \n```  \n\nCreate the storage bucket.  \n\n```\ngcloud storage buckets create gs://$IMAGE_CREATION_BUCKET --location=US --default-storage-class=STANDARD\n```\n\n\u003e **NOTE:** We have provided a `env_template` that you can use to in your development environment. Simply duplicate it, rename it to `.env` and replace `\u003cYOUR_GCP_PROJECT_ID\u003e` with your project ID.  \n\nThen run `source .env` to add those variables into your environment.  \n\n\n### Create Virtual Environment \n\nCreate and activate a virtual environment for your solution. \n```\npython3 -m venv venv \nsource venv/bin/activate\n```  \n\n### Install requirements\n\nInstall the required Python libraries.\n\n```\npip install -r requirements.txt\n```\n\n### Run with mesop\n\nTo run locally, use the `mesop` command and open the browser to the URL provided:\n\n```\nmesop main.py\n```\n\n\u003e **NOTE:** The mesop application may request you to allow it to accept incoming network connections. Please accept to avoid limiting the application's behavior.  \n\n\n## Deploy to Cloud Run\n\nDeploy this application to a Cloud Run service.\n\nIt's recommended that you create a separate service account to deploy a Cloud Run Service.\n\n\n```\nexport SA_NAME=sa-genmedia-creative-studio\nexport PROJECT_ID=$(gcloud config get project)\n\ngcloud iam service-accounts create $SA_NAME --description=\"genmedia creative studio\" --display-name=\"$SA_NAME\"\n\ngcloud projects add-iam-policy-binding $PROJECT_ID --member=\"serviceAccount:$SA_NAME@$PROJECT_ID.iam.gserviceaccount.com\"  --role=\"roles/aiplatform.user\"\n\ngcloud projects add-iam-policy-binding $PROJECT_ID --member=\"serviceAccount:$SA_NAME@$PROJECT_ID.iam.gserviceaccount.com\" --role=\"roles/storage.objectUser\"\n```\n\nDeploy with the service account and environment variables created above; `PROJECT_ID` and `IMAGE_CREATION_BUCKET`.\n\n```\ngcloud run deploy creative-studio --source . \\\n  --allow-unauthenticated --region us-central1 \\\n  --service-account $SA_NAME@$PROJECT_ID.iam.gserviceaccount.com \\\n  --update-env-vars=IMAGE_CREATION_BUCKET=$IMAGE_CREATION_BUCKET,PROJECT_ID=$PROJECT_ID\n```\n\n# Disclaimer\n\nThis is not an officially supported Google product.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglecloudplatform%2Fvertex-ai-creative-studio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglecloudplatform%2Fvertex-ai-creative-studio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglecloudplatform%2Fvertex-ai-creative-studio/lists"}