curl --request POST \
--url https://api.gpuoutlet.ai/v1/requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"gpuModel": "<string>",
"gpusPerNode": 32,
"nodes": 5000,
"region": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": null,
"durationMonths": null,
"budgetMonthlyCents": null,
"notes": null
}
'import requests
url = "https://api.gpuoutlet.ai/v1/requests"
payload = {
"gpuModel": "<string>",
"gpusPerNode": 32,
"nodes": 5000,
"region": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": None,
"durationMonths": None,
"budgetMonthlyCents": None,
"notes": None
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
gpuModel: '<string>',
gpusPerNode: 32,
nodes: 5000,
region: '<string>',
startsAt: '2023-11-07T05:31:56Z',
endsAt: null,
durationMonths: null,
budgetMonthlyCents: null,
notes: null
})
};
fetch('https://api.gpuoutlet.ai/v1/requests', 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://api.gpuoutlet.ai/v1/requests",
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([
'gpuModel' => '<string>',
'gpusPerNode' => 32,
'nodes' => 5000,
'region' => '<string>',
'startsAt' => '2023-11-07T05:31:56Z',
'endsAt' => null,
'durationMonths' => null,
'budgetMonthlyCents' => null,
'notes' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://api.gpuoutlet.ai/v1/requests"
payload := strings.NewReader("{\n \"gpuModel\": \"<string>\",\n \"gpusPerNode\": 32,\n \"nodes\": 5000,\n \"region\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"endsAt\": null,\n \"durationMonths\": null,\n \"budgetMonthlyCents\": null,\n \"notes\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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://api.gpuoutlet.ai/v1/requests")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"gpuModel\": \"<string>\",\n \"gpusPerNode\": 32,\n \"nodes\": 5000,\n \"region\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"endsAt\": null,\n \"durationMonths\": null,\n \"budgetMonthlyCents\": null,\n \"notes\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gpuoutlet.ai/v1/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"gpuModel\": \"<string>\",\n \"gpusPerNode\": 32,\n \"nodes\": 5000,\n \"region\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"endsAt\": null,\n \"durationMonths\": null,\n \"budgetMonthlyCents\": null,\n \"notes\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "open",
"gpuModel": "<string>",
"gpusPerNode": 123,
"nodes": 123,
"region": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": "2023-11-07T05:31:56Z",
"durationMonths": 123,
"budgetMonthlyCents": 123,
"currency": "USD",
"notes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}State demand
Files a request the operator will match sellers against. Sellers see the specification anonymised — never notes, never your company. Requires requests:write and the request.manage right (trader, authorized signatory or owner). Idempotency-Key is required.
curl --request POST \
--url https://api.gpuoutlet.ai/v1/requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"gpuModel": "<string>",
"gpusPerNode": 32,
"nodes": 5000,
"region": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": null,
"durationMonths": null,
"budgetMonthlyCents": null,
"notes": null
}
'import requests
url = "https://api.gpuoutlet.ai/v1/requests"
payload = {
"gpuModel": "<string>",
"gpusPerNode": 32,
"nodes": 5000,
"region": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": None,
"durationMonths": None,
"budgetMonthlyCents": None,
"notes": None
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
gpuModel: '<string>',
gpusPerNode: 32,
nodes: 5000,
region: '<string>',
startsAt: '2023-11-07T05:31:56Z',
endsAt: null,
durationMonths: null,
budgetMonthlyCents: null,
notes: null
})
};
fetch('https://api.gpuoutlet.ai/v1/requests', 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://api.gpuoutlet.ai/v1/requests",
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([
'gpuModel' => '<string>',
'gpusPerNode' => 32,
'nodes' => 5000,
'region' => '<string>',
'startsAt' => '2023-11-07T05:31:56Z',
'endsAt' => null,
'durationMonths' => null,
'budgetMonthlyCents' => null,
'notes' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://api.gpuoutlet.ai/v1/requests"
payload := strings.NewReader("{\n \"gpuModel\": \"<string>\",\n \"gpusPerNode\": 32,\n \"nodes\": 5000,\n \"region\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"endsAt\": null,\n \"durationMonths\": null,\n \"budgetMonthlyCents\": null,\n \"notes\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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://api.gpuoutlet.ai/v1/requests")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"gpuModel\": \"<string>\",\n \"gpusPerNode\": 32,\n \"nodes\": 5000,\n \"region\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"endsAt\": null,\n \"durationMonths\": null,\n \"budgetMonthlyCents\": null,\n \"notes\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gpuoutlet.ai/v1/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"gpuModel\": \"<string>\",\n \"gpusPerNode\": 32,\n \"nodes\": 5000,\n \"region\": \"<string>\",\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"endsAt\": null,\n \"durationMonths\": null,\n \"budgetMonthlyCents\": null,\n \"notes\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"status": "open",
"gpuModel": "<string>",
"gpusPerNode": 123,
"nodes": 123,
"region": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"endsAt": "2023-11-07T05:31:56Z",
"durationMonths": 123,
"budgetMonthlyCents": 123,
"currency": "USD",
"notes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"param": "<string>",
"required_scope": "<string>",
"retry_after_seconds": 123,
"current": "<string>",
"problems": [
"<string>"
]
}
}Authorizations
An API key from your dashboard, sent as Authorization: Bearer gpk_….
Headers
Unique per intent. Retries of the same intent must reuse it verbatim; a new intent needs a new one. Remembered for 24 hours.
1 - 255^[\x20-\x7E]+$Body
The whole specification. endsAt or durationMonths must be given (both may be); the domain reports every violated rule at once as request_invalid with problems.
641 <= x <= 641 <= x <= 1000064USD, EUR 1 <= x <= 60For the operator only. Never shown to sellers.
2000Response
The request — or, on a replayed Idempotency-Key, the one that key already created
open — waiting to be matched. matched — at least one seller has been offered it; it stays alive for further matches and can no longer be edited. closed — terminal.
open, matched, closed USD, EUR