GenerativeScoringRequest
Request for computing generative scoring. Attributes: model: The model to use for scoring. Optional, follows existing patterns. query: The query text or pre-tokenized query token IDs. items: The item text(s) or pre-tokenized item token IDs. label_token_ids: List of token IDs to compute probabilities for. apply_softmax: Whether to normalize probabilities using softmax over only the label_token_ids (True) or return true model probabilities over the full vocab for those ids (False). item_first: If True, prepend items to query. Otherwise append items to query. add_special_tokens: Whether to add special tokens when tokenizing. cache_salt: Optional salt for prefix caching.
Properties
| Name | Type | Description |
|---|---|---|
| model | object | |
| query | object | The query text or pre-tokenized query token IDs. |
| items | object | List of item texts or pre-tokenized item token IDs. |
| label_token_ids | array | List of token IDs to compute probabilities for. |
| apply_softmax | boolean | If True, normalize probabilities using softmax over only the label_token_ids. If False, return the true model probabilities over the full vocab for those ids. |
| item_first | boolean | If True, prepend items to query. Otherwise append items to query. |
| add_special_tokens | boolean | Whether to add special tokens when tokenizing. |
| cache_salt | object | If specified, the prefix cache will be salted with the provided string to prevent an attacker to guess prompts in multi-user environments. The salt should be random, protected from access by 3rd parti |
| priority | integer | The priority of the request (lower means earlier handling; default: 0). |
| request_id | string | The request_id related to this request. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/compoid-com/json-schema/compoid-com-generative-scoring-request-schema.json",
"title": "GenerativeScoringRequest",
"description": "Request for computing generative scoring.\n\nAttributes:\n model: The model to use for scoring. Optional, follows existing patterns.\n query: The query text or pre-tokenized query token IDs.\n items: The item text(s) or pre-tokenized item token IDs.\n label_token_ids: List of token IDs to compute probabilities for.\n apply_softmax: Whether to normalize probabilities using softmax over only\n the label_token_ids (True) or return true model probabilities over\n the full vocab for those ids (False).\n item_first: If True, prepend items to query. Otherwise append items to query.\n add_special_tokens: Whether to add special tokens when tokenizing.\n cache_salt: Optional salt for prefix caching.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/compoid-com-generative-scoring-api-openapi.yml#/components/schemas/GenerativeScoringRequest",
"properties": {
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Model"
},
"query": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "integer"
},
"type": "array"
}
],
"title": "Query",
"description": "The query text or pre-tokenized query token IDs."
},
"items": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"items": {
"items": {
"type": "integer"
},
"type": "array"
},
"type": "array"
}
],
"title": "Items",
"description": "List of item texts or pre-tokenized item token IDs."
},
"label_token_ids": {
"items": {
"type": "integer"
},
"type": "array",
"title": "Label Token Ids",
"description": "List of token IDs to compute probabilities for."
},
"apply_softmax": {
"type": "boolean",
"title": "Apply Softmax",
"description": "If True, normalize probabilities using softmax over only the label_token_ids. If False, return the true model probabilities over the full vocab for those ids.",
"default": true
},
"item_first": {
"type": "boolean",
"title": "Item First",
"description": "If True, prepend items to query. Otherwise append items to query.",
"default": false
},
"add_special_tokens": {
"type": "boolean",
"title": "Add Special Tokens",
"description": "Whether to add special tokens when tokenizing.",
"default": true
},
"cache_salt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Cache Salt",
"description": "If specified, the prefix cache will be salted with the provided string to prevent an attacker to guess prompts in multi-user environments. The salt should be random, protected from access by 3rd parties, and long enough to be unpredictable (e.g., 43 characters base64-encoded, corresponding to 256 bit)."
},
"priority": {
"type": "integer",
"maximum": 9.223372036854776e+18,
"minimum": -9.223372036854776e+18,
"title": "Priority",
"description": "The priority of the request (lower means earlier handling; default: 0).",
"default": 0
},
"request_id": {
"type": "string",
"title": "Request Id",
"description": "The request_id related to this request."
}
},
"additionalProperties": true,
"type": "object",
"required": [
"query",
"items",
"label_token_ids"
]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/compoid-com-generative-scoring-request"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.