curl --request POST \
--url https://api.cloud.gomry.com/v1/inference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"capability": "cheap",
"system": "You extract structured data. Answer with one JSON object.",
"user": "Event page text here. Return the name and start date.",
"jsonSchema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"startDate": {
"type": "string"
}
}
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
capability: 'cheap',
system: 'You extract structured data. Answer with one JSON object.',
user: 'Event page text here. Return the name and start date.',
jsonSchema: {
type: 'object',
properties: {name: {type: 'string'}, startDate: {type: 'string'}}
}
})
};
fetch('https://api.cloud.gomry.com/v1/inference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cloud.gomry.com/v1/inference"
payload = {
"capability": "cheap",
"system": "You extract structured data. Answer with one JSON object.",
"user": "Event page text here. Return the name and start date.",
"jsonSchema": {
"type": "object",
"properties": {
"name": { "type": "string" },
"startDate": { "type": "string" }
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}One model call, priced per token, at three grades — with the routing, compression and caching that make the cheap grade cheap
One model call, priced per token, at three grades — with the routing, compression and caching that make the cheap grade cheap.
Requires the inference:run scope, and the project must have Ember enabled.
Billed on success. The response reports usage — the quantity metered for this call. Rates: https://docs.cloud.gomry.com/pricing.
Full reference: https://docs.cloud.gomry.com/services/inference
curl --request POST \
--url https://api.cloud.gomry.com/v1/inference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"capability": "cheap",
"system": "You extract structured data. Answer with one JSON object.",
"user": "Event page text here. Return the name and start date.",
"jsonSchema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"startDate": {
"type": "string"
}
}
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
capability: 'cheap',
system: 'You extract structured data. Answer with one JSON object.',
user: 'Event page text here. Return the name and start date.',
jsonSchema: {
type: 'object',
properties: {name: {type: 'string'}, startDate: {type: 'string'}}
}
})
};
fetch('https://api.cloud.gomry.com/v1/inference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.cloud.gomry.com/v1/inference"
payload = {
"capability": "cheap",
"system": "You extract structured data. Answer with one JSON object.",
"user": "Event page text here. Return the name and start date.",
"jsonSchema": {
"type": "object",
"properties": {
"name": { "type": "string" },
"startDate": { "type": "string" }
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
An API key minted in the console, sent as Authorization: Bearer <key>. Keys are project-scoped and carry per-operation scopes. A gck_test_… key runs the full request path — including the real upstream call — and bills nothing.
Every scope is enumerated in x-scopes below and in the RFC 9728 protected-resource metadata at https://cloud.gomry.com/.well-known/oauth-protected-resource, which is also what a 401 points at through its WWW-Authenticate: Bearer resource_metadata="…" header.
Body
Required. cheap | balanced | strong. Chooses the price/quality grade, never a specific model.
Required. 1–20000 characters of instruction. Treat it as yours: nothing is prepended.
Required. 1–400000 characters. The content to work on. Long inputs are trimmed to the model's window, head first.
A JSON Schema object. Sent as a constrained-decoding hint where the vendor supports it; always parse defensively, because some ignore it.
Caps the answer. 1–16384, and never raised above the capability's own ceiling. Remember that thinking tokens count against it, and check usage.truncated — a call that hits the ceiling still returns 200.
minimal | low | default. Lowers the thinking budget on a call that does not need to reason. Ignored by vendors that do not support it.
Milliseconds before the vendor call is abandoned. Can only tighten the capability's own timeout, never extend it.
Skip the result cache for this call. Default false. A cache hit bills the same as a live call — it is our cost that changed, not your result.
Response
Success. usage reports what was metered.
The response is of type object.

