SDK reference / Models

Models.Ai namespace

Types

TypeKindDescription
AiBatchItemclassOne object of a batch job.
AiBatchJobclassA batch job: one AI service operation run over every object under a bucket prefix, one result object per input written under theoutput prefix as `{input key}.json` (plus `{input key}.redacted` or an image where the operation makes one). The job runsin the cell; the operation of `create` ends when the job does. Billed per page, per 1,000 characters or per image, as the same call is.
AiBatchJob_annotationsclassAt most 256 KiB in all; never policy input.
AiBatchJob_labelsclassAt most 64.
AiBatchJob_optionsclassOptions of the operation (for example `targetLanguage` of a translation).
AiBatchLocationclassWhere a batch job reads or writes: a bucket of the project and a key prefix.
AiModelclassImmutable model or LoRA adapter artefact registered by `@sha256:` digest (ADR-1005, ADR-1007).Unsigned, mutable-tag, or pickle-serialised (`.pkl`, `.pt`, `.bin`) artefacts are refused at admission.
AiModelMergePatchUpdateclassImmutable model or LoRA adapter artefact registered by `@sha256:` digest (ADR-1005, ADR-1007).Unsigned, mutable-tag, or pickle-serialised (`.pkl`, `.pt`, `.bin`) artefacts are refused at admission.
AiModelMergePatchUpdate_baseModelDigestMember1class
AiModelMergePatchUpdate_displayNameMember1class
AiModelMergePatchUpdate_filePathsMember1class
AiModelMergePatchUpdate_hasVerifiedSignatureMember1class
AiModelMergePatchUpdate_kindMember1class
AiModelMergePatchUpdate_modalityMember1class
AiModelMergePatchUpdate_parameterCountBillionsMember1class
AiModelMergePatchUpdate_sourceTrainingJobMember1class
AiModelStateenumModel registry artefact lifecycle states (ADR-1005).
AiModel_annotationsclassAt most 256 KiB in all; never policy input.
AiModel_labelsclassAt most 64.
AiPlacementRecordclassMerkle-batched C1 confidential AI placement record (W50; verifiable offline via `egulu ai placement verify`).
AiTaskclassOne AI service task route (W132): its meter and its models.
AiTaskListclassThe AI service tasks of a location.
AiTaskModelclassOne model of an AI service task, with its licence as read (ADR-1011 item 3).
AiTaskUsageclassWhat a meter recorded for the call.
AnalyzeDocumentRequestclassAnalyses one page synchronously (Document Intelligence); the model is in the path.
AnalyzeDocumentResponseclassThe answer of a document analysis.
AnalyzedDocumentclassA document of a prebuilt type found in the input.
AnalyzedDocument_fieldsclass
AnalyzedDocument_itemsclass
CommitCheckpointRequestclassRequest body for committing or triggering a cooperative checkpoint on a `TrainingJob` (ADR-1001).
ConnectNotebookSessionRequestclassThe console gateway's redemption of a ticket.
ConnectNotebookSessionResponseclassWhere the gateway brokers the connection to.
DocumentAnalysisModelclassOne analysis model of Document Intelligence.
DocumentAnalysisModelListclassThe analysis models of a location.
DocumentKeyValuePairclassA label and its value as the page sets them (`Invoice No: INV-1`).
DocumentLineclassA line of text. A format with no geometry (HTML, Markdown, DOCX) has no `box`.
DocumentPageclassA page: its size in `unit` (`point`; empty for a format with no pages) and its lines top to bottom.
DocumentParagraphclassA block of text with its role, in reading order.
DocumentSegmentclassA run of words the page sets apart from its neighbours (a cell, a label, a value). `box` is `[x0, y0, x1, y1]` in the page's units, origin top left.
DocumentTableclassA table: rows of aligned segments, or a table of a structured format.
DocumentTableCellclassOne cell of a table.
InferenceEndpointclassManaged online or batch AI inference endpoint backed by `llama.cpp` or `vLLM` (ADR-1004, ADR-1007, ADR-1008, ADR-1010).Enforces per-project KV-cache salt (`cache_salt`), pre-billing safety hooks, and integer micro-euro burst spend caps.
InferenceEndpointMergePatchUpdateclassManaged online or batch AI inference endpoint backed by `llama.cpp` or `vLLM` (ADR-1004, ADR-1007, ADR-1008, ADR-1010).Enforces per-project KV-cache salt (`cache_salt`), pre-billing safety hooks, and integer micro-euro burst spend caps.
InferenceEndpointMergePatchUpdate_acceleratorClassMember1class
InferenceEndpointMergePatchUpdate_acceleratorCountMember1class
InferenceEndpointMergePatchUpdate_blockCredentialsMember1class
InferenceEndpointMergePatchUpdate_blockPersonalDataMember1class
InferenceEndpointMergePatchUpdate_blockedTermsMember1class
InferenceEndpointMergePatchUpdate_burstCapMicrosMember1class
InferenceEndpointMergePatchUpdate_cacheScopeMember1class
InferenceEndpointMergePatchUpdate_deploymentTypeMember1class
InferenceEndpointMergePatchUpdate_displayNameMember1class
InferenceEndpointMergePatchUpdate_engineMember1class
InferenceEndpointMergePatchUpdate_filterOutputMember1class
InferenceEndpointMergePatchUpdate_idleToZeroSecondsMember1class
InferenceEndpointMergePatchUpdate_inputPricePer1kMicrosMember1class
InferenceEndpointMergePatchUpdate_maxReplicasMember1class
InferenceEndpointMergePatchUpdate_minReplicasMember1class
InferenceEndpointMergePatchUpdate_modalityMember1class
InferenceEndpointMergePatchUpdate_modelMaxTokensMember1class
InferenceEndpointMergePatchUpdate_outputPricePer1kMicrosMember1class
InferenceEndpointMergePatchUpdate_requestsPerMinuteLimitMember1class
InferenceEndpointMergePatchUpdate_safetyModeMember1class
InferenceEndpointStateenumManaged inference endpoint lifecycle states (ADR-1004, ADR-1010).
InferenceEndpoint_annotationsclassAt most 256 KiB in all; never policy input.
InferenceEndpoint_labelsclassAt most 64.
InferenceRouterclassRule-based inference model router riding platform rollout rings (W49b).
InferenceRouterMergePatchUpdateclassRule-based inference model router riding platform rollout rings (W49b).
InferenceRouterMergePatchUpdate_displayNameMember1class
InferenceRouterStateenumRule-based inference router lifecycle state (W49b).
InferenceRouter_annotationsclassAt most 256 KiB in all; never policy input.
InferenceRouter_labelsclassAt most 64.
InferenceRoutingRuleclassOne rule entry in a deterministic InferenceRouter policy (W49b).
InferenceRoutingRuleMergePatchUpdateReplaceOnlyclassOne rule entry in a deterministic InferenceRouter policy (W49b).
InferenceUsageDayclassOne UTC day of an endpoint's `:invoke` traffic, from the endpoint's request ledger (kept 7 days).
InferenceUsageResponseclassResponse for `:usage` on an inference endpoint.
InvokeEndpointRequestclassSynchronous inference `:invoke` request (OpenAI-compatible parameters + deterministic token controls; ADR-1004).
InvokeEndpointResponseclassSynchronous `:invoke` completion response with integer micro-euro settlement receipt and ADR-1004 provenance.
InvokeRerankResultclassOne document of a rerank answer.
LanguageOperationInfoclassOne operation of Language.
LanguageOperationListclassThe operations of Language in a location.
MlCompareRequestclassCompares up to 10 runs of the project side by side.
MlComparedRunclassOne column of a comparison.
MlComparedRun_metricsclass
MlComparedRun_paramsclass
MlComparisonclassThe runs, the keys they share and the parameters in which they differ.
MlExperimentclassAn experiment: a named group of runs. Run parameters, metrics, tags and artefacts live under it.
MlExperiment_annotationsclassAt most 256 KiB in all; never policy input.
MlExperiment_labelsclassAt most 64.
MlLinkRequestclassTies a version to the model of the catalogue with the same digest.
MlLogBatchRequestclassLogs parameters, metrics and tags of one run together (MLflow's log-batch). At most 1,000 metrics, 100 parameters and 100 tags a call.
MlLogBatchResponseclassWhat a log-batch stored. A parameter logged again with the same value, and a metric logged again at the same step with the same value, count as stored once.
MlLogEntryclassA parameter, a tag or a metric to log.
MlMetricHistoryclassThe history of one metric of a run, in step order.
MlMetricPointclassOne point of a metric's history.
MlModelVersionclassOne version of a registered model. Its artefact never changes; its stage and notes do.
MlModelVersionCreateclassMakes a version from an artefact of a run.
MlModelVersionUpdateclassChanges a version's notes.
MlRegisteredModelclassA registered model: a name under which versions of a model are kept, each with its stage, its run and its artefact digest.
MlRegisteredModel_annotationsclassAt most 256 KiB in all; never policy input.
MlRegisteredModel_labelsclassAt most 64.
MlRunclassOne run of an experiment: the parameters it was given, the metrics it logged, its tags and the artefacts it produced.
MlRunArtefactclassAn object of the project's bucket that belongs to a run. The platform keeps the reference and the digest; the bytes stay in the bucket.
MlRunArtefactCreateclassRegisters one bucket object as an artefact of the run.
MlRunArtefactListclassThe artefacts of a run.
MlRunCreateclassThe body of a run create.
MlRunCreate_paramsclass
MlRunCreate_tagsclass
MlRunUpdateclassThe fields of a run a caller may change.
MlRun_metricsclassThe latest value of every metric, by key. At most 200 keys.
MlRun_paramsclassParameters are written once: a key that was logged keeps its value. At most 100.
MlRun_tagsclassAt most 50 tags of 5,000 characters each; a tag may be changed.
MlTransitionRequestclassMoves a version to a stage.
MlVersionArtefactclassThe artefact a version holds: a bucket object and its digest, copied from the run when the version was made.
NotebookMountclassA bucket of the project mounted into the notebook server.
NotebookServerclassA notebook server: JupyterLab in a container of the project with a size you choose, a home volume that survives stops, the buckets you mount (by agrant that lasts a few minutes and is renewed while the server runs, never a long-lived key) and an idle timeout that stops it. You reach it through theconsole's gateway with a single-use ticket; the server has no public address and its own token never leaves the platform.
NotebookServer_annotationsclassAt most 256 KiB in all; never policy input.
NotebookServer_labelsclassAt most 64.
NotebookSizeclassOne size a notebook server can have.
NotebookSizeListclassThe sizes of a location and the limits.
OpenNotebookSessionRequestclassOpens a session on a running server.
OpenNotebookSessionResponseclassA session of the console gateway: a ticket worth one redemption and 60 seconds.
RouteInferenceRequestclassRoute evaluation request on an InferenceRouter (W49b).
RouteInferenceResponseclassDeterministic route decision recording matched rule and active rollout ring (W49b).
RunAiTaskRequestclassRuns one AI service task (W132; ADR-1011).
RunAiTaskResponseclassThe answer of an AI service task.
RunAiTaskResponse_resultclassThe task's result: `{text, durationSeconds}` for speech; `{markdown, pages, sections, format}` for documents; `{description, labels}` for vision; `{translatedText, sourceLanguage, targetLanguage}` for translation; `{language, sentiment, entities, keyPhrases}` for language; `{items: [{index, score}]}` for personalisation (untrusted output).
RunLanguageRequestclassRuns one language operation on a text.
RunLanguageRequest_optionsclassThe operation's options: `categories` (comma separated), `minConfidence`, `includeNames`, `redactionStyle` (tag | mask | remove) for PII; `maxSentences` for summarize; `targetLanguage` and `sourceLanguage` for translate.
RunLanguageResponseclassThe answer of a language operation; the fields of the operation asked are present, the others absent.
RunLanguageResponse_resultclassThe operation's result: `{language, languageConfidence, languageSource, sentiment, entities, keyPhrases}` for analyze; `{language, confidence, scores}` for detectLanguage; `{entities, counts}` for detectPii and redactPii (with `redactedText`); `{summary}`; `{translatedText, sourceLanguage, targetLanguage}` (untrusted output).
RunSpeechRequestclassRuns one speech operation.
RunSpeechRequest_optionsclassFor `transcribe`: `language` (`auto` or a code, default auto) and `timestamps` (`word`, `segment` or `none`, default `word`). For `synthesize`: `voice` (an ID of `voices`) and `speed` (0.5 to 2.0, default 1.0).
RunSpeechResponseclassThe answer of a speech operation; the fields of the operation are present.
RunVisionRequestclassRuns one vision operation on an image.
RunVisionRequest_optionsclass`features` (comma separated, for analyze: caption, tags, objects, faces, text; default caption,tags,objects,faces), `minConfidence` (0 to 1), `redactionStyle` (blur | pixelate | fill, for redactFaces), `padding` (percent of a face's box to cover beyond it, 0 to 50, for redactFaces).
RunVisionResponseclassThe answer of a vision operation; the fields of the operation and features asked are present.
RunVisionResponse_textclass
SpeechOperationInfoclassOne operation of the speech family.
SpeechOperationListclassThe speech operations of a location.
SpeechSegmentclassA segment of a transcript.
SpeechVoiceclassA voice the platform lists: only voices whose own licence allows a hosted commercial service (ADR-1099).
SpeechWordclassA word of a transcript, with the model's own score. Seconds from the start of the audio.
TrainingCheckpointclassImmutable verified training checkpoint manifest (ADR-1001, ADR-1005).
TrainingJobclassBatch fine-tuning or AI training job with cooperative `SIGUSR1` checkpointing, SHA-256 manifest verification,corrupt-checkpoint fallback, and active-interval `gpu-seconds` metering (ADR-1001, ADR-1002, ADR-1008).
TrainingJobMergePatchUpdateclassBatch fine-tuning or AI training job with cooperative `SIGUSR1` checkpointing, SHA-256 manifest verification,corrupt-checkpoint fallback, and active-interval `gpu-seconds` metering (ADR-1001, ADR-1002, ADR-1008).
TrainingJobMergePatchUpdate_acceleratorClassMember1class
TrainingJobMergePatchUpdate_acceleratorCountMember1class
TrainingJobMergePatchUpdate_argsMember1class
TrainingJobMergePatchUpdate_budgetLimitMicrosMember1class
TrainingJobMergePatchUpdate_checkpointKeepMember1class
TrainingJobMergePatchUpdate_checkpointModeMember1class
TrainingJobMergePatchUpdate_commandMember1class
TrainingJobMergePatchUpdate_datasetUriMember1class
TrainingJobMergePatchUpdate_displayNameMember1class
TrainingJobMergePatchUpdate_experimentMember1class
TrainingJobMergePatchUpdate_graceSecondsMember1class
TrainingJobMergePatchUpdate_maxStepsMember1class
TrainingJobMergePatchUpdate_memoryMibMember1class
TrainingJobMergePatchUpdate_modalityMember1class
TrainingJobMergePatchUpdate_modelMember1class
TrainingJobMergePatchUpdate_preemptibleMember1class
TrainingJobMergePatchUpdate_priorityMember1class
TrainingJobMergePatchUpdate_vcpusMember1class
TrainingJobStateenumBatch fine-tuning and AI training job lifecycle states (ADR-1001, ADR-1002).
TrainingJob_annotationsclassAt most 256 KiB in all; never policy input.
TrainingJob_envclassNon-secret environment variables (`<= 64`).
TrainingJob_labelsclassAt most 64.
VerifyAiPlacementRequestclassRequest payload for offline-verifiable Merkle AI placement verification (W50).
VerifyAiPlacementResponseclassResponse from `:verify` on C1 AI placements (W50).
VisionFaceclassA detected face: its box, five landmarks and the detector's score. Nothing identifies the person.
VisionObjectclassA detected object. `box` is `[x0, y0, x1, y1]` in pixels, origin top left.
VisionOperationInfoclassOne operation of Vision.
VisionOperationListclassThe operations of Vision in a location.