Computer Vision Client
microsoft · Developer Tools
The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effec
Authentication
Sample Requests
This operation returns the list of domain-specific models that are supported by the Computer Vision API. Currently, the API supports following domain-specific models: celebrity recognizer, landmark recognizer. A successful response will be returned in JSON. If the request failed, the response will
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/models"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/models",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/models'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/models"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/models")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/models";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));This operation extracts a rich set of visual features based on the image content. Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. Within your request, there is an optional parameter to allow you to choose which features to return. By default, image categori
Hover any highlighted part to learn what it does
curl -X POST "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/analyze?details=example&language=en&visualFeatures=example&descriptionExclude=example"
import requests
params = {
"details": "example",
"language": "en",
"visualFeatures": "example",
"descriptionExclude": "example"
}
response = requests.post(
"https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/analyze",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/analyze');
url.searchParams.set('details', 'example');
url.searchParams.set('language', 'en');
url.searchParams.set('visualFeatures', 'example');
url.searchParams.set('descriptionExclude', 'example');
const response = await fetch(url, {
method: 'POST',
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/analyze")
q := baseURL.Query()
q.Set("details", "example")
q.Set("language", "en")
q.Set("visualFeatures", "example")
q.Set("descriptionExclude", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/analyze")
uri.query = URI.encode_www_form({
"details" => "example",
"language" => "en",
"visualFeatures" => "example",
"descriptionExclude" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/analyze?" . http_build_query([
"details" => "example",
"language" => "en",
"visualFeatures" => "example",
"descriptionExclude" => "example"
]);
$opts = ["http" => [
"method" => "POST",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));This operation generates a description of an image in human readable language with complete sentences. The description is based on a collection of content tags, which are also returned by the operation. More than one description can be generated for each image. Descriptions are ordered by their conf
Hover any highlighted part to learn what it does
curl -X POST "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/describe?language=en&maxCandidates=1&descriptionExclude=example"
import requests
params = {
"language": "en",
"maxCandidates": "1",
"descriptionExclude": "example"
}
response = requests.post(
"https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/describe",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/describe');
url.searchParams.set('language', 'en');
url.searchParams.set('maxCandidates', '1');
url.searchParams.set('descriptionExclude', 'example');
const response = await fetch(url, {
method: 'POST',
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/describe")
q := baseURL.Query()
q.Set("language", "en")
q.Set("maxCandidates", "1")
q.Set("descriptionExclude", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("POST", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/describe")
uri.query = URI.encode_www_form({
"language" => "en",
"maxCandidates" => "1",
"descriptionExclude" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/microsoft.com/cognitiveservices-ComputerVision/2.1/describe?" . http_build_query([
"language" => "en",
"maxCandidates" => "1",
"descriptionExclude" => "example"
]);
$opts = ["http" => [
"method" => "POST",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Computer Vision Client?
Computer Vision Client is a Developer Tools API. Developers commonly use developer tools APIs for:
- automating code review and quality checks
- integrating CI/CD pipelines and build systems
- managing feature flags and A/B tests
- monitoring errors and application performance
- generating and validating test data
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Computer Vision Client is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?