Detokenize
vLLM: turn the model's token ids back into text. The API asks no Inference, so the route costs no tokens and never starts a GPU.
bearerAuthorizationBearer <token>An API key: Authorization: Bearer sk-acs-..., or a key of the old platform, acs-bm-.... A User makes and revokes keys in the App.
application/json- body
model?stringThe Base model whose tokenizer to use: an id from GET /v1/models, such as llama-8b. Left out, the model that GET /v1/models marks default.
^[^\u0000]*$tokens*array<>vLLM: the token ids to turn into text, at most 65536, each in the model's vocabulary.
DetokenizeResponse
application/json- response
prompt*stringThe text of the ids, special tokens included, with no space taken out.
curl -X POST 'https://api.staging.infra.acsresearch.org/v1/detokenize' \ -H 'Authorization: Bearer <API_KEY>' \ -H 'Content-Type: application/json' \ -d '{ "tokens": [ 0 ]}'{ "prompt": "string"}Tokenize POST
vLLM: turn a text into the model's token ids with the tokenizer that POST /v1/completions counts with, and count them. With `return_token_strs`, also each token's text. The API asks no Inference, so the route costs no tokens and never starts a GPU.
Create Completion POST
Continue a prompt on a Base model. With `stream: true`, Server-Sent Events: one CompletionChunk per event, then `[DONE]`; with `output_residual_stream`, the last chunk has no choices and has the activations. If Inference fails, the error object with `type` `upstream_error`, the `code` that names the failure, and `retryable`; during a stream, that error is the last event before `[DONE]`.