dev.cocore.inference.submit
Submit an inference request for the authenticated requester. Builds a (paymentAuthorization, job) pair scoped to the configured exchange, publishes both to the requester's PDS, and returns the job/authorization URIs so the caller can poll for a receipt via `dev.cocore.inference.status`.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | inference.cocore.dev |
| Indexed |
Showing version bafyreictkdh3mbwekigwn3ri4czj6224gtnkkct46ajcka7qi3xumprfzy. Show the latest
Checks
Validunlimited-stringdefs.main.input.schema.properties.modelNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.priceCeiling.properties.currencyNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.promptNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.inputCommitmentNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Submit an inference request for the authenticated requester. Builds a (paymentAuthorization, job) pair scoped to the configured exchange, publishes both to the requester's PDS, and returns the job/authorization URIs so the caller can poll for a receipt via `dev.cocore.inference.status`.",
"errors": [
{
"description": "The caller is not authenticated.",
"name": "AuthRequired"
},
{
"description": "The body failed validation.",
"name": "InvalidRequest"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"maxTokensOut": {
"minimum": 1,
"type": "integer"
},
"model": {
"description": "Opaque model identifier honored by the provider.",
"minLength": 1,
"type": "string"
},
"priceCeiling": {
"description": "Maximum the requester will pay. Integer minor units plus an ISO 4217 / XBT-style currency code.",
"properties": {
"amount": {
"minimum": 0,
"type": "integer"
},
"currency": {
"minLength": 1,
"type": "string"
}
},
"required": [
"amount",
"currency"
],
"type": "object"
},
"prompt": {
"minLength": 1,
"type": "string"
}
},
"required": [
"model",
"prompt",
"maxTokensOut",
"priceCeiling"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"authUri": {
"format": "at-uri",
"type": "string"
},
"inputCommitment": {
"description": "SHA-256 (lowercase hex) over the input bytes.",
"type": "string"
},
"jobUri": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"jobUri",
"authUri",
"inputCommitment"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "dev.cocore.inference.submit",
"lexicon": 1
}