Compoid Generative Scoring API
The Generative Scoring API from Compoid — 1 operation(s) for generative scoring.
The Generative Scoring API from Compoid — 1 operation(s) for generative scoring.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.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.curl "https://apis.io/api/v1/apis/compoid-com:compoid-com-generative-scoring-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
openapi: 3.2.0
info:
title: Compoid Com Generative Scoring API
version: 0.1.0
x-refined-note:
- x-original-title differs across the merged source definitions and was not carried
description: 'Operations tagged Generative Scoring across 2 of this provider''s published API definitions: compoid-com-openapi.json, compoid-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.compoid.com
description: Compoid AI inference host (paths carry the /v1 prefix)
tags:
- name: Generative Scoring
paths:
/generative_scoring:
post:
summary: Create Generative Scoring
operationId: create_generative_scoring_generative_scoring_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GenerativeScoringRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Generative Scoring
components:
schemas:
ErrorInfo:
properties:
message:
type: string
title: Message
type:
type: string
title: Type
param:
anyOf:
- type: string
- type: 'null'
title: Param
code:
type: integer
title: Code
additionalProperties: true
type: object
required:
- message
- type
- code
title: ErrorInfo
ErrorResponse:
properties:
error:
$ref: '#/components/schemas/ErrorInfo'
additionalProperties: true
type: object
required:
- error
title: ErrorResponse
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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
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-refined-from:
- compoid-com-openapi.json
- compoid-com-openapi.yml