DeliTools API reference
This page describes the two DeliTools methods. Both are Connect procedures on delitools.v1.DelitoolsService and accept JSON over HTTP POST. Field names are lowerCamelCase in JSON. Send Content-Type: application/json and Authorization: Bearer <credential>. See DeliTools for credentials and tenants.
Every response that a method handler produces includes a request ID, in the body and in the X-Delitools-Request-Id header. A request rejected by the transport size limit (see the error table) has no request ID. Responses do not include token usage or charges. Read those from Delcore; see Billing.
Each call is a new execution. DeliTools has no idempotency key and no stored results. If you repeat a request, it runs again and can be charged again.
Translate
POST /delitools.v1.DelitoolsService/Translate
The response contains requestId and translations. translations has the same number of items in the same order as texts.
- Language tags. DeliTools checks that a tag is well formed under BCP 47, ignoring case, with at most 64 characters and a two- or three-letter primary language. Tags made only of private-use subtags and grandfathered tags are rejected. DeliTools does not check that the model supports the language.
- All or nothing. The result is atomic. If any item fails, the whole request fails and you receive no partial translations.
- No special cases. An omitted source language, mixed-language input and text that is already in the target language all go to the model. DeliTools does not reject them and does not copy the source text for you.
- Model. Only models that the operator allows, and that have prices registered in Delcore, work. Another model is never substituted. Ask the service operator which model identifiers are available.
Extract
POST /delitools.v1.DelitoolsService/Extract
The model is fixed to openai/gpt-6-luna. You cannot choose it. The response contains requestId and json, a JSON string that conforms to your schema.
- Grounding is an instruction, not a check. DeliTools tells the model to take values only from your text. When the model reports that required information is missing, the request fails with
ERROR_REASON_EXTRACTION_FAILED. DeliTools cannot verify that a returned value came from your text, so a model can still return an invented value that follows your schema. - Checked output. DeliTools validates the result against your schema. Malformed or nonconforming output fails with
ERROR_REASON_INVALID_OUTPUT. DeliTools does not retry to repair invalid output. - Accuracy. A result that follows the schema can still be wrong. Check results that matter.
- Unsupported schemas fail first. DeliTools rejects a schema outside the supported subset before it runs the model, so such a request is not charged.
Supported JSON Schema subset
The schema is read as JSON Schema 2020-12. It must be a JSON object. $schema is optional and allowed only at the root. It must be a string, otherwise the schema is unsupported. DeliTools does not use the string to select a draft. Every schema, including the root, each property schema and the items schema, needs type, enum or const. A schema can be at most 8 levels deep and have 256 schema nodes, and its size is limited by the operator.
These are not supported and return ERROR_REASON_UNSUPPORTED_SCHEMA: $ref, $defs, definitions, $id, $comment, oneOf, anyOf, allOf, not, if/then/else, patternProperties, propertyNames, pattern, format, uniqueItems, multipleOf, exclusiveMinimum, exclusiveMaximum, contains, prefixItems, default, unevaluated keywords, boolean schemas, unknown keywords, and schemas that are too large or too deeply nested. DeliTools never follows references, so a schema cannot make it fetch anything.
Set "additionalProperties": false on objects when you want only the properties you listed.
Errors
Errors use a standard Connect code. The error details include a stable reason and the request ID. Messages are in English and never contain your content.
A request that is larger than the operator's overall request size limit can receive a plain resource_exhausted error without these details. See Troubleshooting for what to do.
A JSON request body that cannot be decoded, for example a value of the wrong type, a truncated body or a syntax error, receives HTTP 400 with the Connect code invalid_argument, the reason ERROR_REASON_INVALID_INPUT, a request ID and exactly the message request body is invalid. DeliTools checks the body before it checks your credential. The message never repeats any part of your content. Correct the JSON encoding or the field types and send the request again.
Limits and retries
The operator configures these limits, and they can change: input size, number of translation items, schema size and depth, execution timeout, request rate and burst per tenant, concurrent executions per tenant, and the maximum number of transient retries. Contact the service operator for the values that apply to you. A limit is a protection, not a throughput guarantee.
- DeliTools retries only transient AI provider failures, such as network errors, server errors and rate-limit responses, up to the configured count. It never retries to repair invalid output.
- Before each retry, DeliTools checks your authorization again. If your key was revoked or expired, you lost permission or billing is blocked, DeliTools stops and returns the matching error. A provider call that is already running can finish.
- If you cancel the request or close the connection, DeliTools cancels the provider call and stops retrying.
- If your client closes the call or its own timeout ends it, DeliTools treats this as a cancellation.
- The operator's execution timeout covers authorization, validation and every attempt. When it elapses, DeliTools aborts the provider call and returns
ERROR_REASON_TIMEOUT.