Unlike chat completions, the prompt string is handed to the model as-is, no chat template, no roles, no system prompt. The model simply continues your text. Streaming works the same way as on the chat endpoint.
The models in the catalog are instruction-tuned, and their quality comes from their chat formatting, prefer chat completions for anything conversational, and keep this endpoint for continuation-style tasks or legacy integrations that require the prompt/text shape.
Authorizations
Authorization
string
header
required
Bearer followed by an inference API key (sk-prl-infapi-). Create keys on the API Keys page. Management keys (sk-prl-mgmt-) cannot call models.
Number of choices to generate, 1 to 8. Defaults to 1.
Required range: 1 <= x <= 8
stream
boolean
Server-sent events with choices[0].text deltas, terminated by data: [DONE].
Response
The completion, or an event stream when streaming.
id
string
Completion ID.
object
enum<string>
Always text_completion.
Available options:
text_completion
created
integer
Unix timestamp (seconds).
model
string
The model that served the request.
choices
object[]
Show child attributes
usage
object
prompt_tokens, completion_tokens, total_tokens, what you're billed on.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Pearl Inference Platform","colors":{"primary":"#2A2623","light":"#EFEDEA","dark":"#2A2623"},"logo":{"light":"https://mintcdn.com/pearl-research/qjVPdghcpi_iWwgo/logo/light.svg?fit=max\u0026auto=format\u0026n=qjVPdghcpi_iWwgo\u0026q=85\u0026s=a969569c61ca3aa40012ac0f3dbbe445","dark":"https://mintcdn.com/pearl-research/qjVPdghcpi_iWwgo/logo/dark.svg?fit=max\u0026auto=format\u0026n=qjVPdghcpi_iWwgo\u0026q=85\u0026s=eacd546258e1218dea6ff14f55e89b4c"},"favicon":{"light":"https://mintcdn.com/pearl-research/jPtzRu8ZOdp5WYZT/favicon/pearl-light.svg?fit=max\u0026auto=format\u0026n=jPtzRu8ZOdp5WYZT\u0026q=85\u0026s=97c85bf573b7866d8612883b555a32c7","dark":"https://mintcdn.com/pearl-research/jPtzRu8ZOdp5WYZT/favicon/pearl-dark.svg?fit=max\u0026auto=format\u0026n=jPtzRu8ZOdp5WYZT\u0026q=85\u0026s=9dc503cf63b998d03fa165c37e0921e1"},"api":{"playground":{"display":"interactive"},"examples":{"prefill":true,"autogenerate":false},"url":"full"},"appearance":{"default":"light","strict":true},"background":{"color":{"light":"#EFEEEB"}},"navbar":{"links":[{"href":"mailto:support@pearlresearch.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://platform.pearlresearch.ai"}},"seo":{"metatags":{"canonical":"https://platform.pearlresearch.ai/docs"}},"fonts":{"heading":{"family":"Urbanist"},"body":{"family":"Inter"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"pearl-research","hasAudioNarration":false,"actualSubdomain":"pearl-research","customDomains":[],"gitSource":{"type":"github","owner":"duplex-foundation","repo":"cloud-platform-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6afac147dd50ae575c58a540"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aff1808a4a19f80cc241c5b","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Docs","count":37},{"language":"default","tag":"Integrations","count":16},{"language":"default","tag":"Inference API","count":14},{"language":"default","tag":"API Reference","count":12},{"language":"default","tag":"Account \u0026 Billing","count":6},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Management API","count":5},{"language":"default","tag":"Guides","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"reference/completions","slug":"/reference/completions","pageMetadata":{"title":"Completions (legacy)","description":"Raw-prompt text completion, the pre-chat OpenAI shape, served for tooling that still speaks it.","deprecated":null,"version":null,"sidebarTitle":"Completions (legacy)","openapi":"/openapi/inference.yaml post /completions","href":"/reference/completions","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Raw-prompt text completion, the pre-chat OpenAI shape, served for tooling that still speaks it.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Note}=_components;if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Unlike `,_jsx(_components.a,{href:`/reference/chat-completions`,children:`chat completions`}),`, the `,_jsx(_components.code,{children:`prompt`}),` string is handed to the model as-is, no chat template, no roles, no system prompt. The model simply continues your text. Streaming works the same way as on the chat endpoint.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The models in the catalog are instruction-tuned, and their quality comes from their chat formatting, prefer `,_jsx(_components.strong,{children:`chat completions`}),` for anything conversational, and keep this endpoint for continuation-style tasks or legacy integrations that require the `,_jsx(_components.code,{children:`prompt`}),`/`,_jsx(_components.code,{children:`text`}),` shape.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Completions (legacy)","description":"Raw-prompt text completion, the pre-chat OpenAI shape, served for tooling that still speaks it.","deprecated":null,"version":null,"sidebarTitle":"Completions (legacy)","openapi":"/openapi/inference.yaml post /completions","href":"/reference/completions","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createCompletion","summary":"Completions (legacy)","description":"Raw-prompt text completion, the pre-chat OpenAI shape, served for tooling that still speaks it.","x-mint":{"href":"/reference/completions","metadata":{"sidebarTitle":"Completions (legacy)"},"content":"Unlike [chat completions](/reference/chat-completions), the `prompt` string is handed to the model as-is, no chat template, no roles, no system prompt. The model simply continues your text. Streaming works the same way as on the chat endpoint.\n\n\u003cNote>\n The models in the catalog are instruction-tuned, and their quality comes from their chat formatting, prefer **chat completions** for anything conversational, and keep this endpoint for continuation-style tasks or legacy integrations that require the `prompt`/`text` shape.\n\u003c/Note>\n"},"x-codeSamples":[{"lang":"bash","label":"cURL","source":"curl https://inference.pearlresearch.ai/v1/completions \\\n -H \"Authorization: Bearer $PEARL_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"zai-org/GLM-5.3\",\n \"prompt\": \"The three laws of robotics are:\",\n \"max_tokens\": 200,\n \"temperature\": 0.7\n }'\n"}],"requestBody":"87c2e9e0-f91d-422d-93bf-46bc66135b88","responses":{"200":"ddbd850a-50bd-459e-9667-ad7589ff7bc2","400":"3d9f2cfe-2bc6-4569-b687-705521acd751","401":"868ceed0-9594-40c3-be3b-8d4ece7526d6","402":"b024d8fe-2f83-46e3-9283-006b95e9f2f8","403":"a124a6b0-0263-4ccd-88b8-4978d8939a6d","404":"564ddc91-e0e4-4a54-a8a2-e2cf104c8971","413":"545ab654-b44c-4f9f-9a02-4ab1e4b2f4c8","429":"a8e706fa-87fa-4077-91dd-03070dcab438","500":"efa17666-a697-435c-a482-0b0cae64965c","502":"31dd0e1e-5fa5-44b2-99c4-f8959976055c","503":"8af37789-5ed1-4c68-8259-79289f465c5e","529":"5661b234-9748-4e6a-9827-22d60b7fd736"},"method":"post","type":"path","servers":["f6c31a79-dad6-4767-a559-ec5cffb3ed6a"],"security":["6625f6de-e10e-440e-ad17-e151c962928e"],"path":"/completions","baseUrlOptions":["https://inference.pearlresearch.ai/v1"],"title":"Completions (legacy)","codeSamples":[{"label":"cURL","lang":"bash","source":"curl https://inference.pearlresearch.ai/v1/completions \\\n -H \"Authorization: Bearer $PEARL_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"zai-org/GLM-5.3\",\n \"prompt\": \"The three laws of robotics are:\",\n \"max_tokens\": 200,\n \"temperature\": 0.7\n }'\n"}],"requiredOnlyExamples":false,"disableCodeSampleGeneration":true,"requestExampleType":"codeSamples","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.model":"zai-org/GLM-5.3","body.prompt":"The three laws of robotics are:","body.max_tokens":200,"body.temperature":0.7}],"urlDisplay":"full"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","prompt"],"properties":{"model":{"type":"string","description":"A catalog model ID from `GET /models`.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"prompt":{"type":"string","description":"Raw text the model continues.","isRequired":true,"uniqueKey":"prompt","typeLabel":"string"},"max_tokens":{"type":"integer","description":"Cap on generated tokens.","uniqueKey":"max_tokens","typeLabel":"integer"},"temperature":{"type":"number","description":"Sampling parameter; behaves as on [chat completions](/reference/chat-completions).","uniqueKey":"temperature","typeLabel":"number"},"top_p":{"type":"number","description":"Sampling parameter; behaves as on [chat completions](/reference/chat-completions).","uniqueKey":"top_p","typeLabel":"number"},"frequency_penalty":{"type":"number","description":"Sampling parameter; behaves as on [chat completions](/reference/chat-completions).","uniqueKey":"frequency_penalty","typeLabel":"number"},"presence_penalty":{"type":"number","description":"Sampling parameter; behaves as on [chat completions](/reference/chat-completions).","uniqueKey":"presence_penalty","typeLabel":"number"},"stop":{"type":"array","description":"Sampling parameter; behaves as on [chat completions](/reference/chat-completions).","items":{"type":"string","uniqueKey":"stop.items.[INDEX]","typeLabel":"string"},"uniqueKey":"stop","typeLabel":"string[]"},"seed":{"type":"integer","description":"Sampling parameter; behaves as on [chat completions](/reference/chat-completions).","uniqueKey":"seed","typeLabel":"integer"},"top_k":{"type":"integer","description":"Sampling parameter extension; behaves as on [chat completions](/reference/chat-completions).","uniqueKey":"top_k","typeLabel":"integer"},"min_p":{"type":"number","description":"Sampling parameter extension; behaves as on [chat completions](/reference/chat-completions).","uniqueKey":"min_p","typeLabel":"number"},"n":{"type":"integer","minimum":1,"maximum":8,"default":1,"description":"Number of choices to generate, 1 to 8. Defaults to 1.","uniqueKey":"n","typeLabel":"integer"},"stream":{"type":"boolean","description":"Server-sent events with `choices[0].text` deltas, terminated by `data: [DONE]`.","uniqueKey":"stream","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"example":{"model":"zai-org/GLM-5.3","prompt":"The three laws of robotics are:","max_tokens":200,"temperature":0.7},"examples":{"Example":{"title":"Example","value":{"model":"zai-org/GLM-5.3","prompt":"The three laws of robotics are:","max_tokens":200,"temperature":0.7}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"ddbd850a-50bd-459e-9667-ad7589ff7bc2":{"description":"The completion, or an event stream when streaming.","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Completion ID.","uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","enum":["text_completion"],"description":"Always `text_completion`.","uniqueKey":"object","typeLabel":"enum\u003cstring>"},"created":{"type":"integer","description":"Unix timestamp (seconds).","uniqueKey":"created","typeLabel":"integer"},"model":{"type":"string","description":"The model that served the request.","uniqueKey":"model","typeLabel":"string"},"choices":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"The generated continuation of `prompt`.","uniqueKey":"choices.items.[INDEX].text","typeLabel":"string"},"finish_reason":{"type":"string","enum":["stop","length"],"description":"`stop` (natural end or stop sequence) or `length` (hit `max_tokens`).","uniqueKey":"choices.items.[INDEX].finish_reason","typeLabel":"enum\u003cstring>"}},"uniqueKey":"choices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"choices","typeLabel":"object[]"},"usage":{"type":"object","description":"`prompt_tokens`, `completion_tokens`, `total_tokens`, what you're billed on.","properties":{"prompt_tokens":{"type":"integer","uniqueKey":"usage.prompt_tokens","typeLabel":"integer"},"completion_tokens":{"type":"integer","uniqueKey":"usage.completion_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","uniqueKey":"usage.total_tokens","typeLabel":"integer"}},"uniqueKey":"usage","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"completion":{"title":"completion","summary":"Completion","value":{"id":"cmpl-…","object":"text_completion","created":1785229039,"model":"zai-org/GLM-5.3","choices":[{"index":0,"text":" 1. A robot may not injure …","finish_reason":"stop"}],"usage":{"prompt_tokens":9,"completion_tokens":74,"total_tokens":83}}}},"exampleType":"examples"},"text/event-stream":{"schema":{"type":"string","description":"Server-sent events with `choices[0].text` deltas, terminated by `data: [DONE]`.","uniqueKey":"","typeLabel":"string"},"examples":{"stream":{"title":"stream","summary":"Stream (payloads elided)","value":"data: …\n\ndata: …\n\ndata: [DONE]"}},"exampleType":"examples"}},"exampleType":"examples"},"3d9f2cfe-2bc6-4569-b687-705521acd751":{"description":"Invalid request: malformed JSON, or a missing or wrongly typed field.","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"malformedJson":{"title":"malformedJson","summary":"Malformed JSON","value":{"error":{"message":"malformed JSON","type":"invalid_request_error","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"868ceed0-9594-40c3-be3b-8d4ece7526d6":{"description":"Missing, unknown, revoked, or expired API key, a key over its credit limit, or a management key.","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"unknownKey":{"title":"unknownKey","summary":"Unknown API key","value":{"error":{"message":"unknown API key","type":"authentication_error","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b024d8fe-2f83-46e3-9283-006b95e9f2f8":{"description":"Your organization is out of credits. Top up on the [Billing](https://platform.pearlresearch.ai/billing) page, then retry.","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"outOfCredits":{"title":"outOfCredits","summary":"Out of credits","value":{"error":{"message":"your organization is out of credits","type":"api_error","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"a124a6b0-0263-4ccd-88b8-4978d8939a6d":{"description":"Wrong endpoint for your organization's [inference region](/data-residency).","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"wrongRegion":{"title":"wrongRegion","summary":"Wrong endpoint for the region","value":{"error":{"message":"wrong endpoint for your organization's inference region","type":"permission_error","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"564ddc91-e0e4-4a54-a8a2-e2cf104c8971":{"description":"Unknown model (code `model_not_found`), or one this endpoint doesn't serve.","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"unknownModel":{"title":"unknownModel","summary":"Unknown model","value":{"error":{"message":"unknown model","type":"invalid_request_error","code":"model_not_found","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"545ab654-b44c-4f9f-9a02-4ab1e4b2f4c8":{"description":"Request body over 20 MiB.","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"bodyTooLarge":{"title":"bodyTooLarge","summary":"Body over 20 MiB","value":{"error":{"message":"request body over 20 MiB","type":"invalid_request_error","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"a8e706fa-87fa-4077-91dd-03070dcab438":{"description":"A [rate limit](/plans) for your organization and the model was reached. Wait for the `Retry-After` header's seconds.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"rateLimited":{"title":"rateLimited","summary":"Rate limit reached","value":{"error":{"message":"rate limit reached","type":"rate_limit_error","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"efa17666-a697-435c-a482-0b0cae64965c":{"description":"Internal error. Safe to retry with backoff.","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"internalError":{"title":"internalError","summary":"Internal error","value":{"error":{"message":"internal error","type":"api_error","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"31dd0e1e-5fa5-44b2-99c4-f8959976055c":{"description":"The model server failed or returned a malformed response. Retry with backoff.","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"modelServerFailed":{"title":"modelServerFailed","summary":"Model server failed","value":{"error":{"message":"the model server failed","type":"api_error","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"8af37789-5ed1-4c68-8259-79289f465c5e":{"description":"Temporarily unavailable, for example during a deploy. Retry after the `Retry-After` header's seconds.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"unavailable":{"title":"unavailable","summary":"Temporarily unavailable","value":{"error":{"message":"temporarily unavailable","type":"api_error","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5661b234-9748-4e6a-9827-22d60b7fd736":{"description":"No capacity for the model right now (code `no_capacity`). Retry with backoff.","headers":{"X-Request-ID":{"description":"The request ID. Send your own UUID in `X-Request-ID` to use it as the ID. Include the ID when you contact support.","schema":{"type":"string"},"example":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}},"content":{"application/json":{"schema":{"type":"object","description":"Errors are JSON in OpenAI's shape, with the request ID in the body.","properties":{"error":{"type":"object","properties":{"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","rate_limit_error","api_error"],"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","description":"Present only when set, for example `model_not_found` or `no_capacity`.","uniqueKey":"error.code","typeLabel":"string"},"request_id":{"type":"string","description":"The request ID.","uniqueKey":"error.request_id","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"noCapacity":{"title":"noCapacity","summary":"No capacity","value":{"error":{"message":"no capacity for the model right now","type":"api_error","code":"no_capacity","request_id":"6f0b6e0a-6a8f-4c62-9b1e-3d2c1a0f9e87"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"6625f6de-e10e-440e-ad17-e151c962928e":{"inferenceKey":{"type":"http","scheme":"bearer","description":"`Bearer` followed by an inference API key (`sk-prl-infapi-`). Create keys on the [API Keys](https://platform.pearlresearch.ai/api-keys) page. Management keys (`sk-prl-mgmt-`) cannot call models.","scopes":[],"schemeName":"inferenceKey"}}},"servers":{"f6c31a79-dad6-4767-a559-ec5cffb3ed6a":{"url":"https://inference.pearlresearch.ai/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"`Bearer` followed by an inference API key (`sk-prl-infapi-`). Create keys on the [API Keys](https://platform.pearlresearch.ai/api-keys) page. Management keys (`sk-prl-mgmt-`) cannot call models.","scopes":[],"schemeName":"inferenceKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"`Bearer` followed by an inference API key (`sk-prl-infapi-`). Create keys on the [API Keys](https://platform.pearlresearch.ai/api-keys) page. Management keys (`sk-prl-mgmt-`) cannot call models.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"inferenceKey","name":"Authorization"}],"title":"inferenceKey"}]},"originalFileLocation":"openapi/inference.yaml"},"subdomain":"pearl-research","siteName":"Pearl Inference Platform","title":"Completions (legacy) - Pearl Inference Platform","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T15:31:08.202Z","originalFileLocation":"reference/completions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Raw-prompt text completion, the pre-chat OpenAI shape, served for tooling that still speaks it.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Pearl Inference Platform\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Completions (legacy) - Pearl Inference Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Raw-prompt text completion, the pre-chat OpenAI shape, served for tooling that still speaks it.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Pearl Inference Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://platform.pearlresearch.ai/docs/reference/completions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://pearl-research.mintlify.site/docs/_mintlify/api/og/v2?division=Inference+API\u0026amp;title=Completions+%28legacy%29\u0026amp;description=Raw-prompt+text+completion%2C+the+pre-chat+OpenAI+shape%2C+served+for+tooling+that+still+speaks+it.\u0026amp;theme=8053f473600c09a776e77e44\u0026amp;signature=0edb15973919c1e3251bf9f4d951ba94f06e15cf3fcacbe4ef0ca08b10336b0b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Completions (legacy) - Pearl Inference Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Raw-prompt text completion, the pre-chat OpenAI shape, served for tooling that still speaks it.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://pearl-research.mintlify.site/docs/_mintlify/api/og/v2?division=Inference+API\u0026amp;title=Completions+%28legacy%29\u0026amp;description=Raw-prompt+text+completion%2C+the+pre-chat+OpenAI+shape%2C+served+for+tooling+that+still+speaks+it.\u0026amp;theme=8053f473600c09a776e77e44\u0026amp;signature=0edb15973919c1e3251bf9f4d951ba94f06e15cf3fcacbe4ef0ca08b10336b0b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/pearl-research/k9be1f6J_artjsFA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Pearl Inference Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2A2623\">\u003clink data-mint-head rel=\"canonical\" href=\"https://platform.pearlresearch.ai/docs/reference/completions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/reference/completions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://platform.pearlresearch.ai/#organization\",\"name\":\"Pearl Inference Platform\",\"url\":\"https://platform.pearlresearch.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/pearl-research/qjVPdghcpi_iWwgo/logo/light.svg?fit=max\u0026auto=format\u0026n=qjVPdghcpi_iWwgo\u0026q=85\u0026s=a969569c61ca3aa40012ac0f3dbbe445\"}},{\"@type\":\"WebSite\",\"@id\":\"https://platform.pearlresearch.ai/docs#website\",\"name\":\"Pearl Inference Platform\",\"url\":\"https://platform.pearlresearch.ai/docs\",\"publisher\":{\"@id\":\"https://platform.pearlresearch.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://platform.pearlresearch.ai/docs/reference/completions#webpage\",\"url\":\"https://platform.pearlresearch.ai/docs/reference/completions\",\"name\":\"Completions (legacy)\",\"description\":\"Raw-prompt text completion, the pre-chat OpenAI shape, served for tooling that still speaks it.\",\"dateModified\":\"2026-11-16T15:31:08.202Z\",\"isPartOf\":{\"@id\":\"https://platform.pearlresearch.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://platform.pearlresearch.ai/docs/reference/completions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://platform.pearlresearch.ai/docs/reference/completions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inference API\",\"item\":\"https://platform.pearlresearch.ai/docs/reference/inference\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Completions (legacy)\",\"item\":\"https://platform.pearlresearch.ai/docs/reference/completions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://platform.pearlresearch.ai/docs/reference/completions#apireference\",\"headline\":\"Completions (legacy)\",\"name\":\"Completions (legacy)\",\"description\":\"Raw-prompt text completion, the pre-chat OpenAI shape, served for tooling that still speaks it.\",\"url\":\"https://platform.pearlresearch.ai/docs/reference/completions\",\"mainEntityOfPage\":{\"@id\":\"https://platform.pearlresearch.ai/docs/reference/completions#webpage\"},\"dateModified\":\"2026-11-16T15:31:08.202Z\",\"publisher\":{\"@id\":\"https://platform.pearlresearch.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://platform.pearlresearch.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Pearl Inference Platform\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Pearl Inference Platform\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/reference/completions.md","siteName":"Pearl Inference Platform","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"API Reference","groups":[{"group":"Inference API","pages":[{"title":"Overview","href":"/reference/inference"},{"title":"Chat completions","deprecated":null,"version":null,"sidebarTitle":"Chat completions","openapi":"/openapi/inference.yaml post /chat/completions","href":"/reference/chat-completions"},{"title":"Responses","deprecated":null,"version":null,"sidebarTitle":"Responses","openapi":"/openapi/inference.yaml post /responses","href":"/reference/responses"},{"title":"Messages","deprecated":null,"version":null,"sidebarTitle":"Messages","openapi":"/openapi/inference.yaml post /messages","href":"/reference/messages"},{"title":"Count tokens","description":"Count a Messages request's input tokens without generating.","deprecated":null,"version":null,"sidebarTitle":"Count tokens","openapi":"/openapi/inference.yaml post /messages/count_tokens","href":"/reference/messages/count-tokens"},{"title":"Completions (legacy)","deprecated":null,"version":null,"sidebarTitle":"Completions (legacy)","openapi":"/openapi/inference.yaml post /completions","href":"/reference/completions"},{"title":"List models","description":"The live catalog, one entry per served model, with context windows, capabilities, and supported parameters.","deprecated":null,"version":null,"sidebarTitle":"List models","openapi":"/openapi/inference.yaml get /models","href":"/reference/models"}]},{"group":"Management API","pages":[{"title":"Overview","href":"/reference/management"},{"title":"Rate limits","href":"/reference/management/rate-limits"},{"title":"Get credits","deprecated":null,"version":null,"sidebarTitle":"Credits","openapi":"/openapi/management.yaml get /credits","href":"/reference/management/credits"},{"title":"Get current API key","deprecated":null,"version":null,"sidebarTitle":"Current API key","openapi":"/openapi/management.yaml get /key","href":"/reference/management/key"},{"title":"Get activity","deprecated":null,"version":null,"sidebarTitle":"Activity","openapi":"/openapi/management.yaml get /activity","href":"/reference/management/activity"}]}]}]},"basePath":"","title":"Completions (legacy) - Pearl Inference Platform","deploymentId":"dpl_53YqbBPsHdrqSGqXiWPGU7csRVod","buildId":"dpl_53YqbBPsHdrqSGqXiWPGU7csRVod","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Ku9dSkH0.js","snippetPresets-Cjez4eet.js","utils-BqNa-fnS.js","style-to-object-BY3JEAdk.js","utils-DiE92JCe.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-Bi0DpqVf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-C6xnxscF.js","_Uint8Array-B7g0OYAt.js","isObject-FP1Yky1u.js","ApiExamples-Bf8Ecb5t.js","usePlaygroundInputsStore-BA942cq6.js","shallow-D0sePNkF.js","isEqual-CnnQO8sL.js","CodeSnippets-BTANoy1T.js","CodeSnippet-CTZvgJfu.js","getApiPlaygroundDisplay-BK2o1XYu.js","Page--B9YZ09u.js","DynamicMarkdown-CsgNpZb1.js","SectionHeading-C3K437Dy.js","icon-DlxjjqnB.js","MethodPill-Cr7Ib9nN.js","getPastedJson-DXo3wtHt.js","Check2Icon-ChEI-f_B.js","axios-CsQoIw0U.js","Markdown-CH4mv0N8.js","AssistantPageLink-BHjmqccN.js","dist-DYCPzQwJ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}