[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78C31KT35SWGRCPPY49JNJ5":3,"skill-same:01M78C31KT35SWGRCPPY49JNJ5":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M78C31KT35SWGRCPPY49JNJ5","agent-platform-inference",null,"Connects to and performs inference with Google Cloud Agent Platform GenAI models, including First-Party Gemini models and Third-Party OpenMaaS models (Llama, DeepSeek, Qwen, etc.). Use when you need to generate code for calling Gemini or OpenMaaS models, authenticate with GenAI SDK, OpenAI SDK, or legacy Agent Platform SDK, configure base URLs and global\u002Fregional endpoints, or troubleshoot 429 Resource Exhausted (DSQ), 400 User Validation, or 404 Not Found errors. Don't use for deploying models to endpoints or for running model evaluations.","Solizardking\u002Fskillhub-main","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786NYYXSZK1D05WM8JQPC48",0,"MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-platform-inference\nmetadata:\n  category: AiAndMachineLearning\ndescription: >-\n  Connects to and performs inference with Google Cloud Agent Platform GenAI\n  models, including First-Party Gemini models and Third-Party OpenMaaS models\n  (Llama, DeepSeek, Qwen, etc.). Use when you need to generate code for calling\n  Gemini or OpenMaaS models, authenticate with GenAI SDK, OpenAI SDK, or legacy\n  Agent Platform SDK, configure base URLs and global\u002Fregional endpoints, or troubleshoot\n  429 Resource Exhausted (DSQ), 400 User Validation, or 404 Not Found errors.\n  Don't use for deploying models to endpoints or for running model evaluations.\n---\n\n# Agent Platform GenAI Inference Skill\n\nThis skill provides instructions for authenticating and connecting to Google\nCloud Agent Platform to use Generative AI models. It covers both First-Party\n(Gemini) and Third-Party (OpenMaaS) models.\n\n## Safety & Confirmation Tiers (CRITICAL)\n\nBefore executing any commands or scripts on behalf of the user, you must adhere\nto the following safety tiers based on the action requested. (The skill is\nread-only; other safety tiers are omitted):\n\n1.  **Tier R: Read-only \u002F Inference (`client.models.generate_content`, `client.chat.completions.create`, `client.completions.create`, `client.embeddings.create`)**\n    *   Requires **interactive confirmation** with 'Yes'\u002F\n    'No' options before executing model inference on\n    behalf of the user, to prevent unexpected cost or\n    quota consumption. The confirmation prompt must\n    clearly explain the proposed inference execution and\n    its key parameters (e.g., target model ID, SDK\n    choice, input prompt). Natural-language paraphrases\n    without specifying the parameters are NOT sufficient.\n    *   **Same-turn restriction**: Do not execute the\n    inference scripts or commands in the same turn as\n    presenting the confirmation prompt. Stop and wait\n    for the user's reply; only execute after explicit\n    'Yes' \u002F approval.\n    *   **Gold Standard Example**:\n        > I will perform model inference with the following parameters. Please\n        > confirm this information before I proceed:\n        > *   **Model ID**: `deepseek-ai\u002Fdeepseek-v3.2-maas`\n        > *   **SDK**: OpenAI SDK (via Vertex AI Endpoint)\n        > *   **Input Prompt**: \"Explain the concept of quantum computing...\"\n        > Do you confirm? [Yes\u002FNo]\n\n## Phase 0: Environment Setup\n\n**CRITICAL**: Before running any of the Python sample scripts in the `scripts\u002F`\ndirectory (e.g., `scripts\u002Fopenmaas_openai_sdk.py`), you MUST ensure the\nenvironment is correctly initialized by following these steps:\n\n1.  **Google Cloud Authentication**: Authenticate with your Google Cloud\n    credentials and configure active Application Default Credentials (ADC) for\n    Agent Platform access:\n    \n    ```bash\n    gcloud auth login\n    gcloud auth application-default login\n    ```\n2.  **Enable API** (if not already enabled):\n    \n    ```bash\n    gcloud services enable aiplatform.googleapis.com\n    ```\n3.  **Virtual Environment**: Create and activate a dedicated local virtual\n    environment:\n    \n    ```bash\n    python3 -m venv .venv\n    source .venv\u002Fbin\u002Factivate\n    ```\n4.  **Install Dependencies**: Install the required SDKs:\n    \n    ```bash\n    pip install -r scripts\u002Frequirements.txt\n    ```\n5.  **Verify Setup (Optional)**: Run all sample scripts at once to verify the\n    environment is working end-to-end:\n    \n    ```bash\n    .\u002Fscripts\u002Fverify_all.sh\n    ```\n6.  **Execution**: Advise the user that every time they execute a Python\n    snippet from this skill, they must ensure this virtual environment is\n    activated first.\n\n\u003C!-- disableFinding(LINE_OVER_80) -->\n\n> [!IMPORTANT]\n> **CRITICAL: Model IDs & Availability**\n> *   **Gemini Models**: See [Gemini Models][gemini-models-docs] for valid\n>     Model IDs and Regions.\n> *   **OpenMaaS Models**: See [Use Open Models on Agent Platform]\n>     (https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmaas\u002Fuse-open-models)\n>     for Llama, DeepSeek, Qwen, etc.\n> *   **Incomplete Lists**: The Model IDs listed in this skill are **examples\n>     only** and may be incomplete or outdated.\n> *   **Action**: Always verify the Model ID and Region using the links above\n>     before generating code.\n>\n> [gemini-models-docs]: https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmigrate\n\u003C!-- enableFinding(LINE_OVER_80) -->\n## Workflow Decision Tree\n\n1.  **Model Family Identification**: Has the user specified whether they want\n    to call a **Gemini** (First-Party) model or an **OpenMaaS** (Third-Party,\n    e.g. Llama, DeepSeek, Qwen) model?\n\n    *   **No** -> Ask the user which model family they want to use. If they\n        provide a specific model name, infer the family from the name.\n    *   **Yes** -> Proceed to Step 2.\n\n2.  **SDK Choice**: Which SDK does the user want to use?\n\n    *   **Gemini + GenAI SDK** (preferred for Gemini) -> Proceed to\n        [1. Gemini Models].\n    *   **Gemini + legacy Vertex AI SDK** -> Proceed to [1. Gemini Models].\n    *   **OpenMaaS + OpenAI SDK** (preferred for OpenMaaS) -> Proceed to\n        [2. OpenMaaS Models].\n    *   **OpenMaaS + GenAI SDK** -> Proceed to [2. OpenMaaS Models].\n    *   **Unsure** -> Default to the preferred SDK for the chosen family.\n\n3.  **Troubleshooting**: Is the user reporting an error (429 Resource\n    Exhausted, 400 User Validation, 404 Not Found, etc.)?\n\n    *   **Yes** -> Proceed to [3. Troubleshooting & Common Error Codes].\n    *   **No** -> Proceed with the SDK choice from Step 2.\n\n## 1. Gemini Models\n\nFor Gemini models (e.g., `gemini-2.5-pro`, `gemini-3-flash-preview`), the\n**GenAI SDK** (`google-genai`) is the **PREFERRED** method. The legacy\n`vertexai` SDK is still supported but GenAI SDK is recommended for new projects.\n\n> [!IMPORTANT]\n> **Preview Models (including Gemini 3.1)** are often **ONLY** available in the\n> `global` region. Stable models are available in `us-central1` and other\n> regions.\n\n### Choosing the Right SDK\n\n*   **Gemini Models**: **GenAI SDK** (`google-genai`) is **PREFERRED**. Use OpenAI SDK for compatibility, or Legacy SDK (`vertexai`) if needed.\n*   **OpenMaaS Models**: **OpenAI SDK** is **HIGHLY RECOMMENDED**. Use GenAI SDK or Legacy SDK if you have specific infrastructure requirements.\n\n### Installation\n\n```bash\npip install google-genai\n```\n\n### Python Example (GenAI SDK - Preferred)\n\nSee [`scripts\u002Fgemini_genai_sdk.py`](scripts\u002Fgemini_genai_sdk.py) for the\ncomplete code.\n\n### Alternative: OpenAI SDK (Chat Completions)\n\nUse the standard OpenAI SDK with the Agent Platform endpoint. This is great for\ncross-compatibility.\n\nSee [`scripts\u002Fgemini_openai_sdk.py`](scripts\u002Fgemini_openai_sdk.py) for the\ncomplete code.\n\n### Legacy: Agent Platform SDK\n\nThe legacy `vertexai` SDK is still widely used but `google-genai` is preferred\nfor new Gemini projects.\n\nSee [`scripts\u002Fgemini_vertexai_sdk.py`](scripts\u002Fgemini_vertexai_sdk.py) for the\ncomplete code.\n\n**Documentation**: [Google GenAI SDK](https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fpython-genai)\n\n**Documentation**: [Agent Platform Gemini Models](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fgoogle-models)\n\n## 2. OpenMaaS Models (Llama, DeepSeek, Qwen, etc.)\n\nFor OpenMaaS (Model-as-a-Service) models, the **HIGHLY RECOMMENDED** approach is\nto use the standard **OpenAI SDK** with a specific Vertex AI endpoint.\n\n> [!WARNING]\n> While `GenerativeModel` *can* support some OpenMaaS models, it is\n**discouraged**. Use the OpenAI SDK for best compatibility (especially for Chat\nCompletions).\n\n### Installation\n\n```bash\npip install openai google-auth\n```\n\n### Authentication for OpenAI SDK\n\nYou **MUST** use a Google Cloud OAuth access token as the API key for the OpenAI\nSDK.\n\n```python\nimport google.auth\nfrom google.auth.transport.requests import Request\n\ndef get_gcp_access_token():\n    creds, _ = google.auth.default()\n    creds.refresh(Request())\n    return creds.token\n```\n\n> [!NOTE]\n> Google Cloud access tokens typically expire after 1 hour. The\n> `get_gcp_access_token()` function above retrieves a *fresh* token at the time\n> it is called.\n\u003C!-- disableFinding(LINE_OVER_80) -->\n> For long-running applications, you implement a refresh mechanism. See [Refresh the access token](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmigrate\u002Fopenai\u002Fauth-and-credentials?hl=en#refresh_your_credentials) for details.\n\u003C!-- enableFinding(LINE_OVER_80) -->\n\n### Configuration (Base URL)\n\n\u003C!-- disableFinding(LINE_OVER_80) -->\n\n-   **Global Endpoint** (Recommended for most models requiring global\n    availability):\n    `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1\u002Fprojects\u002F{PROJECT_ID}\u002Flocations\u002Fglobal\u002Fendpoints\u002Fopenapi`\n-   **Regional Endpoint**:\n    `https:\u002F\u002F{REGION}-aiplatform.googleapis.com\u002Fv1\u002Fprojects\u002F{PROJECT_ID}\u002Flocations\u002F{REGION}\u002Fendpoints\u002Fopenapi`\n    \u003C!-- enableFinding(LINE_OVER_80) -->\n\n### Python Example (OpenMaaS - Chat Completions)\n\nSee [`scripts\u002Fopenmaas_openai_sdk.py`](scripts\u002Fopenmaas_openai_sdk.py) for the\ncomplete code.\n\n> [!TIP]\n> **Alternative: Environment Variables**\n> You can set environment variables in your shell instead of updating the code.\n>\n> ```bash\n> export OPENAI_BASE_URL=\"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1\u002Fprojects\u002FYOUR_PROJECT_ID\u002Flocations\u002Fglobal\u002Fendpoints\u002Fopenapi\"\n> export OPENAI_API_KEY=\"$(gcloud auth print-access-token)\"\n> ```\n> Then initialize the client without arguments: `client = OpenAI()`\n\n### Python Example (OpenMaaS - Completions API)\n\nThe following models support the legacy Completions API: `zai-org\u002Fglm-5-maas`,\n`moonshotai\u002Fkimi-k2-thinking-maas`, `minimaxai\u002Fminimax-m2-maas`,\n`deepseek-ai\u002Fdeepseek-v3.1-maas`, and `deepseek-ai\u002Fdeepseek-v3.2-maas`.\n\n```python\nresponse = client.completions.create(\n    model=\"deepseek-ai\u002Fdeepseek-v3.2-maas\",\n    prompt=\"Once upon a time\",\n    max_tokens=100\n)\nprint(response.choices[0].text)\n```\n\n### Python Example (OpenMaaS - Embeddings)\n\n```python\n# Verify specific Embedding Model ID on Model Garden (e.g., intfloat\u002Fmultilingual-e5-small)\nresponse = client.embeddings.create(\n    model=\"intfloat\u002Fmultilingual-e5-large-maas\",\n    input=\"The quick brown fox jumps over the lazy dog\",\n)\nprint(response.data[0].embedding)\n```\n\n### Alternative: GenAI SDK\n\nThe `google-genai` SDK can also access OpenMaaS models via the `vertexai`\nbackend.\n\nSee [`scripts\u002Fopenmaas_genai_sdk.py`](scripts\u002Fopenmaas_genai_sdk.py) for the\ncomplete code.\n\n> [!IMPORTANT]\n> **Model ID Format**: For GenAI SDK with OpenMaaS, you **MUST** use the full\n> path: `publishers\u002FPUBLISHER\u002Fmodels\u002FMODEL` (e.g.,\n> `publishers\u002Fzai-org\u002Fmodels\u002Fglm-5-maas`).\n\n### Legacy: Agent Platform SDK (OpenMaaS)\n\nFor OpenMaaS, you can also use `GenerativeModel` (if supported).\n\nSee [`scripts\u002Fopenmaas_vertexai_sdk.py`](scripts\u002Fopenmaas_vertexai_sdk.py) for\nthe complete code.\n\n> [!IMPORTANT]\n> **Model ID Format**: For Agent Platform SDK with OpenMaaS, you **MUST** use the\n> full path: `publishers\u002FPUBLISHER\u002Fmodels\u002FMODEL`.\n\n### Model Reference & Availability\n\n**Documentation**: [Use Open Models on Agent Platform](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmaas\u002Fuse-open-models)\n\n> [!TIP]\n> **Self-Deployment for Control**: If you need **dedicated hardware**\n> (GPUs\u002FTPUs), **guaranteed capacity**, or **specific regional placement** not\n> offered by MaaS, you can **Self-Deploy** these models to Agent Platform\n> Endpoints. Search for the model in Model Garden and click \"Deploy\" to select\n> your machine type.\n\n> [!IMPORTANT]\n> **Finding Inference Examples**: The list above is a starting point. For the\n> **definitive** inference snippets (especially for Chat Completions payload\n> structure):\n> 1.  Consult the [Use Open Models on Agent Platform](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmaas\u002Fuse-open-models)\n>     list.\n> 2.  Click the link for your specific model (e.g., \"DeepSeek-V3\") to visit its\n>     **Model Garden** page.\n> 3.  Look for the **\"Sample Code\"** or **\"Use this model\"** button on the Model\n>     Garden page to get the exact `curl` or Python code for that specific model\n>     version.\n\n> [!NOTE]\n> This list is **INCOMPLETE**. See [Use Open Models on Agent Platform]\n> (https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmaas\u002Fuse-open-models)\n> for the full list of supported models.\n\n| Model Family | Model ID Examples | Location | Notes |\n| :--- | :--- | :--- | :--- |\n| **Llama 4** | `meta\u002Fllama-4-maverick-17b-128e-instruct-maas` | `us-east5` | |\n| **Llama 4** | `meta\u002Fllama-4-scout-17b-16e-instruct-maas` | `us-east5` | |\n| **Llama 3.3** | `meta\u002Fllama-3.3-70b-instruct-maas` | `us-central1` | |\n| **DeepSeek** | `deepseek-ai\u002Fdeepseek-v3.2-maas` | `global` | Global ONLY |\n| **DeepSeek** | `deepseek-ai\u002Fdeepseek-v3.1-maas` | `us-west2` | US-West2 ONLY |\n| **DeepSeek** | `deepseek-ai\u002Fdeepseek-r1-0528-maas` | `us-central1` | |\n| **Qwen 3** | `qwen\u002Fqwen3-coder-480b-a35b-instruct-maas` | `global` | |\n| **Qwen 3** | `qwen\u002Fqwen3-next-80b-a3b-instruct-maas` | `global` | |\n| **Kimi** | `moonshotai\u002Fkimi-k2-thinking-maas` | `global` | |\n| **MiniMax** | `minimaxai\u002Fminimax-m2-maas` | `global` | |\n| **GLM** | `zai-org\u002Fglm-4.7-maas`, `zai-org\u002Fglm-5-maas` | `global` | |\n\n## 3. Troubleshooting & Common Error Codes\n\n### 429: Resource Exhausted\n\n*   **Cause**: OpenMaaS and Gemini models use **Dynamic Shared Quota (DSQ)**.\n    Resources are pooled and allocated dynamically based on availability. A 429\n    error indicates the shared pool is temporarily exhausted, not necessarily\n    that *your* specific project quota is hit (though it can be).\n*   **Solution**: Implement strict **exponential backoff and retry** strategies.\n*   **High Throughput**: For production workloads requiring high throughput or guaranteed capacity, consider **Provisioned Throughput (PT)**.\n*   **Important**: Quota increases through normal cloud processes (Cloud Console) are **NOT** applicable for DSQ constraints.\n*   **Documentation**: [Quotas and limits (DSQ)](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fquotas)\n\n### 400: User Validation Error\n\n*   **Cause**: Invalid request format, unsupported parameter, or incorrect Model ID.\n*   **Action**: Double-check your request payload and parameters. Verify the Model ID and Region are correct.\n\n### 404: Not Found \u002F Model Not Available\n\n*   **Cause**: The model is not enabled, or not available in the specified project or region.\n*   **Action**:\n    1.  **Check Location Availability**:\n        *   **OpenMaaS**: Verify the model is available in your region. See [Model Availability by Location](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fresources\u002Flocations#genai-open-models).\n        *   **Gemini**:\n            \u003C!-- disableFinding(LINE_OVER_80) -->\n            *   **Source of Truth**: Always check [Gemini Model Locations](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fresources\u002Flocations#google-models) for the authoritative list.\n            \u003C!-- enableFinding(LINE_OVER_80) -->\n            *   **Preview Models**: All Preview models (e.g., Gemini 3.1, experimental versions) are often **ONLY** available in the `us-central1` or `global` regions.\n            *   **Stable Models**: (e.g., Gemini 2.5 Pro) Available in `us-central1`, `europe-west4`, and many other regions.\n            *   **Important**: If you get a 404\u002F400 error, try switching your client location to `us-central1` or `global`.\n    2.  **Enable Llama Models**: For **Llama 3.3** and **Llama 4**, you **MUST**\n        enable the model in Model Garden before use. Go to the [Model Garden]\n        (https:\u002F\u002Fconsole.cloud.google.com\u002Fagent-platform\u002Fmodel-garden), search\n        for the model card (e.g., \"Llama 3.3 API Service\"), and click\n        **Enable**. Only then can you make inference requests.\n","# Agent Platform GenAI Inference Skill\n\nThis skill provides instructions for authenticating and connecting to Google\nCloud Agent Platform to use Generative AI models. It covers both First-Party\n(Gemini) and Third-Party (OpenMaaS) models.\n\n## Safety & Confirmation Tiers (CRITICAL)\n\nBefore executing any commands or scripts on behalf of the user, you must adhere\nto the following safety tiers based on the action requested. (The skill is\nread-only; other safety tiers are omitted):\n\n1.  **Tier R: Read-only \u002F Inference (`client.models.generate_content`, `client.chat.completions.create`, `client.completions.create`, `client.embeddings.create`)**\n    *   Requires **interactive confirmation** with 'Yes'\u002F\n    'No' options before executing model inference on\n    behalf of the user, to prevent unexpected cost or\n    quota consumption. The confirmation prompt must\n    clearly explain the proposed inference execution and\n    its key parameters (e.g., target model ID, SDK\n    choice, input prompt). Natural-language paraphrases\n    without specifying the parameters are NOT sufficient.\n    *   **Same-turn restriction**: Do not execute the\n    inference scripts or commands in the same turn as\n    presenting the confirmation prompt. Stop and wait\n    for the user's reply; only execute after explicit\n    'Yes' \u002F approval.\n    *   **Gold Standard Example**:\n        > I will perform model inference with the following parameters. Please\n        > confirm this information before I proceed:\n        > *   **Model ID**: `deepseek-ai\u002Fdeepseek-v3.2-maas`\n        > *   **SDK**: OpenAI SDK (via Vertex AI Endpoint)\n        > *   **Input Prompt**: \"Explain the concept of quantum computing...\"\n        > Do you confirm? [Yes\u002FNo]\n\n## Phase 0: Environment Setup\n\n**CRITICAL**: Before running any of the Python sample scripts in the `scripts\u002F`\ndirectory (e.g., `scripts\u002Fopenmaas_openai_sdk.py`), you MUST ensure the\nenvironment is correctly initialized by following these steps:\n\n1.  **Google Cloud Authentication**: Authenticate with your Google Cloud\n    credentials and configure active Application Default Credentials (ADC) for\n    Agent Platform access:\n    \n    ```bash\n    gcloud auth login\n    gcloud auth application-default login\n    ```\n2.  **Enable API** (if not already enabled):\n    \n    ```bash\n    gcloud services enable aiplatform.googleapis.com\n    ```\n3.  **Virtual Environment**: Create and activate a dedicated local virtual\n    environment:\n    \n    ```bash\n    python3 -m venv .venv\n    source .venv\u002Fbin\u002Factivate\n    ```\n4.  **Install Dependencies**: Install the required SDKs:\n    \n    ```bash\n    pip install -r scripts\u002Frequirements.txt\n    ```\n5.  **Verify Setup (Optional)**: Run all sample scripts at once to verify the\n    environment is working end-to-end:\n    \n    ```bash\n    .\u002Fscripts\u002Fverify_all.sh\n    ```\n6.  **Execution**: Advise the user that every time they execute a Python\n    snippet from this skill, they must ensure this virtual environment is\n    activated first.\n\n\u003C!-- disableFinding(LINE_OVER_80) -->\n\n> [!IMPORTANT]\n> **CRITICAL: Model IDs & Availability**\n> *   **Gemini Models**: See [Gemini Models][gemini-models-docs] for valid\n>     Model IDs and Regions.\n> *   **OpenMaaS Models**: See [Use Open Models on Agent Platform]\n>     (https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmaas\u002Fuse-open-models)\n>     for Llama, DeepSeek, Qwen, etc.\n> *   **Incomplete Lists**: The Model IDs listed in this skill are **examples\n>     only** and may be incomplete or outdated.\n> *   **Action**: Always verify the Model ID and Region using the links above\n>     before generating code.\n>\n> [gemini-models-docs]: https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmigrate\n\u003C!-- enableFinding(LINE_OVER_80) -->\n## Workflow Decision Tree\n\n1.  **Model Family Identification**: Has the user specified whether they want\n    to call a **Gemini** (First-Party) model or an **OpenMaaS** (Third-Party,\n    e.g. Llama, DeepSeek, Qwen) model?\n\n    *   **No** -> Ask the user which model family they want to use. If they\n        provide a specific model name, infer the family from the name.\n    *   **Yes** -> Proceed to Step 2.\n\n2.  **SDK Choice**: Which SDK does the user want to use?\n\n    *   **Gemini + GenAI SDK** (preferred for Gemini) -> Proceed to\n        [1. Gemini Models].\n    *   **Gemini + legacy Vertex AI SDK** -> Proceed to [1. Gemini Models].\n    *   **OpenMaaS + OpenAI SDK** (preferred for OpenMaaS) -> Proceed to\n        [2. OpenMaaS Models].\n    *   **OpenMaaS + GenAI SDK** -> Proceed to [2. OpenMaaS Models].\n    *   **Unsure** -> Default to the preferred SDK for the chosen family.\n\n3.  **Troubleshooting**: Is the user reporting an error (429 Resource\n    Exhausted, 400 User Validation, 404 Not Found, etc.)?\n\n    *   **Yes** -> Proceed to [3. Troubleshooting & Common Error Codes].\n    *   **No** -> Proceed with the SDK choice from Step 2.\n\n## 1. Gemini Models\n\nFor Gemini models (e.g., `gemini-2.5-pro`, `gemini-3-flash-preview`), the\n**GenAI SDK** (`google-genai`) is the **PREFERRED** method. The legacy\n`vertexai` SDK is still supported but GenAI SDK is recommended for new projects.\n\n> [!IMPORTANT]\n> **Preview Models (including Gemini 3.1)** are often **ONLY** available in the\n> `global` region. Stable models are available in `us-central1` and other\n> regions.\n\n### Choosing the Right SDK\n\n*   **Gemini Models**: **GenAI SDK** (`google-genai`) is **PREFERRED**. Use OpenAI SDK for compatibility, or Legacy SDK (`vertexai`) if needed.\n*   **OpenMaaS Models**: **OpenAI SDK** is **HIGHLY RECOMMENDED**. Use GenAI SDK or Legacy SDK if you have specific infrastructure requirements.\n\n### Installation\n\n```bash\npip install google-genai\n```\n\n### Python Example (GenAI SDK - Preferred)\n\nSee [`scripts\u002Fgemini_genai_sdk.py`](scripts\u002Fgemini_genai_sdk.py) for the\ncomplete code.\n\n### Alternative: OpenAI SDK (Chat Completions)\n\nUse the standard OpenAI SDK with the Agent Platform endpoint. This is great for\ncross-compatibility.\n\nSee [`scripts\u002Fgemini_openai_sdk.py`](scripts\u002Fgemini_openai_sdk.py) for the\ncomplete code.\n\n### Legacy: Agent Platform SDK\n\nThe legacy `vertexai` SDK is still widely used but `google-genai` is preferred\nfor new Gemini projects.\n\nSee [`scripts\u002Fgemini_vertexai_sdk.py`](scripts\u002Fgemini_vertexai_sdk.py) for the\ncomplete code.\n\n**Documentation**: [Google GenAI SDK](https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fpython-genai)\n\n**Documentation**: [Agent Platform Gemini Models](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fgoogle-models)\n\n## 2. OpenMaaS Models (Llama, DeepSeek, Qwen, etc.)\n\nFor OpenMaaS (Model-as-a-Service) models, the **HIGHLY RECOMMENDED** approach is\nto use the standard **OpenAI SDK** with a specific Vertex AI endpoint.\n\n> [!WARNING]\n> While `GenerativeModel` *can* support some OpenMaaS models, it is\n**discouraged**. Use the OpenAI SDK for best compatibility (especially for Chat\nCompletions).\n\n### Installation\n\n```bash\npip install openai google-auth\n```\n\n### Authentication for OpenAI SDK\n\nYou **MUST** use a Google Cloud OAuth access token as the API key for the OpenAI\nSDK.\n\n```python\nimport google.auth\nfrom google.auth.transport.requests import Request\n\ndef get_gcp_access_token():\n    creds, _ = google.auth.default()\n    creds.refresh(Request())\n    return creds.token\n```\n\n> [!NOTE]\n> Google Cloud access tokens typically expire after 1 hour. The\n> `get_gcp_access_token()` function above retrieves a *fresh* token at the time\n> it is called.\n\u003C!-- disableFinding(LINE_OVER_80) -->\n> For long-running applications, you implement a refresh mechanism. See [Refresh the access token](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmigrate\u002Fopenai\u002Fauth-and-credentials?hl=en#refresh_your_credentials) for details.\n\u003C!-- enableFinding(LINE_OVER_80) -->\n\n### Configuration (Base URL)\n\n\u003C!-- disableFinding(LINE_OVER_80) -->\n\n-   **Global Endpoint** (Recommended for most models requiring global\n    availability):\n    `https:\u002F\u002Faiplatform.googleapis.com\u002Fv1\u002Fprojects\u002F{PROJECT_ID}\u002Flocations\u002Fglobal\u002Fendpoints\u002Fopenapi`\n-   **Regional Endpoint**:\n    `https:\u002F\u002F{REGION}-aiplatform.googleapis.com\u002Fv1\u002Fprojects\u002F{PROJECT_ID}\u002Flocations\u002F{REGION}\u002Fendpoints\u002Fopenapi`\n    \u003C!-- enableFinding(LINE_OVER_80) -->\n\n### Python Example (OpenMaaS - Chat Completions)\n\nSee [`scripts\u002Fopenmaas_openai_sdk.py`](scripts\u002Fopenmaas_openai_sdk.py) for the\ncomplete code.\n\n> [!TIP]\n> **Alternative: Environment Variables**\n> You can set environment variables in your shell instead of updating the code.\n>\n> ```bash\n> export OPENAI_BASE_URL=\"https:\u002F\u002Faiplatform.googleapis.com\u002Fv1\u002Fprojects\u002FYOUR_PROJECT_ID\u002Flocations\u002Fglobal\u002Fendpoints\u002Fopenapi\"\n> export OPENAI_API_KEY=\"$(gcloud auth print-access-token)\"\n> ```\n> Then initialize the client without arguments: `client = OpenAI()`\n\n### Python Example (OpenMaaS - Completions API)\n\nThe following models support the legacy Completions API: `zai-org\u002Fglm-5-maas`,\n`moonshotai\u002Fkimi-k2-thinking-maas`, `minimaxai\u002Fminimax-m2-maas`,\n`deepseek-ai\u002Fdeepseek-v3.1-maas`, and `deepseek-ai\u002Fdeepseek-v3.2-maas`.\n\n```python\nresponse = client.completions.create(\n    model=\"deepseek-ai\u002Fdeepseek-v3.2-maas\",\n    prompt=\"Once upon a time\",\n    max_tokens=100\n)\nprint(response.choices[0].text)\n```\n\n### Python Example (OpenMaaS - Embeddings)\n\n```python\n# Verify specific Embedding Model ID on Model Garden (e.g., intfloat\u002Fmultilingual-e5-small)\nresponse = client.embeddings.create(\n    model=\"intfloat\u002Fmultilingual-e5-large-maas\",\n    input=\"The quick brown fox jumps over the lazy dog\",\n)\nprint(response.data[0].embedding)\n```\n\n### Alternative: GenAI SDK\n\nThe `google-genai` SDK can also access OpenMaaS models via the `vertexai`\nbackend.\n\nSee [`scripts\u002Fopenmaas_genai_sdk.py`](scripts\u002Fopenmaas_genai_sdk.py) for the\ncomplete code.\n\n> [!IMPORTANT]\n> **Model ID Format**: For GenAI SDK with OpenMaaS, you **MUST** use the full\n> path: `publishers\u002FPUBLISHER\u002Fmodels\u002FMODEL` (e.g.,\n> `publishers\u002Fzai-org\u002Fmodels\u002Fglm-5-maas`).\n\n### Legacy: Agent Platform SDK (OpenMaaS)\n\nFor OpenMaaS, you can also use `GenerativeModel` (if supported).\n\nSee [`scripts\u002Fopenmaas_vertexai_sdk.py`](scripts\u002Fopenmaas_vertexai_sdk.py) for\nthe complete code.\n\n> [!IMPORTANT]\n> **Model ID Format**: For Agent Platform SDK with OpenMaaS, you **MUST** use the\n> full path: `publishers\u002FPUBLISHER\u002Fmodels\u002FMODEL`.\n\n### Model Reference & Availability\n\n**Documentation**: [Use Open Models on Agent Platform](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmaas\u002Fuse-open-models)\n\n> [!TIP]\n> **Self-Deployment for Control**: If you need **dedicated hardware**\n> (GPUs\u002FTPUs), **guaranteed capacity**, or **specific regional placement** not\n> offered by MaaS, you can **Self-Deploy** these models to Agent Platform\n> Endpoints. Search for the model in Model Garden and click \"Deploy\" to select\n> your machine type.\n\n> [!IMPORTANT]\n> **Finding Inference Examples**: The list above is a starting point. For the\n> **definitive** inference snippets (especially for Chat Completions payload\n> structure):\n> 1.  Consult the [Use Open Models on Agent Platform](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmaas\u002Fuse-open-models)\n>     list.\n> 2.  Click the link for your specific model (e.g., \"DeepSeek-V3\") to visit its\n>     **Model Garden** page.\n> 3.  Look for the **\"Sample Code\"** or **\"Use this model\"** button on the Model\n>     Garden page to get the exact `curl` or Python code for that specific model\n>     version.\n\n> [!NOTE]\n> This list is **INCOMPLETE**. See [Use Open Models on Agent Platform]\n> (https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fmaas\u002Fuse-open-models)\n> for the full list of supported models.\n\n| Model Family | Model ID Examples | Location | Notes |\n| :--- | :--- | :--- | :--- |\n| **Llama 4** | `meta\u002Fllama-4-maverick-17b-128e-instruct-maas` | `us-east5` | |\n| **Llama 4** | `meta\u002Fllama-4-scout-17b-16e-instruct-maas` | `us-east5` | |\n| **Llama 3.3** | `meta\u002Fllama-3.3-70b-instruct-maas` | `us-central1` | |\n| **DeepSeek** | `deepseek-ai\u002Fdeepseek-v3.2-maas` | `global` | Global ONLY |\n| **DeepSeek** | `deepseek-ai\u002Fdeepseek-v3.1-maas` | `us-west2` | US-West2 ONLY |\n| **DeepSeek** | `deepseek-ai\u002Fdeepseek-r1-0528-maas` | `us-central1` | |\n| **Qwen 3** | `qwen\u002Fqwen3-coder-480b-a35b-instruct-maas` | `global` | |\n| **Qwen 3** | `qwen\u002Fqwen3-next-80b-a3b-instruct-maas` | `global` | |\n| **Kimi** | `moonshotai\u002Fkimi-k2-thinking-maas` | `global` | |\n| **MiniMax** | `minimaxai\u002Fminimax-m2-maas` | `global` | |\n| **GLM** | `zai-org\u002Fglm-4.7-maas`, `zai-org\u002Fglm-5-maas` | `global` | |\n\n## 3. Troubleshooting & Common Error Codes\n\n### 429: Resource Exhausted\n\n*   **Cause**: OpenMaaS and Gemini models use **Dynamic Shared Quota (DSQ)**.\n    Resources are pooled and allocated dynamically based on availability. A 429\n    error indicates the shared pool is temporarily exhausted, not necessarily\n    that *your* specific project quota is hit (though it can be).\n*   **Solution**: Implement strict **exponential backoff and retry** strategies.\n*   **High Throughput**: For production workloads requiring high throughput or guaranteed capacity, consider **Provisioned Throughput (PT)**.\n*   **Important**: Quota increases through normal cloud processes (Cloud Console) are **NOT** applicable for DSQ constraints.\n*   **Documentation**: [Quotas and limits (DSQ)](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fmodels\u002Fquotas)\n\n### 400: User Validation Error\n\n*   **Cause**: Invalid request format, unsupported parameter, or incorrect Model ID.\n*   **Action**: Double-check your request payload and parameters. Verify the Model ID and Region are correct.\n\n### 404: Not Found \u002F Model Not Available\n\n*   **Cause**: The model is not enabled, or not available in the specified project or region.\n*   **Action**:\n    1.  **Check Location Availability**:\n        *   **OpenMaaS**: Verify the model is available in your region. See [Model Availability by Location](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fresources\u002Flocations#genai-open-models).\n        *   **Gemini**:\n            \u003C!-- disableFinding(LINE_OVER_80) -->\n            *   **Source of Truth**: Always check [Gemini Model Locations](https:\u002F\u002Fdocs.cloud.google.com\u002Fgemini-enterprise-agent-platform\u002Fresources\u002Flocations#google-models) for the authoritative list.\n            \u003C!-- enableFinding(LINE_OVER_80) -->\n            *   **Preview Models**: All Preview models (e.g., Gemini 3.1, experimental versions) are often **ONLY** available in the `us-central1` or `global` regions.\n            *   **Stable Models**: (e.g., Gemini 2.5 Pro) Available in `us-central1`, `europe-west4`, and many other regions.\n            *   **Important**: If you get a 404\u002F400 error, try switching your client location to `us-central1` or `global`.\n    2.  **Enable Llama Models**: For **Llama 3.3** and **Llama 4**, you **MUST**\n        enable the model in Model Garden before use. Go to the [Model Garden]\n        (https:\u002F\u002Fconsole.cloud.google.com\u002Fagent-platform\u002Fmodel-garden), search\n        for the model card (e.g., \"Llama 3.3 API Service\"), and click\n        **Enable**. Only then can you make inference requests.\n",{"name":5,"metadata":24,"description":7},{"category":25},"AiAndMachineLearning","main","be3de0244dc1a57e323d8160787ebb40fb64930e","skills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main","https:\u002F\u002Fskills.x402.wtf","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 23:20:13",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Solizardking\u002Fskillhub-main --skill agent-platform-inference",{"tool":41,"command":42},"bunx","bunx skills add Solizardking\u002Fskillhub-main --skill agent-platform-inference",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Solizardking\u002Fskillhub-main --skill agent-platform-inference","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002FSKILL.md",true,[49,55,59,63,67,71,75,79],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"scripts\u002Fgemini_genai_sdk.py","SCRIPT","脚本",505,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002Fscripts\u002Fgemini_genai_sdk.py",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Fgemini_openai_sdk.py",875,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002Fscripts\u002Fgemini_openai_sdk.py",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Fgemini_vertexai_sdk.py",462,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002Fscripts\u002Fgemini_vertexai_sdk.py",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fopenmaas_genai_sdk.py",607,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002Fscripts\u002Fopenmaas_genai_sdk.py",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fopenmaas_openai_sdk.py",917,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002Fscripts\u002Fopenmaas_openai_sdk.py",{"path":72,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fopenmaas_vertexai_sdk.py",564,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002Fscripts\u002Fopenmaas_vertexai_sdk.py",{"path":76,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Frequirements.txt",56,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002Fscripts\u002Frequirements.txt",{"path":80,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fverify_all.sh",919,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-inference\u002Fscripts\u002Fverify_all.sh",[84,91,98,105,112,120],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M78E0TGCAMNPS207BA3G07S7","zkrouter","Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzkrouter\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M78E0R1Z8BDT6EDTHY17MTNB","zk","For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M78E0P3ZTZ1YWF8MD5MM23QE","zk-omni-messaging","Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk-omni-messaging\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M78E0JXZ2PNB1896VXAGDBWD","zerion-wallet-data","Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzerion-wallet-data\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M78E0G14FH9GRRTQYMKD5E59","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M78E0C2ZYA99CFFDNB7ZMK5S","yield-optimization","Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit\u002Fwithdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter\u002Fexit a position, or check portfolio balances.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyield-optimization\u002FSKILL.md",[],[]]