setAccessKey("ak"); $client->setSecretKey("sk"); $config = [ "json" => [ 'Url' => 'image url', 'ServiceId' => 'imagex service id', ], ]; $response = $client->requestImageX("FetchImageUrl", $config); echo $response;