Solve any captcha (auto-detect)
One call for either kind. If the image is a math expression you get type: "math" with sum; otherwise type: "text" with the characters read.
Request
The captcha image in data. charset and length apply only when the image is text.
Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.
1curl --request POST \
2 --url https://captcha-solver.p.apihiver.com/v1/solve \
3 --header 'Accept: application/json' \
4 --header 'Content-Type: application/x-www-form-urlencoded' \
5 --header 'X-API-Key: YOUR_API_KEY' \
6 --data 'data=data:image/png;base64,iVBORw0KGgo...' \
7 --data charset=alphanumeric \
8 --data length=5Solve any captcha (auto-detect): Captcha Solver API reference
One call for either kind. If the image is a math expression you get `type: "math"` with `sum`; otherwise `type: "text"` with the characters read. This endpoint is part of the Captcha Solver API: Solve simple image captchas — math like "19 + 20 = ?" returns the sum, text captchas return the characters. Clean JSON.
Solve any captcha (auto-detect): example requests in every language
POST /v1/solve in Shell (cURL)
curl --request POST \
--url https://captcha-solver.p.apihiver.com/v1/solve \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-API-Key: YOUR_API_KEY' \
--data 'data=data:image/png;base64,iVBORw0KGgo...' \
--data charset=alphanumeric \
--data length=5POST /v1/solve in Shell (HTTPie)
http --form POST https://captcha-solver.p.apihiver.com/v1/solve \
Accept:application/json \
Content-Type:application/x-www-form-urlencoded \
X-API-Key:YOUR_API_KEY \
data='data:image/png;base64,iVBORw0KGgo...' \
charset=alphanumeric \
length=5POST /v1/solve in Shell (Wget)
wget --quiet \
--method POST \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--body-data 'data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5' \
--output-document \
- https://captcha-solver.p.apihiver.com/v1/solvePOST /v1/solve in Node.js (http)
const qs = require('querystring');
const http = require('https');
const options = {
method: 'POST',
hostname: 'captcha-solver.p.apihiver.com',
port: null,
path: '/v1/solve',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(qs.stringify({
data: 'data:image/png;base64,iVBORw0KGgo...',
charset: 'alphanumeric',
length: '5'
}));
req.end();POST /v1/solve in Node.js (Request)
const request = require('request');
const options = {
method: 'POST',
url: 'https://captcha-solver.p.apihiver.com/v1/solve',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
form: {
data: 'data:image/png;base64,iVBORw0KGgo...',
charset: 'alphanumeric',
length: '5'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});POST /v1/solve in Node.js (Unirest)
const unirest = require('unirest');
const req = unirest('POST', 'https://captcha-solver.p.apihiver.com/v1/solve');
req.headers({
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
});
req.form({
data: 'data:image/png;base64,iVBORw0KGgo...',
charset: 'alphanumeric',
length: '5'
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});POST /v1/solve in Node.js (Axios)
const axios = require('axios').default;
const { URLSearchParams } = require('url');
const encodedParams = new URLSearchParams();
encodedParams.set('data', 'data:image/png;base64,iVBORw0KGgo...');
encodedParams.set('charset', 'alphanumeric');
encodedParams.set('length', '5');
const options = {
method: 'POST',
url: 'https://captcha-solver.p.apihiver.com/v1/solve',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
data: encodedParams,
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}POST /v1/solve in Node.js (Fetch)
const { URLSearchParams } = require('url');
const fetch = require('node-fetch');
const encodedParams = new URLSearchParams();
encodedParams.set('data', 'data:image/png;base64,iVBORw0KGgo...');
encodedParams.set('charset', 'alphanumeric');
encodedParams.set('length', '5');
const url = 'https://captcha-solver.p.apihiver.com/v1/solve';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
body: encodedParams
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}POST /v1/solve in JavaScript (XMLHttpRequest)
const data = 'data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5';
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', 'https://captcha-solver.p.apihiver.com/v1/solve');
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.setRequestHeader('Accept', 'application/json');
xhr.setRequestHeader('X-API-Key', 'YOUR_API_KEY');
xhr.send(data);POST /v1/solve in JavaScript (Axios)
import axios from 'axios';
const encodedParams = new URLSearchParams();
encodedParams.set('data', 'data:image/png;base64,iVBORw0KGgo...');
encodedParams.set('charset', 'alphanumeric');
encodedParams.set('length', '5');
const options = {
method: 'POST',
url: 'https://captcha-solver.p.apihiver.com/v1/solve',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
data: encodedParams,
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}POST /v1/solve in JavaScript (Fetch)
const url = 'https://captcha-solver.p.apihiver.com/v1/solve';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
body: new URLSearchParams({
data: 'data:image/png;base64,iVBORw0KGgo...',
charset: 'alphanumeric',
length: '5'
})
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}POST /v1/solve in JavaScript (jQuery)
const settings = {
async: true,
crossDomain: true,
url: 'https://captcha-solver.p.apihiver.com/v1/solve',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
data: {
data: 'data:image/png;base64,iVBORw0KGgo...',
charset: 'alphanumeric',
length: '5'
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});POST /v1/solve in Python (http.client)
import http.client
conn = http.client.HTTPSConnection("captcha-solver.p.apihiver.com")
payload = "data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5"
headers = {
'Content-Type': "application/x-www-form-urlencoded",
'Accept': "application/json",
'X-API-Key': "YOUR_API_KEY"
}
conn.request("POST", "/v1/solve", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))POST /v1/solve in Python (Requests)
import requests
url = "https://captcha-solver.p.apihiver.com/v1/solve"
payload = {
"data": "data:image/png;base64,iVBORw0KGgo...",
"charset": "alphanumeric",
"length": "5"
}
headers = {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
response = requests.post(url, data=payload, headers=headers)
print(response.json())POST /v1/solve in PHP (cURL)
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://captcha-solver.p.apihiver.com/v1/solve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5",
CURLOPT_HTTPHEADER => [
"Accept: application/json",
"Content-Type: application/x-www-form-urlencoded",
"X-API-Key: YOUR_API_KEY"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}POST /v1/solve in PHP (Guzzle)
<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://captcha-solver.p.apihiver.com/v1/solve', [
'form_params' => [
'data' => 'data:image/png;base64,iVBORw0KGgo...',
'charset' => 'alphanumeric',
'length' => '5'
],
'headers' => [
'Accept' => 'application/json',
'Content-Type' => 'application/x-www-form-urlencoded',
'X-API-Key' => 'YOUR_API_KEY',
],
]);
echo $response->getBody();POST /v1/solve in PHP (PECL HTTP v1)
<?php
$request = new HttpRequest();
$request->setUrl('https://captcha-solver.p.apihiver.com/v1/solve');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'Content-Type' => 'application/x-www-form-urlencoded',
'Accept' => 'application/json',
'X-API-Key' => 'YOUR_API_KEY'
]);
$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields([
'data' => 'data:image/png;base64,iVBORw0KGgo...',
'charset' => 'alphanumeric',
'length' => '5'
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}POST /v1/solve in PHP (PECL HTTP v2)
<?php
$client = new http\Client;
$request = new http\Client\Request;
$body = new http\Message\Body;
$body->append(new http\QueryString([
'data' => 'data:image/png;base64,iVBORw0KGgo...',
'charset' => 'alphanumeric',
'length' => '5'
]));
$request->setRequestUrl('https://captcha-solver.p.apihiver.com/v1/solve');
$request->setRequestMethod('POST');
$request->setBody($body);
$request->setHeaders([
'Content-Type' => 'application/x-www-form-urlencoded',
'Accept' => 'application/json',
'X-API-Key' => 'YOUR_API_KEY'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();POST /v1/solve in Java (AsyncHttp)
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "https://captcha-solver.p.apihiver.com/v1/solve")
.setHeader("Content-Type", "application/x-www-form-urlencoded")
.setHeader("Accept", "application/json")
.setHeader("X-API-Key", "YOUR_API_KEY")
.setBody("data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();POST /v1/solve in Java (java.net.http)
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://captcha-solver.p.apihiver.com/v1/solve"))
.header("Content-Type", "application/x-www-form-urlencoded")
.header("Accept", "application/json")
.header("X-API-Key", "YOUR_API_KEY")
.method("POST", HttpRequest.BodyPublishers.ofString("data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5"))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());POST /v1/solve in Java (OkHttp)
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5");
Request request = new Request.Builder()
.url("https://captcha-solver.p.apihiver.com/v1/solve")
.post(body)
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.addHeader("Accept", "application/json")
.addHeader("X-API-Key", "YOUR_API_KEY")
.build();
Response response = client.newCall(request).execute();POST /v1/solve in Java (Unirest)
HttpResponse<String> response = Unirest.post("https://captcha-solver.p.apihiver.com/v1/solve")
.header("Content-Type", "application/x-www-form-urlencoded")
.header("Accept", "application/json")
.header("X-API-Key", "YOUR_API_KEY")
.body("data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5")
.asString();POST /v1/solve in C# (HttpClient)
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://captcha-solver.p.apihiver.com/v1/solve"),
Headers =
{
{ "Accept", "application/json" },
{ "X-API-Key", "YOUR_API_KEY" },
},
Content = new FormUrlEncodedContent(new Dictionary<string, string>
{
{ "data", "data:image/png;base64,iVBORw0KGgo..." },
{ "charset", "alphanumeric" },
{ "length", "5" },
}),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}POST /v1/solve in C# (RestSharp)
var client = new RestClient("https://captcha-solver.p.apihiver.com/v1/solve");
var request = new RestRequest("", Method.Post);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Accept", "application/json");
request.AddHeader("X-API-Key", "YOUR_API_KEY");
request.AddParameter("application/x-www-form-urlencoded", "data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5", ParameterType.RequestBody);
var response = client.Execute(request);POST /v1/solve in Go (NewRequest)
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://captcha-solver.p.apihiver.com/v1/solve"
payload := strings.NewReader("data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
req.Header.Add("Accept", "application/json")
req.Header.Add("X-API-Key", "YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}POST /v1/solve in Ruby (net::http)
require 'uri'
require 'net/http'
url = URI("https://captcha-solver.p.apihiver.com/v1/solve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request["Accept"] = 'application/json'
request["X-API-Key"] = 'YOUR_API_KEY'
request.body = "data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5"
response = http.request(request)
puts response.read_bodyPOST /v1/solve in Swift (NSURLSession)
import Foundation
let headers = [
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY"
]
let postData = NSMutableData(data: "data=data:image/png;base64,iVBORw0KGgo...".data(using: String.Encoding.utf8)!)
postData.append("&charset=alphanumeric".data(using: String.Encoding.utf8)!)
postData.append("&length=5".data(using: String.Encoding.utf8)!)
let request = NSMutableURLRequest(url: NSURL(string: "https://captcha-solver.p.apihiver.com/v1/solve")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()POST /v1/solve in Objective-C (NSURLSession)
#import <Foundation/Foundation.h>
NSDictionary *headers = @{ @"Content-Type": @"application/x-www-form-urlencoded",
@"Accept": @"application/json",
@"X-API-Key": @"YOUR_API_KEY" };
NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"data=data:image/png;base64,iVBORw0KGgo..." dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&charset=alphanumeric" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&length=5" dataUsingEncoding:NSUTF8StringEncoding]];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://captcha-solver.p.apihiver.com/v1/solve"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];POST /v1/solve in Kotlin (OkHttp)
val client = OkHttpClient()
val mediaType = MediaType.parse("application/x-www-form-urlencoded")
val body = RequestBody.create(mediaType, "data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5")
val request = Request.Builder()
.url("https://captcha-solver.p.apihiver.com/v1/solve")
.post(body)
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.addHeader("Accept", "application/json")
.addHeader("X-API-Key", "YOUR_API_KEY")
.build()
val response = client.newCall(request).execute()POST /v1/solve in C (libcurl)
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://captcha-solver.p.apihiver.com/v1/solve");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Content-Type: application/x-www-form-urlencoded");
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "X-API-Key: YOUR_API_KEY");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5");
CURLcode ret = curl_easy_perform(hnd);POST /v1/solve in Clojure (clj-http)
(require '[clj-http.client :as client])
(client/post "https://captcha-solver.p.apihiver.com/v1/solve" {:headers {:X-API-Key "YOUR_API_KEY"}
:form-params {:data "data:image/png;base64,iVBORw0KGgo..."
:charset "alphanumeric"
:length "5"}
:accept :json})POST /v1/solve in OCaml (CoHTTP)
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "https://captcha-solver.p.apihiver.com/v1/solve" in
let headers = Header.add_list (Header.init ()) [
("Content-Type", "application/x-www-form-urlencoded");
("Accept", "application/json");
("X-API-Key", "YOUR_API_KEY");
] in
let body = Cohttp_lwt_body.of_string "data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5" in
Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)POST /v1/solve in R (httr)
library(httr)
url <- "https://captcha-solver.p.apihiver.com/v1/solve"
payload <- "data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5"
encode <- "form"
response <- VERB("POST", url, body = payload, add_headers('X-API-Key' = 'YOUR_API_KEY'), content_type("application/x-www-form-urlencoded"), accept("application/json"), encode = encode)
content(response, "text")POST /v1/solve in PowerShell (Invoke-WebRequest)
$headers=@{}
$headers.Add("Content-Type", "application/x-www-form-urlencoded")
$headers.Add("Accept", "application/json")
$headers.Add("X-API-Key", "YOUR_API_KEY")
$response = Invoke-WebRequest -Uri 'https://captcha-solver.p.apihiver.com/v1/solve' -Method POST -Headers $headers -ContentType 'application/x-www-form-urlencoded' -Body 'data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5'POST /v1/solve in PowerShell (Invoke-RestMethod)
$headers=@{}
$headers.Add("Content-Type", "application/x-www-form-urlencoded")
$headers.Add("Accept", "application/json")
$headers.Add("X-API-Key", "YOUR_API_KEY")
$response = Invoke-RestMethod -Uri 'https://captcha-solver.p.apihiver.com/v1/solve' -Method POST -Headers $headers -ContentType 'application/x-www-form-urlencoded' -Body 'data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5'POST /v1/solve in HTTP (HTTP/1.1)
POST /v1/solve HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: application/json
X-Api-Key: YOUR_API_KEY
Host: captcha-solver.p.apihiver.com
Content-Length: 79
data=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgo...&charset=alphanumeric&length=5Example response (200, application/json)
The captcha was read. Math results carry `sum`; text results carry `text`.
1{
2 "sum": 39,
3 "type": "math",
4 "image": {
5 "width": 150,
6 "height": 30
7 },
8 "answer": 39,
9 "method": "grey/psm7",
10 "question": "19+20 = ?",
11 "raw_text": "19+20=?",
12 "confidence": 95.9,
13 "expression": "19+20"
14}Errors
- 400 — The image was not valid base64, or an option was out of range.
1{ 2 "error": { 3 "code": "INVALID_INPUT", 4 "message": "The image is not valid base64." 5 } 6} - 415 — The file is not an image we can read.
1{ 2 "error": { 3 "code": "UNSUPPORTED_IMAGE", 4 "message": "That file isn't an image we can read (PNG, JPEG, WebP, GIF, BMP)." 5 } 6}
Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.