[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Vertex AI API overview\n\nThis page provides an overview of using the APIs installed with\nVertex AI on Google Distributed Cloud (GDC) air-gapped appliance and its reference\ndocumentation.\n\nService endpoint and discovery document\n---------------------------------------\n\nA service endpoint is required to interact programmatically with the\nVertex AI APIs.\n\nTo get the endpoints for the pre-trained APIs,\n[view service status and endpoints](/distributed-cloud/hosted/docs/latest/appliance/application/ao-user/vertex-ai-api-status).\n\nAPI access\n----------\n\nYou can access the pre-trained APIs using gRPC or one of the provided client\nlibraries. The client libraries are built on gRPC.\n\nAlternatively, you access some pre-trained APIs using REST.\n\n### Client libraries\n\nVertex AI provides Python client libraries for pre-trained APIs. The\nfollowing table shows a comparison of advantages and disadvantages of using\nclient libraries:\n\n### REST\n\nThe OCR and Translation APIs support REST. For more\ninformation, see the REST API references for these services:\n\n- [OCR REST API reference](/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/overview)\n\n- [Translation REST API reference](/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/translation/rest)\n\n| **Note:** The Speech-to-Text API doesn't support REST.\n\nThe following table shows a comparison of advantages and disadvantages of using\nREST:\n\nWhen calling the REST API, the default value behavior for protocol\nbuffers might result in missing fields in a JSON response. These fields are\nset to the default value, so they are not included in the response.\n\n### gRPC\n\nPre-trained APIs and the Gemini API support gRPC. For more information\nabout the generic descriptions of the types, methods, and fields generated for a\ngRPC library, see the following gRPC reference:\n\n- [OCR gRPC reference](/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rpc)\n- [Speech-to-Text gRPC reference](/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/speech-to-text/rpc)\n- [Translation gRPC reference](/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/translation/rpc)\n\nThe following table shows a comparison of advantages and disadvantages of using\ngRPC:\n\nType, method, and field names\n-----------------------------\n\nDepending on whether you are using client libraries, REST, gRPC, or KRM, the\ntype, method, and field names for the API vary in the following ways:\n\n- REST is arranged by resource hierarchies and their methods.\n- Client libraries and gRPC are arranged by services and their methods.\n- KRM field names use camelCase, but the API service accepts either camelCase or snake_case.\n- REST and gRPC field names use snake_case.\n- Client library field names use either title case, camelCase, or snake_case, depending on which name is idiomatic for the language."]]