curl --request POST \
--url https://api.zerogpu.ai/zeroclick/v1/responses \
--header 'Content-Type: application/json' \
--header 'zc-signature: <api-key>' \
--data '
{
"model": "LFM2.5-1.2B-Instruct",
"input": "Summarize the following article: ..."
}
'import requests
url = "https://api.zerogpu.ai/zeroclick/v1/responses"
payload = {
"model": "LFM2.5-1.2B-Instruct",
"input": "Summarize the following article: ..."
}
headers = {
"zc-signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'zc-signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'LFM2.5-1.2B-Instruct', input: 'Summarize the following article: ...'})
};
fetch('https://api.zerogpu.ai/zeroclick/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/zeroclick/v1/responses"
payload := strings.NewReader("{\n \"model\": \"LFM2.5-1.2B-Instruct\",\n \"input\": \"Summarize the following article: ...\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("zc-signature", "<api-key>")
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))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/zeroclick/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["zc-signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"LFM2.5-1.2B-Instruct\",\n \"input\": \"Summarize the following article: ...\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "response",
"created_at": 123,
"status": "completed",
"completed_at": 123,
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
},
"incomplete_details": null,
"instructions": "<string>",
"max_output_tokens": 123,
"model": "<string>",
"output": [
{
"type": "message",
"id": "<string>",
"status": "<string>",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "<string>",
"annotations": [
"<unknown>"
]
}
]
}
],
"parallel_tool_calls": true,
"previous_response_id": "<string>",
"reasoning": {
"effort": null,
"summary": null
},
"store": true,
"temperature": 123,
"text": {
"format": {
"type": "<string>"
}
},
"tool_choice": "<string>",
"tools": [
"<unknown>"
],
"top_p": 123,
"truncation": "auto",
"usage": {
"input_tokens": 123,
"input_tokens_details": {
"cached_tokens": 123
},
"output_tokens": 123,
"output_tokens_details": {
"reasoning_tokens": 123
},
"total_tokens": 123
},
"user": "<string>",
"metadata": {}
}{
"id": "<string>",
"object": "response",
"created_at": 123,
"status": "completed",
"completed_at": 123,
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
},
"incomplete_details": null,
"instructions": "<string>",
"max_output_tokens": 123,
"model": "<string>",
"output": [
{
"type": "message",
"id": "<string>",
"status": "<string>",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "<string>",
"annotations": [
"<unknown>"
]
}
]
}
],
"parallel_tool_calls": true,
"previous_response_id": "<string>",
"reasoning": {
"effort": null,
"summary": null
},
"store": true,
"temperature": 123,
"text": {
"format": {
"type": "<string>"
}
},
"tool_choice": "<string>",
"tools": [
"<unknown>"
],
"top_p": 123,
"truncation": "auto",
"usage": {
"input_tokens": 123,
"input_tokens_details": {
"cached_tokens": 123
},
"output_tokens": 123,
"output_tokens_details": {
"reasoning_tokens": 123
},
"total_tokens": 123
},
"user": "<string>",
"metadata": {}
}{
"error": "invalid_zeroclick_signature"
}{}{
"id": "<string>",
"object": "response",
"created_at": 123,
"status": "completed",
"completed_at": 123,
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
},
"incomplete_details": null,
"instructions": "<string>",
"max_output_tokens": 123,
"model": "<string>",
"output": [
{
"type": "message",
"id": "<string>",
"status": "<string>",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "<string>",
"annotations": [
"<unknown>"
]
}
]
}
],
"parallel_tool_calls": true,
"previous_response_id": "<string>",
"reasoning": {
"effort": null,
"summary": null
},
"store": true,
"temperature": 123,
"text": {
"format": {
"type": "<string>"
}
},
"tool_choice": "<string>",
"tools": [
"<unknown>"
],
"top_p": 123,
"truncation": "auto",
"usage": {
"input_tokens": 123,
"input_tokens_details": {
"cached_tokens": 123
},
"output_tokens": 123,
"output_tokens_details": {
"reasoning_tokens": 123
},
"total_tokens": 123
},
"user": "<string>",
"metadata": {}
}{
"error": {
"message": "Internal error",
"type": "internal_error"
}
}Responses (ZeroClick)
OpenAI-style Responses inference authenticated by a ZeroClick HMAC signature instead of an API key.
curl --request POST \
--url https://api.zerogpu.ai/zeroclick/v1/responses \
--header 'Content-Type: application/json' \
--header 'zc-signature: <api-key>' \
--data '
{
"model": "LFM2.5-1.2B-Instruct",
"input": "Summarize the following article: ..."
}
'import requests
url = "https://api.zerogpu.ai/zeroclick/v1/responses"
payload = {
"model": "LFM2.5-1.2B-Instruct",
"input": "Summarize the following article: ..."
}
headers = {
"zc-signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'zc-signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'LFM2.5-1.2B-Instruct', input: 'Summarize the following article: ...'})
};
fetch('https://api.zerogpu.ai/zeroclick/v1/responses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));falsepackage main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerogpu.ai/zeroclick/v1/responses"
payload := strings.NewReader("{\n \"model\": \"LFM2.5-1.2B-Instruct\",\n \"input\": \"Summarize the following article: ...\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("zc-signature", "<api-key>")
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))
}require 'uri'
require 'net/http'
url = URI("https://api.zerogpu.ai/zeroclick/v1/responses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["zc-signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"LFM2.5-1.2B-Instruct\",\n \"input\": \"Summarize the following article: ...\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"object": "response",
"created_at": 123,
"status": "completed",
"completed_at": 123,
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
},
"incomplete_details": null,
"instructions": "<string>",
"max_output_tokens": 123,
"model": "<string>",
"output": [
{
"type": "message",
"id": "<string>",
"status": "<string>",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "<string>",
"annotations": [
"<unknown>"
]
}
]
}
],
"parallel_tool_calls": true,
"previous_response_id": "<string>",
"reasoning": {
"effort": null,
"summary": null
},
"store": true,
"temperature": 123,
"text": {
"format": {
"type": "<string>"
}
},
"tool_choice": "<string>",
"tools": [
"<unknown>"
],
"top_p": 123,
"truncation": "auto",
"usage": {
"input_tokens": 123,
"input_tokens_details": {
"cached_tokens": 123
},
"output_tokens": 123,
"output_tokens_details": {
"reasoning_tokens": 123
},
"total_tokens": 123
},
"user": "<string>",
"metadata": {}
}{
"id": "<string>",
"object": "response",
"created_at": 123,
"status": "completed",
"completed_at": 123,
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
},
"incomplete_details": null,
"instructions": "<string>",
"max_output_tokens": 123,
"model": "<string>",
"output": [
{
"type": "message",
"id": "<string>",
"status": "<string>",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "<string>",
"annotations": [
"<unknown>"
]
}
]
}
],
"parallel_tool_calls": true,
"previous_response_id": "<string>",
"reasoning": {
"effort": null,
"summary": null
},
"store": true,
"temperature": 123,
"text": {
"format": {
"type": "<string>"
}
},
"tool_choice": "<string>",
"tools": [
"<unknown>"
],
"top_p": 123,
"truncation": "auto",
"usage": {
"input_tokens": 123,
"input_tokens_details": {
"cached_tokens": 123
},
"output_tokens": 123,
"output_tokens_details": {
"reasoning_tokens": 123
},
"total_tokens": 123
},
"user": "<string>",
"metadata": {}
}{
"error": "invalid_zeroclick_signature"
}{}{
"id": "<string>",
"object": "response",
"created_at": 123,
"status": "completed",
"completed_at": 123,
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
},
"incomplete_details": null,
"instructions": "<string>",
"max_output_tokens": 123,
"model": "<string>",
"output": [
{
"type": "message",
"id": "<string>",
"status": "<string>",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "<string>",
"annotations": [
"<unknown>"
]
}
]
}
],
"parallel_tool_calls": true,
"previous_response_id": "<string>",
"reasoning": {
"effort": null,
"summary": null
},
"store": true,
"temperature": 123,
"text": {
"format": {
"type": "<string>"
}
},
"tool_choice": "<string>",
"tools": [
"<unknown>"
],
"top_p": 123,
"truncation": "auto",
"usage": {
"input_tokens": 123,
"input_tokens_details": {
"cached_tokens": 123
},
"output_tokens": 123,
"output_tokens_details": {
"reasoning_tokens": 123
},
"total_tokens": 123
},
"user": "<string>",
"metadata": {}
}{
"error": {
"message": "Internal error",
"type": "internal_error"
}
}/v1/responses — only authentication, authorization, and metering differ.
- Authentication — no
x-api-key. A buying agent calls ZeroClick’s hosted pay URL; ZeroClick proxies the request and signs the raw request bytes with an HMAC in thezc-signatureheader. A request is authenticated only by a valid signature. - Authorization — a ZeroClick allowance check runs before any billable work. It fails open on a transient ZeroClick outage (the signature has already verified), but never for a missing or invalid signature.
- Metering — actual token usage is settled with ZeroClick and reported via the
zc-usageresponse header. Stripe metering is bypassed; ZeroClick is the sole biller.
input and output shapes vary by model; open a model page for a prefilled playground. Handle errors the same way as API error codes.Authorizations
HMAC signature minted by ZeroClick over the raw request bytes, of the
form t=<unix-seconds>,kid=<key-id>,v1=<hex-hmac>. Verified by the
@zeroclickai/sellers SDK against the seller's signing secret keyed by
kid. A missing or invalid signature is rejected with 401
invalid_zeroclick_signature; this is never failed open.
Headers
ZeroClick request id, echoed in logs for correlation. Set by ZeroClick when it proxies the request.
"zcreq_1"
Identifier of the buying agent. Used to partition logs/analytics by agent; becomes the synthesized caller identity.
"agt_1"
Body
"LFM2.5-1.2B-Instruct"
Prompt text. Combined with instructions (as a system message) to form the model input.
System-style instructions prepended to the input. Classification models may pass comma-separated or bracketed candidate labels here.
auto, disabled Candidate labels for text-classification models.
Response
OpenAI Responses response object. Includes the zc-usage header settling actual usage with ZeroClick.
OpenAI Responses response object. On error, status is failed and error is populated.
"response"completed, failed auto, disabled Hide child attributes
Hide child attributes

