Document Creator: Word, PDF, Resume, Worksheet
Document Creator: Word, PDF, Resume, Worksheet · GPT 작업
LaTeX Converter Plugin
A plugin that allows LaTeX conversion with user authentication.
POST /latex_convert/Convert LaTeX code to PDF and DOCXThis endpoint accepts a complete pdfLaTeX document and returns generated PDF/DOCX URLs plus quota metadata. Set include_docx=false unless the user explicitly requests DOCX.
원본 API 스키마
{
"openapi": "3.1.0",
"info": {
"title": "LaTeX Converter Plugin",
"description": "A plugin that allows LaTeX conversion with user authentication.",
"version": "1.0"
},
"servers": [
{
"url": "https://www.gpt2office.com/openai"
}
],
"paths": {
"/latex_convert/": {
"post": {
"operationId": "latex_convert",
"summary": "Convert LaTeX code to PDF and DOCX",
"description": "This endpoint accepts a complete pdfLaTeX document and returns generated PDF/DOCX URLs plus quota metadata. Set include_docx=false unless the user explicitly requests DOCX.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"latex"
],
"additionalProperties": false,
"properties": {
"latex": {
"type": "string",
"description": "A complete, compilable pdfLaTeX document."
},
"include_docx": {
"type": "boolean",
"description": "Optional (default true). If false, skips DOCX conversion."
}
}
}
}
}
},
"responses": {
"200": {
"description": "Conversion successful",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"pdf_url",
"docx_url",
"docx_success",
"docx_error",
"pdf_quota",
"message_from_gpt2office",
"subscription_name"
],
"additionalProperties": false,
"properties": {
"pdf_url": {
"type": "string",
"description": "Generated PDF URL."
},
"docx_url": {
"type": "string",
"description": "Generated DOCX URL, or an empty string when DOCX conversion was skipped or failed."
},
"docx_success": {
"type": "boolean",
"description": "Whether DOCX conversion succeeded."
},
"docx_error": {
"type": "string",
"description": "DOCX conversion error, or an empty string when DOCX succeeded or was skipped."
},
"pdf_quota": {
"type": "integer",
"description": "Remaining PDF quota for the authenticated user."
},
"message_from_gpt2office": {
"type": "string",
"description": "Service message to show the user. May be empty."
},
"subscription_name": {
"type": [
"string",
"null"
],
"description": "Active subscription product name, or null."
}
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"details": {
"type": "string"
},
"request_id": {
"type": "string"
},
"latex_sha12": {
"type": "string"
},
"attempts": {
"type": "integer"
},
"error_signature": {
"type": "string"
},
"error_primary": {
"type": "string"
},
"error_excerpt": {
"type": "string"
},
"missing_sty": {
"type": "array",
"items": {
"type": "string"
}
},
"missing_fonts": {
"type": "array",
"items": {
"type": "string"
}
},
"recommendations": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}