Chabad Library Text Processing API
  1. Processing
Chabad Library Text Processing API
  • System
    • Health Check
      GET
  • Search
    • Search Chabad Library
      GET
  • Texts
    • List All Texts
      GET
    • Get Text by Slug
      GET
  • Extraction
    • Test Chabad Library API
      GET
    • Extract Text from Document
      POST
  • Processing
    • Generate Document Outline
      POST
    • Process Complete Document
      POST
    • Translate Document Segment
      POST
  • Schemas
    • HealthResponse
    • ErrorResponse
    • SourceMetadata
    • OutlineSegment
    • DocumentOutline
    • TranslationData
    • Footnote
    • TranslatedSegment
    • EnrichedSegment
    • ProcessedDocument
    • SearchResult
    • SearchResultsResponse
    • WorkByIdResponse
    • NavSearchResult
    • TextListItem
    • NavSearchResultsResponse
    • PaginationInfo
    • PaginatedTextsResponse
  1. Processing

Translate Document Segment

POST
/api/translate
Translate a specific segment from a document outline. Requires both the original file and the segment data. Supports multiple AI providers for comparison.

Request

Query Params

Body Params multipart/form-dataRequired

Responses

🟢200Success
application/json
Translated segment (single provider) or comparison (multiple providers)
Body

🟠400400
🔴500500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/translate?providers' \
--form 'file=@""' \
--form 'segment=""'
Response Response Example
200 - Example 1
{
    "sequence_id": 0,
    "original_hebrew_block": "string",
    "translation_data": [
        {
            "hebrew_phrase_expanded": "string",
            "english_translation": "string",
            "sefaria_link": "string"
        }
    ],
    "footnotes": [
        {
            "marker": "string",
            "content": "string",
            "translation": "string"
        }
    ]
}
Modified at 2025-12-03 11:51:17
Previous
Process Complete Document
Next
HealthResponse
Built with