Read an inference option
const url = 'https://api.canopyhq.dev/inferences/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.canopyhq.dev/inferences/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The option, by the name the tenant gave it.
Responses
Section titled “Responses”The option.
A preset on a provider: the model, the generation defaults a session’s dial overrides, when to compact, and how often to retry. Several presets may run on one provider; consent selects a set of them.
object
Compact before the next request after a completion reaches this prompt-token count.
The provider’s model slug, such as anthropic/claude-opus-5.
A readable name, such as fast or smart.
Defaults the dial’s own parameters override field by field.
A provider’s name within its tenant.
The scripted model, with no secret and nowhere to dial.
object
OpenRouter’s chat completions. An absent base URL is the deployment’s configured OpenRouter URL.
object
A secret’s identifier within its owning tenant, never its value.
How often a transient provider failure is attempted, with doubling waits.
object
Example
{ "params": { "effort": "low" }, "provider": { "kind": "simulated" }}No console token, or one that did not verify.
The tenant owns no option by that name.