Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Bing Reverse Image Search

Dokumentacja API
https://api.sandbase.ai/v1/api/bing/reverse-image

Search Bing Visual Search with an image URL and get visually similar images, pages that contain the image and related searches.

Cena
$0.01USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 8 opcjonalnych

Playground

Wejście

PNG, JPEG, WebP lub GIF · maksymalnie 20 MiB

Parameter defines the URL for an image to perform the reverse image search. NOTE: The image's width and height must each be 4,000 pixels or less.
The market where the results come from (e.g. `en-US`). Typically, `mkt` is the country where the user is making the request from. However, it could be a different country if the user is not located in a country where Bing Reverse Image API delivers results. The market must be in the form <language code>-<country code>. For example, en-US. The string is case insensitive. For a list of possible market values, see Market Codes. NOTE: If known, you are encouraged to always specify the market. Specifying the market helps Bing route the request and return an appropriate and optimal response. If you
Parameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, `0.3` means cropping 30% from the top. The minimum and maximum for this coordinate are `0` and `1`, respectively.
Parameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, `0.3` means cropping 30% from the left. The minimum and maximum for this coordinate are `0` and `1`, respectively.
Parameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, `0.8` means cropping the right, 80% from the left. The minimum and maximum for this coordinate are `0` and `1`, respectively.
Parameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, `0.8` means cropping the bottom, 80% from the top. The minimum and maximum for this coordinate are `0` and `1`, respectively.
Parameter defines the next page token. It is used for retrieving the next page results.
Parameter controls the number of results per page. This parameter defaults to `35`. This parameter is only a suggestion and might not reflect the returned results. The minimum and maximum for this parameter are `0` and `150`, respectively.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

Bing Reverse Image Search

Search Bing Visual Search with an image URL and get visually similar images, pages that contain the image and related searches.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bing/reverse-image" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Camponotus_flavomarginatus_ant.jpg/320px-Camponotus_flavomarginatus_ant.jpg"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
image_urlstringYesParameter defines the URL for an image to perform the reverse image search. NOTE: The image's width and height must each be 4,000 pixels or less.
mktstringNoThe market where the results come from (e.g. en-US). Typically, mkt is the country where the user is making the request from. However, it could be a different country if the user is not located in a country where Bing Reverse Image API
catstringNoParameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, 0.3 means cropping 30% from the top. The minimum and maximum for this coordinate are 0 and 1, respectively.
calstringNoParameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, 0.3 means cropping 30% from the left. The minimum and maximum for this coordinate are 0 and 1, respectively.
carstringNoParameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, 0.8 means cropping the right, 80% from the left. The minimum and maximum for this coordinate are 0 and 1, respectively.
cabstringNoParameter is used to crop the image and perform the reverse search on the cropped part of the image. For example, 0.8 means cropping the bottom, 80% from the top. The minimum and maximum for this coordinate are 0 and 1, respectively.
next_page_tokenstringNoParameter defines the next page token. It is used for retrieving the next page results.
countstringNoParameter controls the number of results per page. This parameter defaults to 35. This parameter is only a suggestion and might not reflect the returned results. The minimum and maximum for this parameter are 0 and 150, respectively.
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Bing$0.01 za wywołanieJSON
Bing$0.015 za wywołanieJSON
Bing$0.015 za wywołanieJSON
Bing$0.01 za wywołanieJSON
Bing$0.01 za wywołanieJSON
Bing$0.015 za wywołanieJSON

Pytania

FAQ

Jak używać API Bing Reverse Image Search?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/bing/reverse-image z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Bing Reverse Image Search?

$0.01 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Bing Reverse Image Search?

Wymagane: image_url (string). Opcjonalne: mkt (string), cat (string), cal (string), car (string), cab (string) i next_page_token (string) i jeszcze 2. Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Bing Reverse Image Search?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).

Czy potrzebuję konta deweloperskiego Bing lub klucza API?

Nie. Bing Reverse Image Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Bing.