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

Get started

  1. 01Developer hub
  2. 02Quickstart
  3. 03Migrate to HIPS

Guides

  1. 04HIPS SDK
  2. 05Import and run your model
  3. 06Model and task guides
    1. ATask guides
    2. BLanguage (chat)
    3. CClassification
    4. DImage
    5. EVideo
    6. FAudio
    7. GDocument processing
  4. 07Batch jobs
  5. 08Prompt caching
  6. 09Coding-tool setup
    1. AClaude Code
    2. BOther coding tools and editor integrations
  7. 10Command line
    1. ASign in
  8. 11Console
    1. AAccount
    2. BWorkspaces
    3. CAPI keys
    4. DSettings
    5. EUsage
    6. FModels
    7. GPlayground
    8. HDeployments
  9. 12Billing
  10. 13Provider setup
    1. AWhen it works
    2. BCommands
    3. CSettings
    4. DProvider Console
    5. EEarnings
    6. FCrash reports
    7. GData centers
  11. 14Router
  12. 15Guardrails
  13. 16Knowledge

Reference

  1. 17API reference
    1. AAuthentication
    2. BChat completions
    3. CResponses
    4. DMessages
    5. ECount tokens
    6. FModels
    7. GTasks
    8. HEmbeddings and rerank
    9. IJobs
    10. JUploads
    11. KFiles
    12. LBatches
    13. MWebhooks
    14. NVector stores
    15. ODeployments
    16. PRequirements and headers
    17. QErrors
    18. RUsage
    19. SVersioning
  2. 18Operating guidance
    1. ALimits
    2. BErrors
    3. CRetries and billing outcomes
    4. DIdempotency
    5. EStreaming
    6. FData handling
    7. GCompatibility matrix
  3. 19Changelog
Sheet indexAPI reference

Get started

  1. 01Developer hub
  2. 02Quickstart
  3. 03Migrate to HIPS

Guides

  1. 04HIPS SDK
  2. 05Import and run your model
  3. 06Model and task guides
    1. ATask guides
    2. BLanguage (chat)
    3. CClassification
    4. DImage
    5. EVideo
    6. FAudio
    7. GDocument processing
  4. 07Batch jobs
  5. 08Prompt caching
  6. 09Coding-tool setup
    1. AClaude Code
    2. BOther coding tools and editor integrations
  7. 10Command line
    1. ASign in
  8. 11Console
    1. AAccount
    2. BWorkspaces
    3. CAPI keys
    4. DSettings
    5. EUsage
    6. FModels
    7. GPlayground
    8. HDeployments
  9. 12Billing
  10. 13Provider setup
    1. AWhen it works
    2. BCommands
    3. CSettings
    4. DProvider Console
    5. EEarnings
    6. FCrash reports
    7. GData centers
  11. 14Router
  12. 15Guardrails
  13. 16Knowledge

Reference

  1. 17API reference
    1. AAuthentication
    2. BChat completions
    3. CResponses
    4. DMessages
    5. ECount tokens
    6. FModels
    7. GTasks
    8. HEmbeddings and rerank
    9. IJobs
    10. JUploads
    11. KFiles
    12. LBatches
    13. MWebhooks
    14. NVector stores
    15. ODeployments
    16. PRequirements and headers
    17. QErrors
    18. RUsage
    19. SVersioning
  2. 18Operating guidance
    1. ALimits
    2. BErrors
    3. CRetries and billing outcomes
    4. DIdempotency
    5. EStreaming
    6. FData handling
    7. GCompatibility matrix
  3. 19Changelog
17
  1. Docs/
  2. API reference/
  3. Files
(Detail K)
llms.txt

Files

OpenAI's Files API for the files of a batch: the input file you upload and the output and error files a batch writes. A file streams through the gateway into the workspace's storage location and is never held whole or logged. The content of a file follows the plan's request-data policy like a live request.

Note

Files and batches are built and not offered in production yet: every route on this page answers 404 route_not_available until they are switched on.

POST/v1/filesnot offered

OpenAI's Files API for batch input files. Not offered in production yet: 404 route_not_available.

GET/v1/filesnot offered

The files the credential reaches, OpenAI's list. Not offered in production yet.

GET/v1/files/{file_id}not offered

The File object. Not offered in production yet.

GET/v1/files/{file_id}/contentnot offered

The file's bytes, streamed. Not offered in production yet.

DELETE/v1/files/{file_id}not offered

Deletes the file from storage at once. Not offered in production yet.

F
Fig. 1, sheet 17API reference

File object

00000000000000000000000000000000000000001{2  "id": "file_...",3  "object": "file",4  "bytes": 120000,5  "created_at": 1792576800,6  "expires_at": 1795168800,7  "filename": "requests.jsonl",8  "purpose": "batch",9  "status": "processed",10  "status_details": null11}
File object sample

Parts list: Routes and fields

  1. 01
    POST /v1/files

    multipart/form-data with file and purpose batch; any other purpose is a 400 invalid_value. The optional expires_after[anchor] (created_at) and expires_after[seconds] (3,600 to 2,592,000: one hour to 30 days) come together or not at all. The file is checked as it arrives: at most 200 MB (file_too_large); UTF-8 JSON Lines, one object per line, not empty, at most 50,000 lines, every line naming the same model and the same url, and no line naming a router (invalid_file_format, the message naming the first line at fault). Takes idempotency-key.

  2. 02
    GET /v1/files

    OpenAI's list (data, first_id, last_id, has_more) with after, limit, order and purpose (batch or batch_output).

  3. 03
    GET /v1/files/{file_id}/content

    The bytes, streamed from storage through the gateway, application/jsonl for an input, output or error file.

  4. 04
    DELETE /v1/files/{file_id}

    {"id": "file_...", "object": "file", "deleted": true}; the object is deleted from storage at once. Deleting the input file of a batch that has not ended cancels that batch.

  5. 05
    purpose

    batch for an uploaded input; batch_output for a batch's output and error files, which HIPS writes. Once Knowledge is switched on, also user_data for a knowledge base's document (assistants taken as its alias): uploaded by a full key or a person whose role writes, kept until it is deleted or its expires_after passes, a stored object at the storage price while kept, at most a number of such files a workspace Not decided yet (past it, 400 limit_reached), and named in a knowledge base alone.

  6. 06
    expires_at

    30 days after created_at by default, sooner by expires_after or a batch's output_expires_after. An expired or deleted file answers 404 file_not_found.

  7. 07
    Who reads a file

    A full key reads every file of its workspace; an inference_only key and a person's token the files they created; a retrieval key only the workspace's batch output and error files.

StatusTypeCodeSituationRetry
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 valuesNo
400invalid_request_errorinvalid_idempotency_key, idempotency_key_reused, idempotency_in_progressThe idempotency rulesThe last one, later
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 batch. Batches and files are not offered in production yetNo
403permission_errorkey_scope_deniedThe key's kind excludes the route: a retrieval key on any route but its batch and file reads; a key other than full writing a knowledge base's documentsNo
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 reach. Batches and files are not offered in production yetNo
404not_found_errorroute_not_availableA route that is built and not offered on this gateway: uploads, files and batches in production, and POST /v1/messages/count_tokensNo
  • 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
    Retry
    No
  • Status
    400
    Type
    invalid_request_error
    Code
    invalid_idempotency_key, idempotency_key_reused, idempotency_in_progress
    Situation
    The idempotency rules
    Retry
    The last one, later
  • 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. Batches and files are not offered in production yet
    Retry
    No
  • Status
    403
    Type
    permission_error
    Code
    key_scope_denied
    Situation
    The key's kind excludes the route: a retrieval key on any route but its batch and file reads; a key other than full writing a knowledge base's documents
    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. Batches and files are not offered in production yet
    Retry
    No
  • Status
    404
    Type
    not_found_error
    Code
    route_not_available
    Situation
    A route that is built and not offered on this gateway: uploads, files and batches in production, and POST /v1/messages/count_tokens
    Retry
    No

Related sheets

  • Batches
  • Batch jobs
Previous sheetUploads
Next sheetBatches
Sheet
17 of 19
Detail
K
Updated
2026-11-11
Sign in to the Console

Product

  • Inference
  • Models
  • Deploy your model
  • Always-on GPU capacity
  • How it works
  • Use cases
  • Pricing

Developer

  • Docs
  • Quickstart
  • Migrate to HIPS
  • HIPS SDK
  • Batch jobs
  • API reference

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
  • 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Ü