ProjectsLocationsPublishersModels
class ProjectsLocationsPublishersModels extends Resource (View source)
The "models" collection of methods.
Typical usage is:
 $aiplatformService = new Google\Service\Aiplatform(...);
 $models = $aiplatformService->projects_locations_publishers_models;Methods
Return a list of tokens based on the input text. (models.computeTokens)
Perform a token counting. (models.countTokens)
Generate content with multimodal inputs. (models.generateContent)
Perform an online prediction. (models.predict)
Perform an online prediction with an arbitrary HTTP payload. The response
includes the following HTTP headers:  X-Vertex-AI-Endpoint-Id: ID of the
Endpoint that served this prediction.  X-Vertex-AI-Deployed-Model-Id: ID
of the Endpoint's DeployedModel that served this prediction.
Perform a server-side streaming online prediction request for Vertex LLM streaming. (models.serverStreamingPredict)
Generate content with multimodal inputs with streaming support.
Perform a streaming online prediction with an arbitrary HTTP payload.
Details
        
                            GoogleCloudAiplatformV1ComputeTokensResponse
    computeTokens(string $endpoint, GoogleCloudAiplatformV1ComputeTokensRequest $postBody, array $optParams = [])
        
    
    Return a list of tokens based on the input text. (models.computeTokens)
        
                            GoogleCloudAiplatformV1CountTokensResponse
    countTokens(string $endpoint, GoogleCloudAiplatformV1CountTokensRequest $postBody, array $optParams = [])
        
    
    Perform a token counting. (models.countTokens)
        
                            GoogleCloudAiplatformV1GenerateContentResponse
    generateContent(string $model, GoogleCloudAiplatformV1GenerateContentRequest $postBody, array $optParams = [])
        
    
    Generate content with multimodal inputs. (models.generateContent)
        
                            GoogleCloudAiplatformV1PredictResponse
    predict(string $endpoint, GoogleCloudAiplatformV1PredictRequest $postBody, array $optParams = [])
        
    
    Perform an online prediction. (models.predict)
        
                            GoogleApiHttpBody
    rawPredict(string $endpoint, GoogleCloudAiplatformV1RawPredictRequest $postBody, array $optParams = [])
        
    
    Perform an online prediction with an arbitrary HTTP payload. The response
includes the following HTTP headers:  X-Vertex-AI-Endpoint-Id: ID of the
Endpoint that served this prediction.  X-Vertex-AI-Deployed-Model-Id: ID
of the Endpoint's DeployedModel that served this prediction.
(models.rawPredict)
        
                            GoogleCloudAiplatformV1StreamingPredictResponse
    serverStreamingPredict(string $endpoint, GoogleCloudAiplatformV1StreamingPredictRequest $postBody, array $optParams = [])
        
    
    Perform a server-side streaming online prediction request for Vertex LLM streaming. (models.serverStreamingPredict)
        
                            GoogleCloudAiplatformV1GenerateContentResponse
    streamGenerateContent(string $model, GoogleCloudAiplatformV1GenerateContentRequest $postBody, array $optParams = [])
        
    
    Generate content with multimodal inputs with streaming support.
(models.streamGenerateContent)
        
                            GoogleApiHttpBody
    streamRawPredict(string $endpoint, GoogleCloudAiplatformV1StreamRawPredictRequest $postBody, array $optParams = [])
        
    
    Perform a streaming online prediction with an arbitrary HTTP payload.
(models.streamRawPredict)