curl --request POST \
--url https://biohub.ai/api/v1/batch/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endpoint": "fold",
"payload": [
{
"model": "esmfold2-2026-05",
"sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ"
}
]
}
'import requests
url = "https://biohub.ai/api/v1/batch/submit"
payload = {
"endpoint": "fold",
"payload": [
{
"model": "esmfold2-2026-05",
"sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
endpoint: 'fold',
payload: [{model: 'esmfold2-2026-05', sequence: 'MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ'}]
})
};
fetch('https://biohub.ai/api/v1/batch/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://biohub.ai/api/v1/batch/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'endpoint' => 'fold',
'payload' => [
[
'model' => 'esmfold2-2026-05',
'sequence' => 'MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://biohub.ai/api/v1/batch/submit"
payload := strings.NewReader("{\n \"endpoint\": \"fold\",\n \"payload\": [\n {\n \"model\": \"esmfold2-2026-05\",\n \"sequence\": \"MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://biohub.ai/api/v1/batch/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"endpoint\": \"fold\",\n \"payload\": [\n {\n \"model\": \"esmfold2-2026-05\",\n \"sequence\": \"MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://biohub.ai/api/v1/batch/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"endpoint\": \"fold\",\n \"payload\": [\n {\n \"model\": \"esmfold2-2026-05\",\n \"sequence\": \"MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"message": "<string>",
"batch_id": "<string>",
"total_items": 123,
"replayed": true,
"task_id": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}batch_submit
Queue inference and receive a batch ID.
curl --request POST \
--url https://biohub.ai/api/v1/batch/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endpoint": "fold",
"payload": [
{
"model": "esmfold2-2026-05",
"sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ"
}
]
}
'import requests
url = "https://biohub.ai/api/v1/batch/submit"
payload = {
"endpoint": "fold",
"payload": [
{
"model": "esmfold2-2026-05",
"sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
endpoint: 'fold',
payload: [{model: 'esmfold2-2026-05', sequence: 'MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ'}]
})
};
fetch('https://biohub.ai/api/v1/batch/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://biohub.ai/api/v1/batch/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'endpoint' => 'fold',
'payload' => [
[
'model' => 'esmfold2-2026-05',
'sequence' => 'MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://biohub.ai/api/v1/batch/submit"
payload := strings.NewReader("{\n \"endpoint\": \"fold\",\n \"payload\": [\n {\n \"model\": \"esmfold2-2026-05\",\n \"sequence\": \"MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://biohub.ai/api/v1/batch/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"endpoint\": \"fold\",\n \"payload\": [\n {\n \"model\": \"esmfold2-2026-05\",\n \"sequence\": \"MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://biohub.ai/api/v1/batch/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"endpoint\": \"fold\",\n \"payload\": [\n {\n \"model\": \"esmfold2-2026-05\",\n \"sequence\": \"MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"message": "<string>",
"batch_id": "<string>",
"total_items": 123,
"replayed": true,
"task_id": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}{
"status": "error",
"message": "<string>",
"request_id": "<string>",
"results_expire_at": "2023-11-07T05:31:56Z"
}Authorizations
Body
One or more inputs, which must match the endpoint. Payload length times repeat must not exceed 10 for fold_max_accuracy, or 256 for design_binder.
1 - 2000 elementsOne maximum-accuracy folding input. The service generates its own MSA; caller-supplied MSAs and folding recipe parameters are not supported.
- FoldMaxAccuracyRequest
- DesignBinderRequest
- FoldRequest
- FoldAllAtomRequest
Show child attributes
Show child attributes
{
"model": "esmfold2-2026-05-cutoff-2025",
"all_atom_input": {
"sequences": [
{
"id": "A",
"type": "protein",
"sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ"
}
]
},
"include_pae": true
}
Optional lowercase UUIDv4 used as the durable batch ID. Available to API-key callers on all supported batch endpoints and models. Session callers cannot set this field. A delegation-token caller can set it on a one-item fold batch, must set it on a design_binder batch and on a fold batch with more than one item, and cannot set it on a fold_all_atom or fold_max_accuracy batch. An exact replay by the same user returns the existing batch without queuing work again, even if the original batch failed. The digest covers endpoint, payload, repeat, effective x-disable-cache, effective x-fold-profile, and the server's queue scope. Cache disabling is true only for header values 'true' or 'True'; the fold profile is 'dev' or 'prod' for internal callers and null otherwise. Object keys are sorted recursively; array order is preserved. Keep the request and effective execution settings unchanged for a replay. A conflicting owner or digest returns 409. This field does not select a routing destination; a replay preserves the original routing and does not consume additional task quota. Omit this field for a new random batch ID.
^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$Run each input this many times. Payload length times repeat must not exceed 10 for fold_max_accuracy, or 256 for design_binder. A design trajectory offsets its seed by the item index, so repeat 16 gives 16 different binders rather than 16 copies of one.
1 <= x <= 2000