Per-request service tier (priority or flex) for clients that cannot set the service_tier body field. The body field wins when both are present; unrecognized values ride the default tier.
The service tier used for processing the request. 'priority' processes the request with higher priority (premium rate); 'flex' processes it at lower priority for a discount, served only when spare capacity exists and may be retried/timed out under load. Both apply only to models that support the respective tier. For compatibility, 'auto' is treated as 'priority' and 'standard_only' as 'default'.
If true, the request is rejected immediately with HTTP 429 when the model has no spare capacity, instead of waiting in the queue. Opt-in; the default (false) keeps standard queueing behavior.
Ordered list of up to 4 fallback models. The request is attempted on each model in order: when a model rejects it for lack of capacity (HTTP 429 model-busy / flex no-capacity), the next model is tried server-side. The first model that accepts serves the request; the response's model field and billing reflect that model, at that model's pricing. Models before the last are attempted without queueing (as if fail_fast were set); the last model honors the request's own fail_fast value. When models is set, the model field is ignored. Entries must be plain model names (no deploy_id:, custom_hostport, or :revision specifiers); duplicate entries are ignored, keeping the first occurrence.
The maximum number of tokens to generate in the completion.
The total length of input tokens and generated tokens is limited by the model's context length.If explicitly set to None it will be the model's max context length minus input length or 65536, whichever is smaller.
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic
An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
Float that represents the minimum probability for a token to be considered, relative to the probability of the most likely token. Must be in [0, 1]. Set to 0 to disable this.
Positive values penalize new tokens based on how many times they appear in the text so far, increasing the model's likelihood to talk about new topics.
A unique identifier representing your end-user, which can help monitor and detect abuse. Avoid sending us any identifying information. We recommend hashing user identifiers.
A key to identify prompt cache for reuse across requests. If provided, the prompt will be cached and can be reused in subsequent requests with the same key.
Isolates this request's prefix cache: only requests with the same salt reuse each other's cached prefix. Honoured by models served on vLLM; ignored elsewhere.
Optional multi-modal data to pass alongside the prompt. Only supported for a small number of non-chat-native vision models. Images must be base64 data URIs (e.g. 'data:image/png;base64,...').
Keep generating until max_tokens instead of stopping at the end-of-sequence token. Only honoured on models tagged with the allow_ignore_eos feature flag; ignored otherwise. Intended for benchmarking, where a fixed output length is needed.
Response
Successful Response
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DeepInfra","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/deepinfra/ifPbTCg3ikXAClcH/logo/light.svg?fit=max\u0026auto=format\u0026n=ifPbTCg3ikXAClcH\u0026q=85\u0026s=0d46b707dec7daeabb9a6ac1b68eb06f","dark":"https://mintcdn.com/deepinfra/ifPbTCg3ikXAClcH/logo/dark.svg?fit=max\u0026auto=format\u0026n=ifPbTCg3ikXAClcH\u0026q=85\u0026s=780d4a2e2a095231b88b5cdf52ef88a5"},"favicon":"https://mintcdn.com/deepinfra/TF7R5PMbKvsnJh19/favicon.png?fit=max\u0026auto=format\u0026n=TF7R5PMbKvsnJh19\u0026q=85\u0026s=6e28bc383917ff4144e84bccf57049c6","navbar":{"links":[{"href":"mailto:feedback@deepinfra.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://deepinfra.com/dash"}},"footer":{"socials":{"x":"https://x.com/deepinfra","github":"https://github.com/deepinfra","linkedin":"https://www.linkedin.com/company/deep-infra"}},"seo":{"metatags":{"canonical":"https://docs.deepinfra.com"}},"integrations":{"ga4":{"measurementId":"G-EQ45SQSZZ0"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Models","icon":"brain","href":"https://deepinfra.com/models"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/x88dCvhqYq"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"deepinfra","hasAudioNarration":false,"actualSubdomain":"deepinfra","customDomains":["docs.deepinfra.com"],"gitSource":{"type":"github","owner":"deepinfra","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad9ff072cd1c8b6f01517df","collectionId":"4d1cc0b2-cc04-42d7-b0c6-1bc7bbe26340","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad9ff072cd1c8b6f01517df"},"entitlements":{},"buildId":"6ad9ff072cd1c8b6f01517df","clientVersion":"0.0.3964","searchFilterCounts":[{"language":"default","tag":"API Reference","count":166},{"language":"default","tag":"Documentation","count":54},{"language":"default","tag":"Dedicated Models","count":22},{"language":"default","tag":"Billing","count":16},{"language":"default","tag":"Models","count":15},{"language":"default","tag":"Authentication","count":14},{"language":"default","tag":"Agents","count":13},{"language":"default","tag":"Chat Completions","count":12},{"language":"default","tag":"Integrations","count":11},{"language":"default","tag":"Sandboxes","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/text-completions/openai-completions","slug":"/api-reference/text-completions/openai-completions","pageMetadata":{"title":"Openai Completions","description":null,"deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/completions","href":"/api-reference/text-completions/openai-completions","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Openai Completions","description":null,"deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/completions","href":"/api-reference/text-completions/openai-completions","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Text Completions"],"summary":"Openai Completions","operationId":"openai_completions_v1_completions_post","security":["060bd9c2-7840-42f3-9dea-596553f69e4c"],"parameters":["05bedb33-7afc-41b5-be7e-856c1c06f411","99b62cc2-edc4-47ed-aca8-62cd18dbcfb6","a50b2c99-ecba-4ccd-8f10-86cf5f142b66","f1124e8d-9696-419a-80d3-3987fe3ab476"],"requestBody":"c94e44bd-b3b6-4520-8949-f3c19ec42f3e","responses":{"200":"4f6c80c6-cfab-4ac8-8c43-b1adeaa28724","422":"e6fb2ebe-44d6-4290-b3e6-adf955638ef8"},"method":"post","type":"path","servers":["3d41f06c-2ad8-48cb-80b8-8f18064cfdc5"],"path":"/v1/completions","baseUrlOptions":["https://api.deepinfra.com"],"title":"Openai Completions","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"05bedb33-7afc-41b5-be7e-856c1c06f411":{"name":"x-deepinfra-source","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"X-Deepinfra-Source","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"X-Deepinfra-Source","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"}},"99b62cc2-edc4-47ed-aca8-62cd18dbcfb6":{"name":"x-deepinfra-service-tier","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"X-Deepinfra-Service-Tier","description":"Per-request service tier (`priority` or `flex`) for clients that cannot set the `service_tier` body field. The body field wins when both are present; unrecognized values ride the default tier.","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"X-Deepinfra-Service-Tier","description":"Per-request service tier (`priority` or `flex`) for clients that cannot set the `service_tier` body field. The body field wins when both are present; unrecognized values ride the default tier.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"},"description":"Per-request service tier (`priority` or `flex`) for clients that cannot set the `service_tier` body field. The body field wins when both are present; unrecognized values ride the default tier."},"a50b2c99-ecba-4ccd-8f10-86cf5f142b66":{"name":"xi-api-key","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"Xi-Api-Key","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"Xi-Api-Key","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"}},"f1124e8d-9696-419a-80d3-3987fe3ab476":{"name":"x-api-key","in":"header","required":false,"schema":{"oneOf":[{"type":"string","title":"X-Api-Key","uniqueKey":"oneOf.0","typeLabel":"string"},{"type":"null","title":"X-Api-Key","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string | null"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"model":{"type":"string","title":"Model","description":"model name","examples":["meta-llama/Llama-2-70b-chat-hf"],"isRequired":true,"uniqueKey":"model","typeLabel":"string"},"prompt":{"oneOf":[{"type":"string","title":"Prompt","description":"input prompt - a single string is currently supported","isRequired":true,"uniqueKey":"prompt.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"integer","uniqueKey":"prompt.oneOf.1.items.[INDEX]","typeLabel":"integer"},"title":"Prompt","description":"input prompt - a single string is currently supported","isRequired":true,"uniqueKey":"prompt.oneOf.1","typeLabel":"integer[]"}],"isRequired":true,"uniqueKey":"prompt","typeLabel":"string | integer[]"},"service_tier":{"oneOf":[{"type":"string","title":"ServiceTier","description":"The service tier used for processing the request. 'priority' processes the request with higher priority (premium rate); 'flex' processes it at lower priority for a discount, served only when spare capacity exists and may be retried/timed out under load. Both apply only to models that support the respective tier. For compatibility, 'auto' is treated as 'priority' and 'standard_only' as 'default'.","enum":["default","priority","flex"],"uniqueKey":"service_tier.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The service tier used for processing the request. 'priority' processes the request with higher priority (premium rate); 'flex' processes it at lower priority for a discount, served only when spare capacity exists and may be retried/timed out under load. Both apply only to models that support the respective tier. For compatibility, 'auto' is treated as 'priority' and 'standard_only' as 'default'.","uniqueKey":"service_tier.oneOf.1","typeLabel":"null"}],"uniqueKey":"service_tier","typeLabel":"enum\u003cstring> | null"},"fail_fast":{"type":"boolean","title":"Fail Fast","description":"If true, the request is rejected immediately with HTTP 429 when the model has no spare capacity, instead of waiting in the queue. Opt-in; the default (false) keeps standard queueing behavior.","default":false,"uniqueKey":"fail_fast","typeLabel":"boolean"},"models":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"models.oneOf.0.items.[INDEX]","typeLabel":"string"},"title":"Models","description":"Ordered list of up to 4 fallback models. The request is attempted on each model in order: when a model rejects it for lack of capacity (HTTP 429 model-busy / flex no-capacity), the next model is tried server-side. The first model that accepts serves the request; the response's model field and billing reflect that model, at that model's pricing. Models before the last are attempted without queueing (as if fail_fast were set); the last model honors the request's own fail_fast value. When models is set, the model field is ignored. Entries must be plain model names (no deploy_id:, custom_hostport, or :revision specifiers); duplicate entries are ignored, keeping the first occurrence.","maxItems":4,"minItems":1,"uniqueKey":"models.oneOf.0","typeLabel":"string[]"},{"type":"null","title":"Models","description":"Ordered list of up to 4 fallback models. The request is attempted on each model in order: when a model rejects it for lack of capacity (HTTP 429 model-busy / flex no-capacity), the next model is tried server-side. The first model that accepts serves the request; the response's model field and billing reflect that model, at that model's pricing. Models before the last are attempted without queueing (as if fail_fast were set); the last model honors the request's own fail_fast value. When models is set, the model field is ignored. Entries must be plain model names (no deploy_id:, custom_hostport, or :revision specifiers); duplicate entries are ignored, keeping the first occurrence.","uniqueKey":"models.oneOf.1","typeLabel":"null"}],"uniqueKey":"models","typeLabel":"string[] | null"},"max_tokens":{"oneOf":[{"type":"integer","title":"Max Tokens","description":"The maximum number of tokens to generate in the completion.\n\nThe total length of input tokens and generated tokens is limited by the model's context length.If explicitly set to None it will be the model's max context length minus input length or 65536, whichever is smaller.","maximum":10000000,"minimum":0,"exclusiveMinimum":true,"uniqueKey":"max_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Max Tokens","description":"The maximum number of tokens to generate in the completion.\n\nThe total length of input tokens and generated tokens is limited by the model's context length.If explicitly set to None it will be the model's max context length minus input length or 65536, whichever is smaller.","uniqueKey":"max_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_tokens","typeLabel":"integer | null"},"temperature":{"type":"number","maximum":2,"minimum":0,"title":"Temperature","description":"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic","default":1,"uniqueKey":"temperature","typeLabel":"number"},"top_p":{"type":"number","maximum":1,"exclusiveMinimum":0,"title":"Top P","description":"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.","default":1,"uniqueKey":"top_p","typeLabel":"number"},"min_p":{"type":"number","maximum":1,"minimum":0,"title":"Min P","description":"Float that represents the minimum probability for a token to be considered, relative to the probability of the most likely token. Must be in [0, 1]. Set to 0 to disable this.","default":0,"uniqueKey":"min_p","typeLabel":"number"},"top_k":{"type":"integer","exclusiveMaximum":1000,"minimum":0,"title":"Top K","description":"Sample from the best k (number of) tokens. 0 means off","default":0,"uniqueKey":"top_k","typeLabel":"integer"},"n":{"type":"integer","maximum":4,"minimum":1,"title":"N","description":"number of sequences to return","default":1,"uniqueKey":"n","typeLabel":"integer"},"stream":{"type":"boolean","title":"Stream","description":"whether to stream the output via SSE or return the full response","default":false,"uniqueKey":"stream","typeLabel":"boolean"},"logprobs":{"oneOf":[{"type":"integer","title":"Logprobs","description":"return top tokens and their log-probabilities","uniqueKey":"logprobs.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Logprobs","description":"return top tokens and their log-probabilities","uniqueKey":"logprobs.oneOf.1","typeLabel":"null"}],"uniqueKey":"logprobs","typeLabel":"integer | null"},"echo":{"oneOf":[{"type":"boolean","title":"Echo","description":"return prompt as part of the respons","uniqueKey":"echo.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Echo","description":"return prompt as part of the respons","uniqueKey":"echo.oneOf.1","typeLabel":"null"}],"uniqueKey":"echo","typeLabel":"boolean | null"},"stop":{"oneOf":[{"type":"string","title":"Stop","description":"up to 16 sequences where the API will stop generating further tokens","uniqueKey":"stop.oneOf.0","typeLabel":"string"},{"type":"array","items":{"type":"string","uniqueKey":"stop.oneOf.1.items.[INDEX]","typeLabel":"string"},"title":"Stop","description":"up to 16 sequences where the API will stop generating further tokens","uniqueKey":"stop.oneOf.1","typeLabel":"string[]"},{"type":"null","title":"Stop","description":"up to 16 sequences where the API will stop generating further tokens","uniqueKey":"stop.oneOf.2","typeLabel":"null"}],"uniqueKey":"stop","typeLabel":"string | string[] | null"},"presence_penalty":{"type":"number","maximum":2,"minimum":-2,"title":"Presence Penalty","description":"Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.","default":0,"uniqueKey":"presence_penalty","typeLabel":"number"},"frequency_penalty":{"type":"number","maximum":2,"minimum":-2,"title":"Frequency Penalty","description":"Positive values penalize new tokens based on how many times they appear in the text so far, increasing the model's likelihood to talk about new topics.","default":0,"uniqueKey":"frequency_penalty","typeLabel":"number"},"response_format":{"oneOf":[{"type":"object","title":"TextResponseFormat","description":"The format of the response. Currently, only json is supported.","properties":{"type":{"type":"string","const":"text","title":"Type","default":"text","uniqueKey":"response_format.oneOf.0.type","typeLabel":"string"}},"uniqueKey":"response_format.oneOf.0","typeLabel":"TextResponseFormat · object"},{"type":"object","title":"JsonObjectResponseFormat","description":"The format of the response. Currently, only json is supported.","properties":{"type":{"type":"string","const":"json_object","title":"Type","default":"json_object","uniqueKey":"response_format.oneOf.1.type","typeLabel":"string"}},"uniqueKey":"response_format.oneOf.1","typeLabel":"JsonObjectResponseFormat · object"},{"type":"object","title":"JsonSchemaResponseFormat","description":"The format of the response. Currently, only json is supported.","required":["json_schema"],"properties":{"json_schema":{"properties":{"name":{"type":"string","title":"Name","description":"Name identifier for the JSON schema","isRequired":true,"uniqueKey":"response_format.oneOf.2.json_schema.name","typeLabel":"string"},"schema":{"additionalProperties":true,"type":"object","title":"Schema","description":"The actual JSON schema definition","isRequired":true,"uniqueKey":"response_format.oneOf.2.json_schema.schema","typeLabel":"Schema · object"}},"type":"object","required":["name","schema"],"title":"JsonSchema","description":"JSON schema for structured output when type is 'json_schema'","isRequired":true,"uniqueKey":"response_format.oneOf.2.json_schema","typeLabel":"JsonSchema · object"},"type":{"type":"string","const":"json_schema","title":"Type","default":"json_schema","uniqueKey":"response_format.oneOf.2.type","typeLabel":"string"}},"uniqueKey":"response_format.oneOf.2","typeLabel":"JsonSchemaResponseFormat · object"},{"type":"object","title":"RegexResponseFormat","description":"The format of the response. Currently, only json is supported.","required":["regex"],"properties":{"regex":{"type":"string","title":"Regex","description":"Regex pattern for structured output when type is 'regex'","isRequired":true,"uniqueKey":"response_format.oneOf.3.regex","typeLabel":"string"},"type":{"type":"string","const":"regex","title":"Type","default":"regex","uniqueKey":"response_format.oneOf.3.type","typeLabel":"string"}},"uniqueKey":"response_format.oneOf.3","typeLabel":"RegexResponseFormat · object"},{"type":"null","title":"Response Format","description":"The format of the response. Currently, only json is supported.","uniqueKey":"response_format.oneOf.4","typeLabel":"null"}],"uniqueKey":"response_format","typeLabel":"TextResponseFormat · object | JsonObjectResponseFormat · object | JsonSchemaResponseFormat · object | RegexResponseFormat · object | null"},"repetition_penalty":{"type":"number","maximum":5,"minimum":0.01,"title":"Repetition Penalty","description":"Alternative penalty for repetition, but multiplicative instead of additive (> 1 penalize, \u003c 1 encourage)","default":1,"uniqueKey":"repetition_penalty","typeLabel":"number"},"user":{"oneOf":[{"type":"string","title":"User","description":"A unique identifier representing your end-user, which can help monitor and detect abuse. Avoid sending us any identifying information. We recommend hashing user identifiers.","uniqueKey":"user.oneOf.0","typeLabel":"string"},{"type":"null","title":"User","description":"A unique identifier representing your end-user, which can help monitor and detect abuse. Avoid sending us any identifying information. We recommend hashing user identifiers.","uniqueKey":"user.oneOf.1","typeLabel":"null"}],"uniqueKey":"user","typeLabel":"string | null"},"seed":{"oneOf":[{"type":"integer","title":"Seed","description":"Seed for random number generator. If not provided, a random seed is used. Determinism is not guaranteed.","maximum":18446744073709552000,"minimum":-9223372036854776000,"exclusiveMaximum":true,"uniqueKey":"seed.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Seed","description":"Seed for random number generator. If not provided, a random seed is used. Determinism is not guaranteed.","uniqueKey":"seed.oneOf.1","typeLabel":"null"}],"uniqueKey":"seed","typeLabel":"integer | null"},"stream_options":{"oneOf":[{"type":"object","title":"StreamOptions","description":"streaming options","properties":{"include_usage":{"type":"boolean","title":"Include Usage","description":"whether to include usage data","default":true,"uniqueKey":"stream_options.oneOf.0.include_usage","typeLabel":"boolean"},"continuous_usage_stats":{"type":"boolean","title":"Continuous Usage Stats","description":"whether to include usage stats continuously with each streaming event","default":false,"uniqueKey":"stream_options.oneOf.0.continuous_usage_stats","typeLabel":"boolean"}},"uniqueKey":"stream_options.oneOf.0","typeLabel":"StreamOptions · object"},{"type":"null","description":"streaming options","uniqueKey":"stream_options.oneOf.1","typeLabel":"null"}],"uniqueKey":"stream_options","typeLabel":"StreamOptions · object | null"},"stop_token_ids":{"oneOf":[{"type":"array","items":{"type":"integer","uniqueKey":"stop_token_ids.oneOf.0.items.[INDEX]","typeLabel":"integer"},"title":"Stop Token Ids","description":"Up to 16 token IDs where the API will stop generating further tokens. Merged with the model's built-in stop tokens. Intended for private deployments.","uniqueKey":"stop_token_ids.oneOf.0","typeLabel":"integer[]"},{"type":"null","title":"Stop Token Ids","description":"Up to 16 token IDs where the API will stop generating further tokens. Merged with the model's built-in stop tokens. Intended for private deployments.","uniqueKey":"stop_token_ids.oneOf.1","typeLabel":"null"}],"uniqueKey":"stop_token_ids","typeLabel":"integer[] | null"},"return_tokens_as_token_ids":{"oneOf":[{"type":"boolean","title":"Return Tokens As Token Ids","description":"return tokens as token ids","uniqueKey":"return_tokens_as_token_ids.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Return Tokens As Token Ids","description":"return tokens as token ids","uniqueKey":"return_tokens_as_token_ids.oneOf.1","typeLabel":"null"}],"uniqueKey":"return_tokens_as_token_ids","typeLabel":"boolean | null"},"prompt_cache_key":{"oneOf":[{"type":"string","title":"Prompt Cache Key","description":"A key to identify prompt cache for reuse across requests. If provided, the prompt will be cached and can be reused in subsequent requests with the same key.","uniqueKey":"prompt_cache_key.oneOf.0","typeLabel":"string"},{"type":"null","title":"Prompt Cache Key","description":"A key to identify prompt cache for reuse across requests. If provided, the prompt will be cached and can be reused in subsequent requests with the same key.","uniqueKey":"prompt_cache_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_key","typeLabel":"string | null"},"prompt_cache_options":{"oneOf":[{"type":"object","title":"PromptCacheOptions","description":"Prompt cache options for this request's prefix, e.g. {\"ttl\": \"1h\"}.","properties":{"mode":{"oneOf":[{"type":"string","title":"Mode","description":"Prompt caching mode; 'explicit' requests explicit caching.","enum":["explicit","implicit"],"uniqueKey":"prompt_cache_options.oneOf.0.mode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Mode","description":"Prompt caching mode; 'explicit' requests explicit caching.","uniqueKey":"prompt_cache_options.oneOf.0.mode.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_options.oneOf.0.mode","typeLabel":"enum\u003cstring> | null"},"ttl":{"oneOf":[{"type":"string","title":"Ttl","description":"Requested cache retention for this request's prefix.","enum":["5m","1h"],"uniqueKey":"prompt_cache_options.oneOf.0.ttl.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","title":"Ttl","description":"Requested cache retention for this request's prefix.","uniqueKey":"prompt_cache_options.oneOf.0.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_options.oneOf.0.ttl","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"prompt_cache_options.oneOf.0","typeLabel":"PromptCacheOptions · object"},{"type":"null","description":"Prompt cache options for this request's prefix, e.g. {\"ttl\": \"1h\"}.","uniqueKey":"prompt_cache_options.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_options","typeLabel":"PromptCacheOptions · object | null"},"cache_salt":{"oneOf":[{"type":"string","title":"Cache Salt","description":"Isolates this request's prefix cache: only requests with the same salt reuse each other's cached prefix. Honoured by models served on vLLM; ignored elsewhere.","minLength":1,"uniqueKey":"cache_salt.oneOf.0","typeLabel":"string"},{"type":"null","title":"Cache Salt","description":"Isolates this request's prefix cache: only requests with the same salt reuse each other's cached prefix. Honoured by models served on vLLM; ignored elsewhere.","uniqueKey":"cache_salt.oneOf.1","typeLabel":"null"}],"uniqueKey":"cache_salt","typeLabel":"string | null"},"data":{"oneOf":[{"type":"object","title":"CompletionMultiModalData","description":"Optional multi-modal data to pass alongside the prompt. Only supported for a small number of non-chat-native vision models. Images must be base64 data URIs (e.g. 'data:image/png;base64,...').","properties":{"image":{"items":{"type":"string","uniqueKey":"data.oneOf.0.image.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Image","description":"List of images as base64 data URIs (e.g. 'data:image/png;base64,...'). Each image must correspond to a placeholder token in the prompt.","uniqueKey":"data.oneOf.0.image","typeLabel":"string[]"},"video":{"items":{"type":"string","uniqueKey":"data.oneOf.0.video.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Video","description":"List of videos as base64 data URIs (e.g. 'data:video/mp4;base64,...'). Each video must correspond to a placeholder token in the prompt.","uniqueKey":"data.oneOf.0.video","typeLabel":"string[]"}},"uniqueKey":"data.oneOf.0","typeLabel":"CompletionMultiModalData · object"},{"type":"null","description":"Optional multi-modal data to pass alongside the prompt. Only supported for a small number of non-chat-native vision models. Images must be base64 data URIs (e.g. 'data:image/png;base64,...').","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"CompletionMultiModalData · object | null"},"ignore_eos":{"oneOf":[{"type":"boolean","title":"Ignore Eos","description":"Keep generating until max_tokens instead of stopping at the end-of-sequence token. Only honoured on models tagged with the allow_ignore_eos feature flag; ignored otherwise. Intended for benchmarking, where a fixed output length is needed.","uniqueKey":"ignore_eos.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Ignore Eos","description":"Keep generating until max_tokens instead of stopping at the end-of-sequence token. Only honoured on models tagged with the allow_ignore_eos feature flag; ignored otherwise. Intended for benchmarking, where a fixed output length is needed.","uniqueKey":"ignore_eos.oneOf.1","typeLabel":"null"}],"uniqueKey":"ignore_eos","typeLabel":"boolean | null"}},"type":"object","required":["model","prompt"],"title":"OpenAICompletionsIn","uniqueKey":"","typeLabel":"OpenAICompletionsIn · object"},"examples":{"Example":{"title":"Example","value":{"model":"meta-llama/Llama-2-70b-chat-hf","prompt":"\u003cstring>","fail_fast":false,"models":["\u003cstring>"],"max_tokens":5000000,"temperature":1,"top_p":1,"min_p":0,"top_k":0,"n":1,"stream":false,"logprobs":123,"echo":true,"stop":"\u003cstring>","presence_penalty":0,"frequency_penalty":0,"response_format":{"type":"text"},"repetition_penalty":1,"user":"\u003cstring>","seed":4611686018427388000,"stream_options":{"include_usage":true,"continuous_usage_stats":false},"stop_token_ids":[123],"return_tokens_as_token_ids":true,"prompt_cache_key":"\u003cstring>","prompt_cache_options":{},"cache_salt":"\u003cstring>","data":{"image":["\u003cstring>"],"video":["\u003cstring>"]},"ignore_eos":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"4f6c80c6-cfab-4ac8-8c43-b1adeaa28724":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"exampleType":"generated"},"e6fb2ebe-44d6-4290-b3e6-adf955638ef8":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"060bd9c2-7840-42f3-9dea-596553f69e4c":{"HTTPBearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"HTTPBearer"}}},"servers":{"3d41f06c-2ad8-48cb-80b8-8f18064cfdc5":{"url":"https://api.deepinfra.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"HTTPBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"https://api.deepinfra.com/openapi.json"},"subdomain":"deepinfra","siteName":"DeepInfra","title":"Openai Completions - DeepInfra","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-22T12:19:05.610Z","originalFileLocation":"api-reference/text-completions/openai-completions.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"application-name\" content=\"DeepInfra\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_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=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Openai Completions - DeepInfra\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DeepInfra\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://deepinfra.mintlify.app/_mintlify/api/og/v2?division=Text+Completions\u0026amp;title=Openai+Completions\u0026amp;theme=bbe65afb283b3e10ff929937\u0026amp;signature=8e7d90d44cf99eee864747da3eb591a01693f3220553fc0d94713dafd5aab805\">\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=\"Openai Completions - DeepInfra\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://deepinfra.mintlify.app/_mintlify/api/og/v2?division=Text+Completions\u0026amp;title=Openai+Completions\u0026amp;theme=bbe65afb283b3e10ff929937\u0026amp;signature=8e7d90d44cf99eee864747da3eb591a01693f3220553fc0d94713dafd5aab805\">\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=\"/mintlify-assets/_mintlify/favicons/deepinfra/uEBMIHUMawrR4czw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DeepInfra\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/text-completions/openai-completions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.deepinfra.com/#organization\",\"name\":\"DeepInfra\",\"url\":\"https://docs.deepinfra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/deepinfra/ifPbTCg3ikXAClcH/logo/light.svg?fit=max\u0026auto=format\u0026n=ifPbTCg3ikXAClcH\u0026q=85\u0026s=0d46b707dec7daeabb9a6ac1b68eb06f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.deepinfra.com#website\",\"name\":\"DeepInfra\",\"url\":\"https://docs.deepinfra.com\",\"publisher\":{\"@id\":\"https://docs.deepinfra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions#webpage\",\"url\":\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions\",\"name\":\"Openai Completions\",\"dateModified\":\"2026-10-22T12:19:05.610Z\",\"isPartOf\":{\"@id\":\"https://docs.deepinfra.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"DeepInfra\",\"item\":\"https://docs.deepinfra.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Openai Completions\",\"item\":\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions#apireference\",\"headline\":\"Openai Completions\",\"name\":\"Openai Completions\",\"url\":\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.deepinfra.com/api-reference/text-completions/openai-completions#webpage\"},\"dateModified\":\"2026-10-22T12:19:05.610Z\",\"publisher\":{\"@id\":\"https://docs.deepinfra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.deepinfra.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DeepInfra\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"DeepInfra","nav":{"global":{"anchors":[{"anchor":"Models","icon":"brain","href":"https://deepinfra.com/models"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/x88dCvhqYq"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Logs \u0026 Metrics","pages":[{"title":"Get Live Metrics","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/metrics/live","href":"/api-reference/logs-\u0026-metrics/get-live-metrics"},{"title":"Logs Query","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/logs/query","href":"/api-reference/logs-\u0026-metrics/logs-query"},{"title":"Deployment Logs Query","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/deployment_logs/query","href":"/api-reference/logs-\u0026-metrics/deployment-logs-query"},{"title":"Get Request Costs","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/request-costs","href":"/api-reference/logs-\u0026-metrics/get-request-costs"}]},{"group":"Utilities","pages":[{"title":"Cli Version","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /cli/version","href":"/api-reference/utilities/cli-version"},{"title":"Submit Feedback","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/feedback","href":"/api-reference/utilities/submit-feedback"}]},{"group":"Account","pages":[{"title":"Me","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/me","href":"/api-reference/account/me"},{"title":"Delete Account","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/me","href":"/api-reference/account/delete-account"},{"title":"Account Update Details","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json patch /v1/me","href":"/api-reference/account/account-update-details"},{"title":"Account Email Values","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/me/emails","href":"/api-reference/account/account-email-values"},{"title":"Team Set Display Name","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/me/team_display_name","href":"/api-reference/account/team-set-display-name"},{"title":"Account Rate Limit","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/me/rate_limit","href":"/api-reference/account/account-rate-limit"},{"title":"Request Rate Limit Increase","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/me/rate_limit/request","href":"/api-reference/account/request-rate-limit-increase"},{"title":"Gpu Pool Gpu Types","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/gpu_pool/gpu_types","href":"/api-reference/account/gpu-pool-gpu-types"},{"title":"Account Gpu Pool","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/me/gpu_pool","href":"/api-reference/account/account-gpu-pool"},{"title":"Request Gpu Pool Change","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/me/gpu_pool/request","href":"/api-reference/account/request-gpu-pool-change"},{"title":"Cancel Gpu Pool Request","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/me/gpu_pool/request/{request_id}","href":"/api-reference/account/cancel-gpu-pool-request"}]},{"group":"Dedicated Models","pages":[{"title":"Deploy Create","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/deploy","href":"/api-reference/dedicated-models/deploy-create"},{"title":"Deploy Create Hf","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /deploy/hf/","href":"/api-reference/dedicated-models/deploy-create-hf"},{"title":"Deploy Gpu Availability","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/llm/gpu_availability","href":"/api-reference/dedicated-models/deploy-gpu-availability"},{"title":"Deploy Llm Suggest Name","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/llm/suggest_name","href":"/api-reference/dedicated-models/deploy-llm-suggest-name"},{"title":"Deploy Llm Standard Args","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/llm/standard_args","href":"/api-reference/dedicated-models/deploy-llm-standard-args"},{"title":"Deploy Llm Presets","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/llm/presets","href":"/api-reference/dedicated-models/deploy-llm-presets"},{"title":"Deploy Create Llm","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /deploy/llm","href":"/api-reference/dedicated-models/deploy-create-llm"},{"title":"Deploy List","deprecated":true,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/list/","href":"/api-reference/dedicated-models/deploy-list"},{"title":"Deploy List","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/list","href":"/api-reference/dedicated-models/deploy-list-1"},{"title":"Deployment Stats","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/stats","href":"/api-reference/dedicated-models/deployment-stats"},{"title":"Deploy Status","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/{deploy_id}","href":"/api-reference/dedicated-models/deploy-status"},{"title":"Deploy Update","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json put /deploy/{deploy_id}","href":"/api-reference/dedicated-models/deploy-update"},{"title":"Deploy Delete","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /deploy/{deploy_id}","href":"/api-reference/dedicated-models/deploy-delete"},{"title":"Deploy Stats","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/{deploy_id}/stats","href":"/api-reference/dedicated-models/deploy-stats"},{"title":"Deploy Detailed Stats","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/{deploy_id}/stats2","href":"/api-reference/dedicated-models/deploy-detailed-stats"},{"title":"Deploy Args History","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/{deploy_id}/config/history","href":"/api-reference/dedicated-models/deploy-args-history"},{"title":"Deploy Args Restore","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /deploy/{deploy_id}/config/history/{entry_id}/restore","href":"/api-reference/dedicated-models/deploy-args-restore"},{"title":"Deploy Stop","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /deploy/{deploy_id}/stop","href":"/api-reference/dedicated-models/deploy-stop"},{"title":"Deploy Start","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /deploy/{deploy_id}/start","href":"/api-reference/dedicated-models/deploy-start"},{"title":"Deploy Rebalance Status","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /deploy/{deploy_id}/rebalance","href":"/api-reference/dedicated-models/deploy-rebalance-status"},{"title":"Deploy Rebalance","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /deploy/{deploy_id}/rebalance","href":"/api-reference/dedicated-models/deploy-rebalance"},{"title":"Deploy Rebalance Cancel","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /deploy/{deploy_id}/rebalance/cancel","href":"/api-reference/dedicated-models/deploy-rebalance-cancel"}]},{"group":"Models","pages":[{"title":"Private Models List","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /models/private/list","href":"/api-reference/models/private-models-list"},{"title":"Model Families Names","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /model-families/names","href":"/api-reference/models/model-families-names"},{"title":"Model Family","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /model-families/{family_name}","href":"/api-reference/models/model-family"},{"title":"Models List","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /models/list","href":"/api-reference/models/models-list"},{"title":"Models Deployment List","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /models/deployment/list","href":"/api-reference/models/models-deployment-list"},{"title":"Models Lora List","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /models/lora/list","href":"/api-reference/models/models-lora-list"},{"title":"Openrouter Models","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /openrouter/models","href":"/api-reference/models/openrouter-models"},{"title":"Model Publicity","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /models/{model_name}/publicity","href":"/api-reference/models/model-publicity"},{"title":"Model Meta Update","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /models/{model_name}/meta","href":"/api-reference/models/model-meta-update"},{"title":"Models Info","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /models/{model_name}","href":"/api-reference/models/models-info"},{"title":"Model Delete","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /models/{model_name}","href":"/api-reference/models/model-delete"},{"title":"Models Featured","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /models/featured","href":"/api-reference/models/models-featured"},{"title":"Model Schema","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /models/{model_name}/schema/{variantKey}","href":"/api-reference/models/model-schema"},{"title":"Openai Models","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/models","href":"/api-reference/models/openai-models"},{"title":"Get Hardware","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v2/hardware","href":"/api-reference/models/get-hardware"}]},{"group":"LoRA Adapters","pages":[{"title":"Upload Lora Model","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /lora-model","href":"/api-reference/lora-adapters/upload-lora-model"},{"title":"Delete Lora Model","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /lora-model/{lora_model_name}","href":"/api-reference/lora-adapters/delete-lora-model"},{"title":"Create Lora","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/lora/create","href":"/api-reference/lora-adapters/create-lora"},{"title":"Get Lora Status","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/lora/{lora_name}/status","href":"/api-reference/lora-adapters/get-lora-status"},{"title":"Get Lora","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/lora/{lora_name}","href":"/api-reference/lora-adapters/get-lora"},{"title":"Delete Lora","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/lora/{lora_name}","href":"/api-reference/lora-adapters/delete-lora"},{"title":"Update Lora","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json patch /v1/lora/{lora_name}","href":"/api-reference/lora-adapters/update-lora"},{"title":"Get Model Loras","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/model/{model_name}/loras","href":"/api-reference/lora-adapters/get-model-loras"},{"title":"Get User Loras","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/user/loras","href":"/api-reference/lora-adapters/get-user-loras"}]},{"group":"Inference","pages":[{"title":"Inference Deploy","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/inference/deploy/{deploy_id}","href":"/api-reference/inference/inference-deploy"},{"title":"Inference Model","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/inference/{model_name}","href":"/api-reference/inference/inference-model"}]},{"group":"Tokenizer","pages":[{"title":"Tokenize","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/tokenize","href":"/api-reference/tokenizer/tokenize"},{"title":"Detokenize","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/detokenize","href":"/api-reference/tokenizer/detokenize"}]},{"group":"Image Generation","pages":[{"title":"Openai Images Generations","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/images/generations","href":"/api-reference/image-generation/openai-images-generations"},{"title":"Openai Images Variations","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/images/variations","href":"/api-reference/image-generation/openai-images-variations"},{"title":"Openai Images Edits","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/images/edits","href":"/api-reference/image-generation/openai-images-edits"},{"title":"Get Generated Image","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/images/{image_id}","href":"/api-reference/image-generation/get-generated-image"}]},{"group":"Audio","pages":[{"title":"Openai Audio Speech","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/audio/speech","href":"/api-reference/audio/openai-audio-speech"},{"title":"Openai Audio Transcriptions","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/audio/transcriptions","href":"/api-reference/audio/openai-audio-transcriptions"},{"title":"Openai Audio Translations","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/audio/translations","href":"/api-reference/audio/openai-audio-translations"}]},{"group":"Videos","pages":[{"title":"Create Video Generation","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/videos","href":"/api-reference/videos/create-video-generation"},{"title":"Create Video Generation","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/openai/videos","href":"/api-reference/videos/create-video-generation-1"},{"title":"Get Video Generation","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/videos/{video_id}","href":"/api-reference/videos/get-video-generation"},{"title":"Get Video Generation","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/openai/videos/{video_id}","href":"/api-reference/videos/get-video-generation-1"},{"title":"Get Video Content","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/videos/{video_id}/content","href":"/api-reference/videos/get-video-content"},{"title":"Get Video Content","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/openai/videos/{video_id}/content","href":"/api-reference/videos/get-video-content-1"}]},{"group":"Text to Speech","pages":[{"title":"Get Voices","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/voices","href":"/api-reference/text-to-speech/get-voices"},{"title":"Text To Speech Stream","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/text-to-speech/{voice_id}/stream","href":"/api-reference/text-to-speech/text-to-speech-stream"},{"title":"Text To Speech","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/text-to-speech/{voice_id}","href":"/api-reference/text-to-speech/text-to-speech"},{"title":"Get Voice","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/voices/{voice_id}","href":"/api-reference/text-to-speech/get-voice"},{"title":"Delete Voice","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/voices/{voice_id}","href":"/api-reference/text-to-speech/delete-voice"},{"title":"Create Voice","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/voices/add","href":"/api-reference/text-to-speech/create-voice"},{"title":"Update Voice","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/voices/{voice_id}/edit","href":"/api-reference/text-to-speech/update-voice"}]},{"group":"GPU Rentals","pages":[{"title":"Container Rentals Get Params","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/containers/params","href":"/api-reference/gpu-rentals/container-rentals-get-params"},{"title":"Rent Gpu Availability","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/containers/gpu_availability","href":"/api-reference/gpu-rentals/rent-gpu-availability"},{"title":"Container Rentals List","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/containers","href":"/api-reference/gpu-rentals/container-rentals-list"},{"title":"Container Rentals Start","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/containers","href":"/api-reference/gpu-rentals/container-rentals-start"},{"title":"Container Rentals Get","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/containers/{container_id}","href":"/api-reference/gpu-rentals/container-rentals-get"},{"title":"Container Rentals Delete","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/containers/{container_id}","href":"/api-reference/gpu-rentals/container-rentals-delete"},{"title":"Container Rentals Update","description":null,"deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json patch /v1/containers/{container_id}","href":"/api-reference/gpu-rentals/container-rentals-update"}]},{"group":"Text Completions","pages":[{"title":"Openai Completions","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/completions","href":"/api-reference/text-completions/openai-completions"}]},{"group":"Chat Completions","pages":[{"title":"Openai Chat Completions","description":null,"deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/chat/completions","href":"/api-reference/chat-completions/openai-chat-completions"},{"title":"Anthropic Messages","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /anthropic/v1/messages","href":"/api-reference/chat-completions/anthropic-messages"},{"title":"Anthropic Messages Count Tokens","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /anthropic/v1/messages/count_tokens","href":"/api-reference/chat-completions/anthropic-messages-count-tokens"}]},{"group":"Responses","pages":[{"title":"Openai Responses","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/responses","href":"/api-reference/responses/openai-responses"},{"title":"Openai Responses Not Found","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/responses/{response_id}","href":"/api-reference/responses/openai-responses-not-found"},{"title":"Openai Responses Not Found","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/responses/{response_id}","href":"/api-reference/responses/openai-responses-not-found-1"}]},{"group":"Embeddings","pages":[{"title":"Openai Embeddings","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/embeddings","href":"/api-reference/embeddings/openai-embeddings"}]},{"group":"Decisions","pages":[{"title":"Systemone","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/decisions","href":"/api-reference/decisions/systemone"},{"title":"List Models","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /typesafe/v1/models","href":"/api-reference/decisions/list-models"}]},{"group":"Authentication","pages":[{"title":"Github Login","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /github/login","href":"/api-reference/authentication/github-login"},{"title":"Okta Login","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /okta/login","href":"/api-reference/authentication/okta-login"},{"title":"Github Cli Login","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /github/cli/login","href":"/api-reference/authentication/github-cli-login"},{"title":"Google Login","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /google/login","href":"/api-reference/authentication/google-login"},{"title":"Get Api Tokens","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/api-tokens","href":"/api-reference/authentication/get-api-tokens"},{"title":"Create Api Token","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/api-tokens","href":"/api-reference/authentication/create-api-token"},{"title":"Get Api Token By Id","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/api-tokens/id/{token_id}","href":"/api-reference/authentication/get-api-token-by-id"},{"title":"Delete Api Token By Id","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/api-tokens/id/{token_id}","href":"/api-reference/authentication/delete-api-token-by-id"},{"title":"Export Api Token To Vercel By Body","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/api-tokens/vercel_export","href":"/api-reference/authentication/export-api-token-to-vercel-by-body"},{"title":"Inspect Scoped Jwt","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/scoped-jwt","href":"/api-reference/authentication/inspect-scoped-jwt"},{"title":" Create Scoped Jwt","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/scoped-jwt","href":"/api-reference/authentication/create-scoped-jwt"},{"title":"Get Ssh Keys","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/ssh_keys","href":"/api-reference/authentication/get-ssh-keys"},{"title":"Create Ssh Key","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/ssh_keys","href":"/api-reference/authentication/create-ssh-key"},{"title":"Delete Ssh Key","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/ssh_keys/{ssh_key_id}","href":"/api-reference/authentication/delete-ssh-key"}]},{"group":"Files \u0026 Batches","pages":[{"title":"List Files","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/files","href":"/api-reference/files-\u0026-batches/list-files"},{"title":"Openai Files","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/files","href":"/api-reference/files-\u0026-batches/openai-files"},{"title":"Get File","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/files/{file_id}","href":"/api-reference/files-\u0026-batches/get-file"},{"title":"Delete File","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/files/{file_id}","href":"/api-reference/files-\u0026-batches/delete-file"},{"title":"Get File Content","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/files/{file_id}/content","href":"/api-reference/files-\u0026-batches/get-file-content"},{"title":"Retrieve Openai Batches","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/batches","href":"/api-reference/files-\u0026-batches/retrieve-openai-batches"},{"title":"Create Openai Batch","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/batches","href":"/api-reference/files-\u0026-batches/create-openai-batch"},{"title":"Retrieve Openai Batch","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/batches/{batch_id}","href":"/api-reference/files-\u0026-batches/retrieve-openai-batch"},{"title":"Cancel Openai Batch","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/batches/{batch_id}/cancel","href":"/api-reference/files-\u0026-batches/cancel-openai-batch"}]},{"group":"Agents","pages":[{"title":"List Instances","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/agents","href":"/api-reference/agents/list-instances"},{"title":"Create Instance","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/agents","href":"/api-reference/agents/create-instance"},{"title":"Get Catalog","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/agents/catalog","href":"/api-reference/agents/get-catalog"},{"title":"Get Instance","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/agents/{instance_id}","href":"/api-reference/agents/get-instance"},{"title":"Delete Instance","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/agents/{instance_id}","href":"/api-reference/agents/delete-instance"},{"title":"Rename Instance","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json patch /v1/agents/{instance_id}","href":"/api-reference/agents/rename-instance"},{"title":"Create Dashboard Launch Token","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/agents/{instance_id}/launch_token","href":"/api-reference/agents/create-dashboard-launch-token"},{"title":"Stop Instance","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/agents/{instance_id}/stop","href":"/api-reference/agents/stop-instance"},{"title":"Start Instance","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/agents/{instance_id}/start","href":"/api-reference/agents/start-instance"},{"title":"Update Instance Version","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/agents/{instance_id}/update","href":"/api-reference/agents/update-instance-version"},{"title":"List Backups","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/agents/{instance_id}/backups","href":"/api-reference/agents/list-backups"},{"title":"Create Backup","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/agents/{instance_id}/backup","href":"/api-reference/agents/create-backup"},{"title":"Restore Backup","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/agents/{instance_id}/backups/{backup_id}/restore","href":"/api-reference/agents/restore-backup"}]},{"group":"Sandboxes","pages":[{"title":"List Sandboxes","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/sandboxes","href":"/api-reference/sandboxes/list-sandboxes"},{"title":"Create Sandbox","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/sandboxes","href":"/api-reference/sandboxes/create-sandbox"},{"title":"List Sandbox Plans","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/sandboxes/catalog","href":"/api-reference/sandboxes/list-sandbox-plans"},{"title":"Get Sandbox","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/sandboxes/{sandbox_id}","href":"/api-reference/sandboxes/get-sandbox"},{"title":"Delete Sandbox","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json delete /v1/sandboxes/{sandbox_id}","href":"/api-reference/sandboxes/delete-sandbox"},{"title":"Stop Sandbox","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/sandboxes/{sandbox_id}/stop","href":"/api-reference/sandboxes/stop-sandbox"},{"title":"Start Sandbox","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/sandboxes/{sandbox_id}/start","href":"/api-reference/sandboxes/start-sandbox"},{"title":"Exec Command","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /v1/sandboxes/{sandbox_id}/exec","href":"/api-reference/sandboxes/exec-command"},{"title":"Read File","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /v1/sandboxes/{sandbox_id}/fs/content","href":"/api-reference/sandboxes/read-file"},{"title":"Write File","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json put /v1/sandboxes/{sandbox_id}/fs/content","href":"/api-reference/sandboxes/write-file"}]},{"group":"Billing","pages":[{"title":"Get Checklist","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/checklist","href":"/api-reference/billing/get-checklist"},{"title":"Get Config","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/config","href":"/api-reference/billing/get-config"},{"title":"Set Config","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /payment/config","href":"/api-reference/billing/set-config"},{"title":"Get Key Limits","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/key-limits","href":"/api-reference/billing/get-key-limits"},{"title":"Set Key Limit","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /payment/key-limits","href":"/api-reference/billing/set-key-limit"},{"title":"Billing Portal","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/billing-portal","href":"/api-reference/billing/billing-portal"},{"title":"Add Card Checkout","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /payment/payment-methods/setup","href":"/api-reference/billing/add-card-checkout"},{"title":"List Invoices","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/invoices","href":"/api-reference/billing/list-invoices"},{"title":"Usage","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/usage","href":"/api-reference/billing/usage"},{"title":"Usage Tokens","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/usage/tokens","href":"/api-reference/billing/usage-tokens"},{"title":"Usage Rent","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/usage/rent","href":"/api-reference/billing/usage-rent"},{"title":"Usage Api Token By Id","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/usage/id/{token_id}","href":"/api-reference/billing/usage-api-token-by-id"},{"title":"Usage Api Token","deprecated":true,"version":null,"openapi":"https://api.deepinfra.com/openapi.json get /payment/usage/{api_token}","href":"/api-reference/billing/usage-api-token"},{"title":"Deepstart Apply","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /payment/deepstart/application","href":"/api-reference/billing/deepstart-apply"},{"title":"Add Funds","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /payment/funds","href":"/api-reference/billing/add-funds"},{"title":"Setup Topup","deprecated":null,"version":null,"openapi":"https://api.deepinfra.com/openapi.json post /payment/topup","href":"/api-reference/billing/setup-topup"}]}]}]},"title":"Openai Completions - DeepInfra","buildId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","deploymentId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BRm_l__d.js","utils-f1l1Oc-G.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BlhqDhJO.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DHCB7rsC.js","snippetPresets-CYXLx6Hv.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-B78P2dEq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C4YLPVAh.js","shallow-vlLnTDkQ.js","getApiPlaygroundDisplay-D_98hhvf.js","CodeSnippet-DtnZHGqq.js","CodeSnippets-CLFb8KJt.js","Page-kQh739Uz.js","getPastedJson-Cq-zlbnU.js","icon-sN3t983t.js","MethodPill-P_YQ2s09.js","DuplicateIcon-BVzyNsGJ.js","createIcon-B3jqgqC6.js","DynamicMarkdown-Crwq6WG_.js","SectionHeading-C7pGS2Bb.js","axios-vUo_bRtp.js","Markdown-BuPH8yuW.js","clsx-CCOYKgaU.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BnkC_6oA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BM4S31-f.js"]}