asticaVision: Describe Image - Javascript Client API

Explore: asticaVision asticaListen asticaVoice asticaGPT
Comma separated, leave blank for all
'1.0_full' supported options:
  • describe
  • objects
  • categories
  • moderate
  • tags
  • brands
  • color
  • faces
  • celebrities
  • landmarks
  • gpt new (Slow)
  • gpt_detailed new (Slower)
  • '2.0_full' supported options:
  • describe
  • describe_all
  • text_read
  • gpt (Slow)
  • gpt_detailed (Slower)
  • objects
  • tags
  • '2.1_full' supported options:
  • Supports All Options

  • View asticaVision API Documentation





    asticaVision - Image Description Usage:

    <script src="https://astica.ai/javascript-sdk/2023-07-09/astica.api.js"></script>
    <script>
        asticaAPI_start('API KEY HERE'); //run at least once    
    
        
        //Example 1:   
        asticaVision('Image URL or Base64', 'Objects'); //simple computer vision  
        //Example 2:   
        asticaVision('Image URL or Base64', 'Description,Faces,Objects'); //with options:
      
        //Example 3:   
        asticaVision('https://astica.ai/example/asticaVision_sample.jpg'); //advanced, simple
        
        //Example 4:      
        //advanced with parameters:
        asticaVision(
            '1.0_full', //modelVersion: 1.0_full, 2.0_full
            'IMAGE URL or Base64', //Input Image
            'Description,Moderate,Faces', //or 'all'
            your_astica_CallBack, //Your Custom Callback function
        ); 
        
        //Set Your Custom Callback Function 
    	function your_astica_CallBack(data) {   
            if(typeof data.error != 'undefined') { alert(data.error); }         
            console.log(data); //view all data
        }	   
    </script>