curl --request POST \
--url https://api.zerogpu.ai/zeroclick/v1/embeddings \
--header 'Content-Type: application/json' \
--header 'zc-signature: <api-key>' \
--data '
{
"model": "all-minilm-l6-v2",
"input": "ZeroGPU runs high-volume inference tasks on small models at the edge."
}
'import requests
url = "https://api.zerogpu.ai/zeroclick/v1/embeddings"
payload = {
"model": "all-minilm-l6-v2",
"input": "ZeroGPU runs high-volume inference tasks on small models at the edge."
}
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: 'all-minilm-l6-v2',
input: 'ZeroGPU runs high-volume inference tasks on small models at the edge.'
})
};
fetch('https://api.zerogpu.ai/zeroclick/v1/embeddings', 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/embeddings"
payload := strings.NewReader("{\n \"model\": \"all-minilm-l6-v2\",\n \"input\": \"ZeroGPU runs high-volume inference tasks on small models at the edge.\"\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/embeddings")
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\": \"all-minilm-l6-v2\",\n \"input\": \"ZeroGPU runs high-volume inference tasks on small models at the edge.\"\n}"
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012601,
-0.072932,
0.043332,
0.028129,
0.033064,
-0.078302,
-0.153619,
-0.011621
]
}
],
"model": "all-MiniLM-L6-v2",
"usage": {
"prompt_tokens": 18,
"total_tokens": 18
}
}Embeddings (ZeroClick)
OpenAI-style embeddings authenticated by a ZeroClick HMAC signature instead of an API key.
curl --request POST \
--url https://api.zerogpu.ai/zeroclick/v1/embeddings \
--header 'Content-Type: application/json' \
--header 'zc-signature: <api-key>' \
--data '
{
"model": "all-minilm-l6-v2",
"input": "ZeroGPU runs high-volume inference tasks on small models at the edge."
}
'import requests
url = "https://api.zerogpu.ai/zeroclick/v1/embeddings"
payload = {
"model": "all-minilm-l6-v2",
"input": "ZeroGPU runs high-volume inference tasks on small models at the edge."
}
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: 'all-minilm-l6-v2',
input: 'ZeroGPU runs high-volume inference tasks on small models at the edge.'
})
};
fetch('https://api.zerogpu.ai/zeroclick/v1/embeddings', 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/embeddings"
payload := strings.NewReader("{\n \"model\": \"all-minilm-l6-v2\",\n \"input\": \"ZeroGPU runs high-volume inference tasks on small models at the edge.\"\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/embeddings")
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\": \"all-minilm-l6-v2\",\n \"input\": \"ZeroGPU runs high-volume inference tasks on small models at the edge.\"\n}"
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.012601,
-0.072932,
0.043332,
0.028129,
0.033064,
-0.078302,
-0.153619,
-0.011621
]
}
],
"model": "all-MiniLM-L6-v2",
"usage": {
"prompt_tokens": 18,
"total_tokens": 18
}
}/v1/embeddings — 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 — billed on input tokens only. The
prompt_tokensfrom the response’susageare settled with ZeroClick and reported via thezc-usageresponse header. Stripe metering is bypassed; ZeroClick is the sole biller.
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
Embedding model to use. Embedding models are routable only on this endpoint.
all-minilm-l6-v2, bge-small-en-v1.5 "all-minilm-l6-v2"
Text to embed. A single string, or an array of strings (one vector per element). Inputs are truncated at the model's max token length.
1Response
OpenAI embeddings list. Includes the zc-usage header settling actual usage with ZeroClick.
An OpenAI-compatible embedding list.
"list"
The resolved model id.
"all-MiniLM-L6-v2"

