Skip to content
HIPS
  • Earn with your GPU
  • Pricing
  • Docs
Sign inJoin early access
⌘K

Get started

  1. 01Developer hub
  2. 02Quickstart
  3. 03Security
    1. AChoose a pool for your data
    2. BCoding agents and prompt injection
    3. CWhat a Community pool provider can see
    4. DWhat HIPS stores
    5. EKnowledge and RAG data
  4. 04Migrate to HIPS

Guides

  1. 05HIPS SDK
  2. 06Import and run your model
  3. 07Model and task guides
    1. ATask guides
    2. BLanguage (chat)
    3. CClassification
    4. DImage
    5. EVideo
    6. FAudio
    7. GDocument processing
  4. 08Batch jobs
  5. 09Prompt caching
  6. 10Code with HIPS
  7. 11Coding-tool setup
    1. AHIPS Code
    2. BClaude Code
    3. CCodex
    4. DOpenCode
    5. EKilo
    6. FPi
    7. GQwen Code
    8. HCrush
    9. ICline
    10. JPrime Agent
    11. KAider
    12. LGoose
    13. MHermes Agent
    14. NGrok Build
    15. ODeepSeek Harness
    16. POther coding tools and editor integrations
  8. 12Command line
    1. AInstall and update
    2. BSign in
    3. CStatus and models
    4. DCoding agents
    5. ETeam
    6. FJoin a team
    7. GHow a team works
  9. 13Console
    1. AAccount
    2. BWorkspaces
    3. CAPI keys
    4. DSettings
    5. EUsage
    6. FModels
    7. GPlayground
    8. HDeployments
  10. 14Billing
  11. 15Provider setup
    1. AWhen it works
    2. BCommands
    3. CSettings
    4. DProvider Console
    5. EEarnings
    6. FCrash reports
    7. GData centers
    8. HOpenStack
  12. 16Semantic routing
  13. 17Guardrails
  14. 18Knowledge

Reference

  1. 19API reference
    1. AAuthentication
    2. BChat completions
    3. CResponses
    4. DMessages
    5. ECount tokens
    6. FModels
    7. GPrices API
    8. HTasks
    9. IEmbeddings and rerank
    10. JImages
    11. KJobs
    12. LUploads
    13. MFiles
    14. NBatches
    15. OWebhooks
    16. PVector stores
    17. QDeployments
    18. RRequirements and headers
    19. SErrors
    20. TUsage
    21. UVersioning
  2. 20Operating guidance
    1. ALimits
    2. BErrors
    3. CRetries and billing outcomes
    4. DIdempotency
    5. EStreaming
    6. FThinking levels
    7. GData handling
    8. HCompatibility matrix
  3. 21Changelog
Sheet indexAPI reference

Get started

  1. 01Developer hub
  2. 02Quickstart
  3. 03Security
    1. AChoose a pool for your data
    2. BCoding agents and prompt injection
    3. CWhat a Community pool provider can see
    4. DWhat HIPS stores
    5. EKnowledge and RAG data
  4. 04Migrate to HIPS

Guides

  1. 05HIPS SDK
  2. 06Import and run your model
  3. 07Model and task guides
    1. ATask guides
    2. BLanguage (chat)
    3. CClassification
    4. DImage
    5. EVideo
    6. FAudio
    7. GDocument processing
  4. 08Batch jobs
  5. 09Prompt caching
  6. 10Code with HIPS
  7. 11Coding-tool setup
    1. AHIPS Code
    2. BClaude Code
    3. CCodex
    4. DOpenCode
    5. EKilo
    6. FPi
    7. GQwen Code
    8. HCrush
    9. ICline
    10. JPrime Agent
    11. KAider
    12. LGoose
    13. MHermes Agent
    14. NGrok Build
    15. ODeepSeek Harness
    16. POther coding tools and editor integrations
  8. 12Command line
    1. AInstall and update
    2. BSign in
    3. CStatus and models
    4. DCoding agents
    5. ETeam
    6. FJoin a team
    7. GHow a team works
  9. 13Console
    1. AAccount
    2. BWorkspaces
    3. CAPI keys
    4. DSettings
    5. EUsage
    6. FModels
    7. GPlayground
    8. HDeployments
  10. 14Billing
  11. 15Provider setup
    1. AWhen it works
    2. BCommands
    3. CSettings
    4. DProvider Console
    5. EEarnings
    6. FCrash reports
    7. GData centers
    8. HOpenStack
  12. 16Semantic routing
  13. 17Guardrails
  14. 18Knowledge

Reference

  1. 19API reference
    1. AAuthentication
    2. BChat completions
    3. CResponses
    4. DMessages
    5. ECount tokens
    6. FModels
    7. GPrices API
    8. HTasks
    9. IEmbeddings and rerank
    10. JImages
    11. KJobs
    12. LUploads
    13. MFiles
    14. NBatches
    15. OWebhooks
    16. PVector stores
    17. QDeployments
    18. RRequirements and headers
    19. SErrors
    20. TUsage
    21. UVersioning
  2. 20Operating guidance
    1. ALimits
    2. BErrors
    3. CRetries and billing outcomes
    4. DIdempotency
    5. EStreaming
    6. FThinking levels
    7. GData handling
    8. HCompatibility matrix
  3. 21Changelog
19
  1. Docs/
  2. API reference/
  3. Embeddings and rerank
(Detail I)
llms.txt

Embeddings and rerank

On this sheet2 sections
  1. Billing
  2. Never cut

Two front doors on the task API (decided 2026-11-04): an embedding request in OpenAI's shape and a rerank request in Cohere's, each served as the task it stands for, embedding or rerank, with the task route's key, limits, idempotency-key, requirement headers, quote and placement. Neither body takes a hips object: requirements ride as the x-hips-* headers. A model answers once an embedding model or a reranker is published and priced in the catalog.

POST/v1/embeddingsserved

Embeddings in OpenAI's shape, billed by input tokens. A model answers once an embedding model is published and priced.

F
Fig. 1, sheet 19API reference
00000000000000000000000000000000000000001{"model": "<catalog id>", "input": ["First text.", "Second text."], "encoding_format": "float"}
Language

Parts list: Embeddings fields

  1. 01
    modelRequired

    A non-empty string: a catalog id, alias or pinned id of an embedding model. A model of another task is a 400 task_mismatch; a router is a 400 invalid_value.

  2. 02
    inputRequired

    A string, or an array of 1 to 2,048 strings, none empty; more is a 400 too_many_inputs. Token-id arrays are a 400 unsupported_value: HIPS takes text, tokenized with the model's own tokenizer.

  3. 03
    encoding_formatAccepted

    float (the default) or base64, each vector's little-endian 32-bit floats; anything else is a 400 unsupported_value.

  4. 04
    dimensionsAccepted

    A whole number above 0: the model's own dimension, or fewer on a model whose entry says it may be cut (limits.truncatable); otherwise a 400 unsupported_value naming the model's dimension.

  5. 05
    userAccepted, not used

    A string.

  6. 06
    Any other nameRejected, 400 unknown_parameter

    Never ignored.

The vectors come in input order, each of the model's own dimension, unit length, cut to dimensions and made unit length again when fewer are asked. usage.prompt_tokens is the gateway's own count with the model's tokenizer, and it is the bill.

POST/v1/rerankserved

Rerank in Cohere's shape, billed by input tokens, the query read with each document. A model answers once a reranker is published and priced.

00000000000000000000000000000000000000001{"model": "<catalog id>", "query": "Which document is about GPUs?", "documents": ["a", "b", {"text": "c"}], "top_n": 2, "return_documents": true}
Language

Parts list: Rerank fields

  1. 01
    modelRequired

    A reranker.

  2. 02
    queryRequired

    A non-empty string of at most 32 KiB.

  3. 03
    documentsRequired

    1 to 1,000 strings or {"text"} objects (Cohere's two shapes), each non-empty and at most 32 KiB; more documents is a 400 too_many_inputs, a longer one a 400 input_too_long.

  4. 04
    top_nAccepted

    From 1 to the number of documents; every document when absent. More than the documents sent is a 400 invalid_value.

  5. 05
    return_documentsAccepted

    true puts each document's text in its result; false by default.

  6. 06
    max_tokens_per_docRejected, 400 unsupported_parameter

    HIPS never cuts a document.

  7. 07
    Any other nameRejected, 400 unknown_parameter

    Never ignored.

Scores are the reranker's relevance through the logistic function, from 0 to 1, the most relevant first, equal scores in input order. Every document is scored, whatever top_n returns.

Billing

Both routes bill by input tokens, at the model's rate per million (decided 2026-11-13: embeddings and rerank are billed by tokens). The tokens are the gateway's own count with the model's tokenizer, every token the model reads: an embedding's inputs, and a rerank's documents each read with the query, so the query counts once beside each document. A device's own count is only a cross-check, never the bill, and the time a request takes never changes what it costs. The embeddings answer names the tokens billed in usage.prompt_tokens, the rerank answer in Cohere's meta.billed_units.input_tokens beside meta.tokens.input_tokens, and the cost is in x-hips-cost-micros.

Never cut

An input, a document or a query longer than the model reads at once is refused whole before any work, never cut and never billed: a 400 context_length_exceeded at its field, naming its tokens and the model's bound, counted with the model's own tokenizer. An input too large for one attempt is a 400 input_too_large. A request the measured speed of every GPU serving the model shows cannot finish within its time limit is a 400 exceeds_time_limit.

StatusTypeCodeSituationRetry
400invalid_request_errorinvalid_jsonThe body is not JSON, or not an objectNo
400invalid_request_errormissing_required_parameterA required field or header is absent; param names it. On POST /v1/tasks, a classification model that answers in words and reads a response alone asked without options.prompt, at options.prompt (Safety classifiers)No
400invalid_request_errorinvalid_typeA field has the wrong JSON typeNo
400invalid_request_errorinvalid_valueA value is out of range or malformed: stop with more than 16 entries, a prompt_cache_key over 512 characters, a string holding a lone surrogate escape, a router name with an empty or unknown suffix, both max_tokens names with different values, an x-client-request-id header that is not printable ASCII or is over 512 characters (param x-client-request-id)No
400invalid_request_errorunknown_parameterA field the gateway does not know, at any depth; param names itNo
400invalid_request_errorunsupported_parameterA known field HIPS does not accept, or a feature the named model does not advertise in the pool the request resolves to; param names it, and message names the model and what to send instead (an image to a model that takes no images says so, and that GET /v1/models lists each model's features)No
400invalid_request_errorunsupported_valuen other than 1, stream_options without stream, a message role, part, item or tool type not accepted, a hosted tool type HIPS does not runNo
400invalid_request_errorcontext_length_exceededThe prompt is over the model's context_length, or over the largest window any GPU serves it at now, or held only in a size that the GPUs able to hold it keep failing to read within the time limit; that limit and the prompt's count in the message, the limit the largest size that works now for this request, never more than the pool's context_window on Models; the prompt is never truncated. On embeddings and rerank, an input longer than the model reads at once, never cutNo
400invalid_request_errorrequest_too_large, input_too_large, too_many_inputs, upload_too_largeA limit of the Limits page. The message states the request's size where the client declared it (content-length) and the limit, each in MiB with its exact bytes, each image counted as sent in base64, and what to send instead: fewer or smaller images, a shorter request, or an upload on the task API. A request is never cutNo
400invalid_request_errorinput_too_longOn POST /v1/rerank, a query or a document over 32 KiB of text, refused whole and never cutNo
400invalid_request_errorexceeds_time_limitAn embedding or rerank request that the measured speed of every GPU serving the model shows cannot finish within its time limit; the message says how long it would take. Sent before any work, unchargedNo; send fewer or shorter inputs
400invalid_request_errortask_mismatchtask is not the model's task, or the model is not an embedding model or a reranker on its routeNo
402insufficient_creditinsufficient_creditThe balance does not cover the request's maximum cost at the bound quoteAfter a top-up
404not_found_errormodel_not_foundUnknown catalog id, alias, pinned id or dep_; another workspace's dep_; a name starting with hips-router that is not one of the four routersNo
429rate_limit_errorrate_limit_exceededA rate limit; param is the counter that is full: requests, input_tokens (the prompt does not fit what is left of the input tokens a minute), output_tokens (the output tokens a minute are spent), uploads, batches (batches created per hour) or knowledge_search; Retry-After and retry-after-msYes, after Retry-After
429rate_limit_errorno_capacity, overloaded, pool_unavailable, model_loadingA key HIPS has set to answer at once when busy (HIPS sets it on the key a marketplace partner calls with; no workspace can set it): where no GPU is free for the request, it gets the answer the 503 of the same code gives, with its message and Retry-After, as a 429 at once, and never waits in the queue for a busy GPU; where another key would wait for a GPU that holds the model, it gets overloaded with the expected wait as Retry-After. Every other key gets the 503. A gateway over its own limits, and every other 503, stay 503 on every keyYes, after Retry-After
503overloaded_errorno_capacityNo eligible worker under the request's requirements, in any pool the requirements allow; Retry-After. The message says what those pools can do now: a GPU that fits the model takes it when free or loads it when asked, which can take minutes or longer; or nothing can serve it, and a retry sooner than the given delay gets the same answer; or the GPUs offering it have no speed figures yet for the setting they run it at, which a later retry may find measured. Where no price is in force for the model in any pool the request may use, the message says so, whatever supply there is, and the model's hips.availability reads unpricedYes, after the given delay
503overloaded_erroroverloadedEligible workers exist and every one is saturated, the queue is full, or the model is at its capacity right now. A request whose GPUs are all busy, or unavailable for a moment, waits for one up to 30 seconds first, and nothing is sent to a GPU while it is unavailable; a chat completions, Responses or Messages request whose GPU becomes unavailable before its answer begins waits the same way; Retry-After, from 1 to 30 secondsYes
  • Status
    400
    Type
    invalid_request_error
    Code
    invalid_json
    Situation
    The body is not JSON, or not an object
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    missing_required_parameter
    Situation
    A required field or header is absent; param names it. On POST /v1/tasks, a classification model that answers in words and reads a response alone asked without options.prompt, at options.prompt (Safety classifiers)
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    invalid_type
    Situation
    A field has the wrong JSON type
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    invalid_value
    Situation
    A value is out of range or malformed: stop with more than 16 entries, a prompt_cache_key over 512 characters, a string holding a lone surrogate escape, a router name with an empty or unknown suffix, both max_tokens names with different values, an x-client-request-id header that is not printable ASCII or is over 512 characters (param x-client-request-id)
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    unknown_parameter
    Situation
    A field the gateway does not know, at any depth; param names it
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    unsupported_parameter
    Situation
    A known field HIPS does not accept, or a feature the named model does not advertise in the pool the request resolves to; param names it, and message names the model and what to send instead (an image to a model that takes no images says so, and that GET /v1/models lists each model's features)
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    unsupported_value
    Situation
    n other than 1, stream_options without stream, a message role, part, item or tool type not accepted, a hosted tool type HIPS does not run
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    context_length_exceeded
    Situation
    The prompt is over the model's context_length, or over the largest window any GPU serves it at now, or held only in a size that the GPUs able to hold it keep failing to read within the time limit; that limit and the prompt's count in the message, the limit the largest size that works now for this request, never more than the pool's context_window on Models; the prompt is never truncated. On embeddings and rerank, an input longer than the model reads at once, never cut
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    request_too_large, input_too_large, too_many_inputs, upload_too_large
    Situation
    A limit of the Limits page. The message states the request's size where the client declared it (content-length) and the limit, each in MiB with its exact bytes, each image counted as sent in base64, and what to send instead: fewer or smaller images, a shorter request, or an upload on the task API. A request is never cut
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    input_too_long
    Situation
    On POST /v1/rerank, a query or a document over 32 KiB of text, refused whole and never cut
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    exceeds_time_limit
    Situation
    An embedding or rerank request that the measured speed of every GPU serving the model shows cannot finish within its time limit; the message says how long it would take. Sent before any work, uncharged
    Retry
    No; send fewer or shorter inputs
  • Status
    400
    Type
    invalid_request_error
    Code
    task_mismatch
    Situation
    task is not the model's task, or the model is not an embedding model or a reranker on its route
    Retry
    No
  • Status
    402
    Type
    insufficient_credit
    Code
    insufficient_credit
    Situation
    The balance does not cover the request's maximum cost at the bound quote
    Retry
    After a top-up
  • Status
    404
    Type
    not_found_error
    Code
    model_not_found
    Situation
    Unknown catalog id, alias, pinned id or dep_; another workspace's dep_; a name starting with hips-router that is not one of the four routers
    Retry
    No
  • Status
    429
    Type
    rate_limit_error
    Code
    rate_limit_exceeded
    Situation
    A rate limit; param is the counter that is full: requests, input_tokens (the prompt does not fit what is left of the input tokens a minute), output_tokens (the output tokens a minute are spent), uploads, batches (batches created per hour) or knowledge_search; Retry-After and retry-after-ms
    Retry
    Yes, after Retry-After
  • Status
    429
    Type
    rate_limit_error
    Code
    no_capacity, overloaded, pool_unavailable, model_loading
    Situation
    A key HIPS has set to answer at once when busy (HIPS sets it on the key a marketplace partner calls with; no workspace can set it): where no GPU is free for the request, it gets the answer the 503 of the same code gives, with its message and Retry-After, as a 429 at once, and never waits in the queue for a busy GPU; where another key would wait for a GPU that holds the model, it gets overloaded with the expected wait as Retry-After. Every other key gets the 503. A gateway over its own limits, and every other 503, stay 503 on every key
    Retry
    Yes, after Retry-After
  • Status
    503
    Type
    overloaded_error
    Code
    no_capacity
    Situation
    No eligible worker under the request's requirements, in any pool the requirements allow; Retry-After. The message says what those pools can do now: a GPU that fits the model takes it when free or loads it when asked, which can take minutes or longer; or nothing can serve it, and a retry sooner than the given delay gets the same answer; or the GPUs offering it have no speed figures yet for the setting they run it at, which a later retry may find measured. Where no price is in force for the model in any pool the request may use, the message says so, whatever supply there is, and the model's hips.availability reads unpriced
    Retry
    Yes, after the given delay
  • Status
    503
    Type
    overloaded_error
    Code
    overloaded
    Situation
    Eligible workers exist and every one is saturated, the queue is full, or the model is at its capacity right now. A request whose GPUs are all busy, or unavailable for a moment, waits for one up to 30 seconds first, and nothing is sent to a GPU while it is unavailable; a chat completions, Responses or Messages request whose GPU becomes unavailable before its answer begins waits the same way; Retry-After, from 1 to 30 seconds
    Retry
    Yes

Related sheets

  • Tasks
  • Usage
Previous sheetTasks
Next sheetImages
Sheet
19 of 21
Detail
I
Updated
2026-11-26
Sign in to the Console

On this sheet

  1. Billing
  2. Never cut

Product

  • Inference
  • Models
  • Serverless GPUs
  • GPU rental
  • Deploy your model
  • Coding agents
  • How it works
  • Use cases
  • Pricing

Models

  • DeepSeek API
  • Kimi API
  • Qwen API
  • GLM API
  • Gemma API
  • Mistral API
  • gpt-oss API
  • All models

Developer

  • Docs
  • Quickstart
  • Migrate to HIPS
  • HIPS SDK
  • Batch jobs
  • API reference
  • Claude Code pricing

Provider

  • Earn with your GPU
  • Register GPU interest
  • Download for Mac
  • Download for Windows
  • Download for Linux

Resource

  • Security and Data
  • Resources
  • llms.txt

Compare

  • OpenRouter alternatives
  • Together AI alternatives
  • Groq alternatives
  • Runpod alternatives
  • Claude Code alternatives
  • Cursor alternatives
  • All comparisons

Company

  • About
  • Contact
  • Affiliate program
  • HIPS Payments

Legal

  • Legal
  • Consumer Health Data Privacy Policy
  • Report content
  • Cookie preferences

Support

  • Contact HIPS
  • Looking for payments support?

HIPS. AI inference for builders.

hips.com

Hyperscale Inference Processing Systems OÜ