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. Batches
(Detail N)
llms.txt

Batches

OpenAI's Batch API at the API root, with HIPS's additions an OpenAI client ignores: windows longer than 24h, the hips object and signed webhooks. How to use it, the price and the limits are on Batch jobs; times on these routes are Unix seconds.

POST/v1/batchesserved

OpenAI's Batch API.

GET/v1/batches/{batch_id}served

The Batch object.

POST/v1/batches/{batch_id}/cancelserved

Cancels a batch.

GET/v1/batchesserved

The batches the credential reaches, newest first.

F
Fig. 1, sheet 19API reference

Create

00000000000000000000000000000000000000001{"input_file_id": "file_...", "endpoint": "/v1/chat/completions", "completion_window": "72h", "metadata": {"run": "nightly-summaries"}}
Create sample

Parts list: POST /v1/batches

  1. 01
    input_file_idRequired

    A file of the workspace with purpose batch, within the credential's reach; unknown is a 404 file_not_found.

  2. 02
    endpointRequired

    /v1/chat/completions, the one endpoint a batch takes as built, equal to the file's url. Any other is a 400 unsupported_value.

  3. 03
    completion_windowAccepted

    A whole number of hours or days from 24h to 7d (24h, 36h, 3d, 7d), 24h when absent, one price for every window. Anything else is a 400 invalid_value.

  4. 04
    metadataAccepted

    OpenAI's: up to 16 pairs, keys up to 64 characters, values up to 512.

  5. 05
    output_expires_afterAccepted

    {"anchor": "created_at", "seconds"}, for the output and error files. 30 days by default.

  6. 06
    RequirementsHeaders

    x-hips-pool, x-hips-region and x-hips-fallback over the key's defaults set the requirements of every line, frozen on the batch. A batch is priced in market mode: x-hips-pricing-mode: stable is a 400 unsupported_value.

The gateway answers at once with the Batch object in validating, the quote bound; a model sold without batch is a 400 batch_not_offered, and a model the catalog does not know a 404 model_not_found. Takes idempotency-key.

Batch object

00000000000000000000000000000000000000001{2  "id": "batch_...",3  "object": "batch",4  "endpoint": "/v1/chat/completions",5  "model": "<pinned id>",6  "errors": null,7  "input_file_id": "file_...",8  "completion_window": "72h",9  "status": "in_progress",10  "output_file_id": null,11  "error_file_id": null,12  "created_at": 1792576800,13  "in_progress_at": 1792576860,14  "expires_at": 1792836000,15  "finalizing_at": null,16  "completed_at": null,17  "failed_at": null,18  "expired_at": null,19  "cancelling_at": null,20  "cancelled_at": null,21  "request_counts": {"total": 2, "completed": 1, "failed": 0},22  "usage": {"input_tokens": 0, "input_tokens_details": {"cached_tokens": 0}, "output_tokens": 0, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 0},23  "metadata": {"run": "nightly-summaries"},24  "hips": {"quote": "quote_...", "requirements": {"pool": "certified", "pricing_mode": "market", "region": null, "fallback": false}, "batch_discount_percent": 50, "max_charge_micros": 0, "held_micros": 0, "cost_micros": 0, "task_units": null, "request_counts": {"expired": 0, "cancelled": 0}}25}
Batch object sample

Parts list: The Batch object

  1. 01
    model

    The pinned id every line runs on: an id or alias in the lines resolves at creation and does not move during the window.

  2. 02
    status

    validating, failed, in_progress, finalizing, completed, expired, cancelling, cancelled, each with its time (Batch jobs says what each means).

  3. 03
    request_counts

    total, completed (lines answered 2xx) and failed (every line in the error file, expired and cancelled ones included).

  4. 04
    usage

    OpenAI's, summed over the finished lines.

  5. 05
    errors

    Set only in failed: {"object": "list", "data": [{"code", "message", "param", "line"}]}, the validation codes of Batch jobs.

  6. 06
    hips

    The bound quote, the frozen requirements, batch_discount_percent (50), max_charge_micros computed at validation, held_micros still held against the balance, cost_micros of the lines finished so far, task_units, and the expired and cancelled lines among failed.

Parts list: Cancel and list

  1. 01
    POST /v1/batches/{batch_id}/cancel

    No body. A batch in validating or in_progress enters cancelling; one already cancelling or ended answers unchanged. Takes idempotency-key.

  2. 02
    GET /v1/batches

    Newest first, after and limit; OpenAI's list with first_id, last_id and has_more. A full key lists the workspace's batches; an inference_only key and a person's token those they created.

Output and error lines

Line kindWhereShape
Answered 2xxOutput fileid (batch_req_...), custom_id, response with status_code, request_id and body, error: null
Answered with an error statusError fileThe same response, its body the error envelope; not charged
Never answeredError fileresponse: null, error with code (batch_expired, batch_cancelled, attempt_failed) and message; not charged
  • Line kind
    Answered 2xx
    Where
    Output file
    Shape
    id (batch_req_...), custom_id, response with status_code, request_id and body, error: null
  • Line kind
    Answered with an error status
    Where
    Error file
    Shape
    The same response, its body the error envelope; not charged
  • Line kind
    Never answered
    Where
    Error file
    Shape
    response: null, error with code (batch_expired, batch_cancelled, attempt_failed) and message; not charged
StatusTypeCodeSituationRetry
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_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_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_errorfile_too_large, invalid_file_format, batch_not_offeredA batch input file over 200 MB; one that is not UTF-8 JSON Lines of objects, is empty, holds more than 50,000 lines, or names more than one model, one url or a router (the message names the first line at fault); a batch of a model sold without batchNo
403permission_errorguardrail_unsupportedA content moderation guardrail applies to a request whose text it cannot read: the request is refused, never sent unchecked; the guardrail named, unchargedNo
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
404not_found_errorupload_not_found, file_not_found, batch_not_foundAn id in the path, or input_file_id, that is unknown, deleted, expired, another workspace's, or out of the credential's reachNo
404not_found_errorroute_not_availablePOST /v1/messages/count_tokens, in Anthropic's shape: each answer's usage carries the exact countsNo
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_errorconcurrency_limit_exceededToo many open batches; param is batches; Retry-AfterYes, after Retry-After
  • 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_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
    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
    file_too_large, invalid_file_format, batch_not_offered
    Situation
    A batch input file over 200 MB; one that is not UTF-8 JSON Lines of objects, is empty, holds more than 50,000 lines, or names more than one model, one url or a router (the message names the first line at fault); a batch of a model sold without batch
    Retry
    No
  • Status
    403
    Type
    permission_error
    Code
    guardrail_unsupported
    Situation
    A content moderation guardrail applies to a request whose text it cannot read: the request is refused, never sent unchecked; the guardrail named, uncharged
    Retry
    No
  • 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
    404
    Type
    not_found_error
    Code
    upload_not_found, file_not_found, batch_not_found
    Situation
    An id in the path, or input_file_id, that is unknown, deleted, expired, another workspace's, or out of the credential's reach
    Retry
    No
  • Status
    404
    Type
    not_found_error
    Code
    route_not_available
    Situation
    POST /v1/messages/count_tokens, in Anthropic's shape: each answer's usage carries the exact counts
    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
    concurrency_limit_exceeded
    Situation
    Too many open batches; param is batches; Retry-After
    Retry
    Yes, after Retry-After

Related sheets

  • Batch jobs
  • Files
  • Webhooks
Previous sheetFiles
Next sheetWebhooks
Sheet
19 of 21
Detail
N
Updated
2026-11-24
Sign in to the Console

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Ü