Retrieve a model
curl --request GET \
--url https://inference.square1.dev/v1/models/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://inference.square1.dev/v1/models/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://inference.square1.dev/v1/models/{id}', 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://inference.square1.dev/v1/models/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://inference.square1.dev/v1/models/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://inference.square1.dev/v1/models/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://inference.square1.dev/v1/models/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "model",
"created": 123,
"owned_by": "<string>",
"supports_tools": true,
"supports_reasoning": true,
"supports_images": true,
"supports_embeddings": true,
"max_output_tokens": 123,
"max_input_tokens": 123,
"rate_limit_rpm": 123
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"resets_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"resets_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"resets_at": "2023-11-07T05:31:56Z"
}
}Models
Retrieve a model
GET
/
v1
/
models
/
{id}
Retrieve a model
curl --request GET \
--url https://inference.square1.dev/v1/models/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://inference.square1.dev/v1/models/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://inference.square1.dev/v1/models/{id}', 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://inference.square1.dev/v1/models/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://inference.square1.dev/v1/models/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://inference.square1.dev/v1/models/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://inference.square1.dev/v1/models/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "model",
"created": 123,
"owned_by": "<string>",
"supports_tools": true,
"supports_reasoning": true,
"supports_images": true,
"supports_embeddings": true,
"max_output_tokens": 123,
"max_input_tokens": 123,
"rate_limit_rpm": 123
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"resets_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"resets_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"resets_at": "2023-11-07T05:31:56Z"
}
}Authorizations
A Square1 API key: Authorization: Bearer sq-arca-... (legacy ws-... keys remain valid). Create and rotate keys from the dashboard.
Path Parameters
Response
The model.
Always 0 (catalog entries carry no creation time).
The model maker (e.g. OpenAI, DeepSeek).
The enforced input ceiling for this model — operator-tuned and live (requests over it return 400 input_too_long).
Your requests-per-minute limit on this model.