{"openapi":"3.0.0","info":{"description":"DeepInfra inference cloud API — OpenAI-compatible chat/completions/embeddings/audio/images, dedicated deployments, LoRA adapters, agents, sandboxes, GPU rentals, API tokens and billing; static Bearer API token.","version":"1.0.0"},"servers":[{"description":"DeepInfra inference cloud API — OpenAI-compatible chat/completions/embeddings/audio/images, dedicated deployments, LoRA adapters, agents, sandboxes, GPU rentals, API tokens and billing; static Bearer API token.","url":"https://api.apirails.com/deepinfra"}],"paths":{"/v1/metrics/live":{"get":{"tags":["Logs And Metrics"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/logs-&-metrics/get-live-metrics.md","api_endpoint":"https://api.deepinfra.com/v1/metrics/live"},"summary":"Get Live Metrics","description":"Get Live Metrics | Get the latest values for the Live metrics section on the web front page. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/cli/version":{"get":{"tags":["Utilities"],"parameters":[{"name":"version","in":"query","description":"version (query parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/utilities/cli-version.md","api_endpoint":"https://api.deepinfra.com/cli/version"},"summary":"Cli Version","description":"Cli Version | Cli Version | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/me":{"get":{"tags":["Account"],"parameters":[{"name":"checklist","in":"query","description":"checklist (query parameter from the official API reference)","required":false,"schema":{"type":"boolean","example":"","items":{"type":"string","enum":[true,false]}}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/me.md","api_endpoint":"https://api.deepinfra.com/v1/me"},"summary":"Me","description":"Me | Me | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"delete":{"tags":["Account"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/delete-account.md","api_endpoint":"https://api.deepinfra.com/v1/me"},"summary":"Delete Account","description":"Delete Account | Delete Account | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}},"patch":{"tags":["Account"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/account-update-details.md","api_endpoint":"https://api.deepinfra.com/v1/me"},"summary":"Account Update Details","description":"Account Update Details | Account Update Details | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"attribution":{"type":"string","description":"Short description of how the user found out about DeepInfra"},"company":{"type":"string","description":"Company name"},"country":{"type":"string","description":"Country of the user"},"country_code":{"type":"string","description":"ISO 3166-1 alpha-2 country code of the user selected country"},"display_name":{"type":"string","description":"String with length between 1 and 39 characters. Only alphanumeric characters and dashes allowed. Must contain no leading, trailing or consecutive dashes."},"email":{"type":"string","description":"body.email (string field from the documented request schema)"},"first_name":{"type":"string","description":"First name of the user"},"is_business_account":{"type":"boolean","description":"body.is_business_account (boolean field from the documented request schema)","enum":[true,false]},"last_name":{"type":"string","description":"Last name of the user"},"marketing_emails":{"type":"boolean","description":"Set to false to opt out of marketing emails","enum":[true,false]},"name":{"type":"string","description":"Personal name"},"title":{"type":"string","description":"Job title of the user, e.g. 'Software Engineer'"},"use_case":{"type":"string","description":"Short description of the use case for the account"},"website":{"type":"string","description":"Company website address"}}},"example":{"attribution":["string"],"company":["string"],"country":["string"],"country_code":["string"],"display_name":["string"],"email":["string"],"first_name":["string"],"is_business_account":[false],"last_name":["string"],"marketing_emails":[false],"name":["string"],"title":["string"],"use_case":["string"],"website":["string"]}}}}}},"/v1/me/emails":{"get":{"tags":["Account"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/account-email-values.md","api_endpoint":"https://api.deepinfra.com/v1/me/emails"},"summary":"Account Email Values","description":"Account Email Values | Account Email Values | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/me/team_display_name":{"post":{"tags":["Account"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/team-set-display-name.md","api_endpoint":"https://api.deepinfra.com/v1/me/team_display_name"},"summary":"Team Set Display Name","description":"Team Set Display Name | Team Set Display Name | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"display_name":{"type":"string","description":"String with length between 1 and 39 characters. Only alphanumeric characters and dashes allowed. Must contain no leading, trailing or consecutive dashes.","required":true}}},"example":{"display_name":["string"]}}}}}},"/v1/me/rate_limit":{"get":{"tags":["Account"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/account-rate-limit.md","api_endpoint":"https://api.deepinfra.com/v1/me/rate_limit"},"summary":"Account Rate Limit","description":"Account Rate Limit | Account Rate Limit | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/me/rate_limit/request":{"post":{"tags":["Account"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/request-rate-limit-increase.md","api_endpoint":"https://api.deepinfra.com/v1/me/rate_limit/request"},"summary":"Request Rate Limit Increase","description":"Request Rate Limit Increase | Request Rate Limit Increase | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"rate_limit":{"type":"number","description":"body.rate_limit (number field from the documented request schema)","required":true},"reason":{"type":"string","description":"body.reason (string field from the documented request schema)","required":true},"tpm_rate_limit":{"type":"number","description":"body.tpm_rate_limit (number field from the documented request schema)"}}},"example":{"rate_limit":[0],"reason":["string"],"tpm_rate_limit":[0]}}}}}},"/v1/deploy":{"post":{"tags":["Dedicated Models"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-create.md","api_endpoint":"https://api.deepinfra.com/v1/deploy"},"summary":"Deploy Create","description":"Deploy Create | Deploy Create | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"model_name":{"type":"string","description":"model name in specified provider","required":true},"provider":{"type":"string","description":"body.provider (string field from the documented request schema)"},"version":{"type":"string","description":"A specific revision, if left empty uses the last one"}}},"example":{"model_name":["string"],"provider":["huggingface"],"version":["string"]}}}}}},"/v1/gpu_pool/gpu_types":{"get":{"tags":["Account"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/gpu-pool-gpu-types.md","api_endpoint":"https://api.deepinfra.com/v1/gpu_pool/gpu_types"},"summary":"Gpu Pool Gpu Types","description":"Gpu Pool Gpu Types | Gpu Pool Gpu Types | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/me/gpu_pool":{"get":{"tags":["Account"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/account-gpu-pool.md","api_endpoint":"https://api.deepinfra.com/v1/me/gpu_pool"},"summary":"Account Gpu Pool","description":"Account Gpu Pool | Account Gpu Pool | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/me/gpu_pool/request":{"post":{"tags":["Account"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/request-gpu-pool-change.md","api_endpoint":"https://api.deepinfra.com/v1/me/gpu_pool/request"},"summary":"Request Gpu Pool Change","description":"Request Gpu Pool Change | File or amend the caller's single open GPU limit request. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"expected_request_id":{"type":"string","description":"Id of the pending request you are editing, from GET /v1/me/gpu_pool (pending_request.id), or null if you have none."},"reason":{"type":"string","description":"Why you need the change. Shown to the reviewer.","required":true},"requested_max":{"type":"object","description":"Desired max GPUs per type, e.g. {\"H100-80GB\": 16}. REPLACES the contents of your pending request, so send every entry you still want changed.","properties":{}},"requested_min":{"type":"object","description":"Guaranteed capacity.","properties":{}}}},"example":{"expected_request_id":["string"],"reason":["string"],"requested_max":[{}],"requested_min":[{}]}}}}}},"/v1/me/gpu_pool/request/{request_id}":{"delete":{"tags":["Account"],"parameters":[{"name":"request_id","in":"path","description":"request_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/account/cancel-gpu-pool-request.md","api_endpoint":"https://api.deepinfra.com/v1/me/gpu_pool/request/{request_id}"},"summary":"Cancel Gpu Pool Request","description":"Cancel Gpu Pool Request | Withdraw the caller's open request. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/deploy/hf/":{"post":{"tags":["Dedicated Models"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-create-hf.md","api_endpoint":"https://api.deepinfra.com/deploy/hf/"},"summary":"Deploy Create Hf","description":"Deploy Create Hf | Deploy Create Hf | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"model_name":{"type":"string","description":"Model Id from huggingface","required":true},"task":{"type":"string","description":"Task"}}},"example":{"model_name":["string"],"task":["string"]}}}}}},"/deploy/llm/gpu_availability":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"base_model","in":"query","description":"base_model (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"source","in":"query","description":"source (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-gpu-availability.md","api_endpoint":"https://api.deepinfra.com/deploy/llm/gpu_availability"},"summary":"Deploy Gpu Availability","description":"Deploy Gpu Availability | Deploy Gpu Availability | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/llm/suggest_name":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"model_name","in":"query","description":"model_name (query parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-llm-suggest-name.md","api_endpoint":"https://api.deepinfra.com/deploy/llm/suggest_name"},"summary":"Deploy Llm Suggest Name","description":"Deploy Llm Suggest Name | Deploy Llm Suggest Name | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/llm/standard_args":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"engine","in":"query","description":"engine (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-llm-standard-args.md","api_endpoint":"https://api.deepinfra.com/deploy/llm/standard_args"},"summary":"Deploy Llm Standard Args","description":"Deploy Llm Standard Args | Deploy Llm Standard Args | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/llm/presets":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"engine","in":"query","description":"engine (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"gpu","in":"query","description":"gpu (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":"","items":{"type":"string","enum":["L4-24GB","L40S-48GB","A100-80GB","H100-80GB","H200-141GB","B200-180GB","B300-270GB","RTXPRO6000-96GB","other"]}}},{"name":"hf_repo_id","in":"query","description":"hf_repo_id (query parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"source","in":"query","description":"source (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-llm-presets.md","api_endpoint":"https://api.deepinfra.com/deploy/llm/presets"},"summary":"Deploy Llm Presets","description":"Deploy Llm Presets | DeepInfra presets and mirrored vLLM recipes for ``hf_repo_id``, told apart by\n``source``; empty when none. Filter by ``gpu``/``engine``/``source``. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/llm":{"post":{"tags":["Dedicated Models"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-create-llm.md","api_endpoint":"https://api.deepinfra.com/deploy/llm"},"summary":"Deploy Create Llm","description":"Deploy Create Llm | Deploy Create Llm | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"base_model":{"type":"string","description":"Base public model"},"container_image":{"type":"string","description":"Docker image for the deployment (e.g. vllm/vllm-openai:v0.8.4)"},"extra_args":{"type":"array","description":"Extra command line arguments for custom deployments","items":{"type":"string"}},"gpu":{"type":"string","description":"body.gpu (string field from the documented request schema)","required":true},"hf":{"type":"object","description":"body.hf (object field from the documented request schema)","properties":{"repo":{"type":"string","description":"huggingface repository i.e username/reponame","required":true},"revision":{"type":"string","description":"commit sha or branch name"},"token":{"type":"string","description":"huggingface access token with read access to the repo"}}},"model_name":{"type":"string","description":"model name for deepinfra (username/mode-name format)","required":true},"num_gpus":{"type":"number","description":"Number of GPUs used by one instance"},"preset_id":{"type":"string","description":"Apply a stored preset or vLLM recipe by id. A non-empty standard_args or extra_args in this request replaces the preset's whole matching field."},"settings":{"type":"object","description":"body.settings (object field from the documented request schema)","properties":{"max_instances":{"type":"number","description":"Maximum number of model instances to run"},"min_instances":{"type":"number","description":"Minimum number of model instances to run"}}},"standard_args":{"type":"object","description":"The standard-argument allowlist. Construct from a raw ``dict[str, str]``\nvia :meth:`from_raw`; render to engine flags via :func:`standard_parts`.","properties":{"enable_prefix_caching":{"type":"boolean","description":"Reuse KV cache for shared prompt prefixes.","enum":[true,false]},"gpu_memory_fraction":{"type":"number","description":"Fraction of GPU memory the engine may use for weights + KV cache."},"kv_cache_dtype":{"type":"string","description":"KV cache precision. fp8 ~doubles KV capacity at <1% accuracy loss."},"max_concurrent_requests":{"type":"number","description":"Max number of requests served concurrently."},"max_context_size":{"type":"number","description":"Maximum total sequence length (prompt + generation)."},"max_prefill_tokens":{"type":"number","description":"Max tokens processed per prefill/engine step (chunked prefill size)."},"quantization":{"type":"string","description":"On-the-fly weight quantization method."}}}}},"example":{"base_model":["string"],"container_image":["string"],"extra_args":[["string"]],"gpu":["L4-24GB"],"hf":[{"repo":"string","revision":"string","token":"string"}],"model_name":["string"],"num_gpus":[1],"preset_id":["string"],"settings":[{"max_instances":1,"min_instances":1}],"standard_args":[{"enable_prefix_caching":false,"gpu_memory_fraction":0,"kv_cache_dtype":"auto","max_concurrent_requests":0,"max_context_size":0,"max_prefill_tokens":0,"quantization":"fp8"}]}}}}}},"/deploy/list":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"status","in":"query","description":"A list of statuses that should be returned, separated by comma. Allowed values in the list are: initializing,downloading,deploying,running,updating,stopped,failed,deleted","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-list.md","api_endpoint":"https://api.deepinfra.com/deploy/list"},"summary":"Deploy List","description":"Deploy List | Deploy List | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/stats":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"from","in":"query","description":"start of period, unix ts or 'now-5h', supported units s(ec), m(min), h(our), d(ay), w(eek), M(onth)","required":true,"schema":{"type":"string","example":""}},{"name":"to","in":"query","description":"end of period, unix ts or now-relative, check from, defaults to now","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deployment-stats.md","api_endpoint":"https://api.deepinfra.com/deploy/stats"},"summary":"Deployment Stats","description":"Deployment Stats | Deployment Stats | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/{deploy_id}":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-status.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}"},"summary":"Deploy Status","description":"Deploy Status | Deploy Status | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"put":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-update.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}"},"summary":"Deploy Update","description":"Deploy Update | Deploy Update | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"extra_args":{"type":"array","description":"Extra engine-specific command-line args (custom-weight deploys only). Replaces the whole list; omitted args are cleared.","items":{"type":"string"}},"settings":{"type":"object","description":"body.settings (object field from the documented request schema)","properties":{"max_instances":{"type":"number","description":"Maximum number of model instances to run"},"min_instances":{"type":"number","description":"Minimum number of model instances to run"}}},"standard_args":{"type":"object","description":"The standard-argument allowlist. Construct from a raw ``dict[str, str]``\nvia :meth:`from_raw`; render to engine flags via :func:`standard_parts`.","properties":{"enable_prefix_caching":{"type":"boolean","description":"Reuse KV cache for shared prompt prefixes.","enum":[true,false]},"gpu_memory_fraction":{"type":"number","description":"Fraction of GPU memory the engine may use for weights + KV cache."},"kv_cache_dtype":{"type":"string","description":"KV cache precision. fp8 ~doubles KV capacity at <1% accuracy loss."},"max_concurrent_requests":{"type":"number","description":"Max number of requests served concurrently."},"max_context_size":{"type":"number","description":"Maximum total sequence length (prompt + generation)."},"max_prefill_tokens":{"type":"number","description":"Max tokens processed per prefill/engine step (chunked prefill size)."},"quantization":{"type":"string","description":"On-the-fly weight quantization method."}}}}},"example":{"extra_args":[["string"]],"settings":[{"max_instances":1,"min_instances":1}],"standard_args":[{"enable_prefix_caching":false,"gpu_memory_fraction":0,"kv_cache_dtype":"auto","max_concurrent_requests":0,"max_context_size":0,"max_prefill_tokens":0,"quantization":"fp8"}]}}}}},"delete":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-delete.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}"},"summary":"Deploy Delete","description":"Deploy Delete | Deploy Delete | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/deploy/{deploy_id}/stats":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"from","in":"query","description":"start of period, unix ts or 'now-5h', supported units s(ec), m(min), h(our), d(ay), w(eek), M(onth)","required":true,"schema":{"type":"string","example":""}},{"name":"to","in":"query","description":"end of period, unix ts or now-relative, check from, defaults to now","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-stats.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}/stats"},"summary":"Deploy Stats","description":"Deploy Stats | Deploy Stats | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/{deploy_id}/stats2":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"from","in":"query","description":"start of period, unix ts or 'now-5h', supported units s, m, h, d, w","required":true,"schema":{"type":"string","example":""}},{"name":"to","in":"query","description":"end of period, unix ts or now-relative, check from, defaults to now","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-detailed-stats.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}/stats2"},"summary":"Deploy Detailed Stats","description":"Deploy Detailed Stats | Deploy Detailed Stats | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/{deploy_id}/config/history":{"get":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-args-history.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}/config/history"},"summary":"Deploy Args History","description":"Deploy Args History | Deploy Args History | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/{deploy_id}/config/history/{entry_id}/restore":{"post":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"entry_id","in":"path","description":"entry_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-args-restore.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}/config/history/{entry_id}/restore"},"summary":"Deploy Args Restore","description":"Deploy Args Restore | Deploy Args Restore | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/deploy/{deploy_id}/stop":{"post":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-stop.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}/stop"},"summary":"Deploy Stop","description":"Deploy Stop | Stop a running deployment. Terminates pods. Can be restarted later. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/deploy/{deploy_id}/start":{"post":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-start.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}/start"},"summary":"Deploy Start","description":"Deploy Start | Start a stopped deployment. Re-creates pods via auto-scaling. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/models/private/list":{"get":{"tags":["Models"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/private-models-list.md","api_endpoint":"https://api.deepinfra.com/models/private/list"},"summary":"Private Models List","description":"Private Models List | Private Models List | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/lora-model":{"post":{"tags":["LoRA Adapters"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/lora-adapters/upload-lora-model.md","api_endpoint":"https://api.deepinfra.com/lora-model"},"summary":"Upload Lora Model","description":"Upload Lora Model | Upload Lora Model | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"base_model_name":{"type":"string","description":"body.base_model_name (string field from the documented request schema)"},"hf_model_name":{"type":"string","description":"body.hf_model_name (string field from the documented request schema)","required":true},"hf_token":{"type":"string","description":"body.hf_token (string field from the documented request schema)"},"lora_model_name":{"type":"string","description":"body.lora_model_name (string field from the documented request schema)","required":true}}},"example":{"base_model_name":["string"],"hf_model_name":["string"],"hf_token":["string"],"lora_model_name":["string"]}}}}}},"/lora-model/{lora_model_name}":{"delete":{"tags":["LoRA Adapters"],"parameters":[{"name":"lora_model_name","in":"path","description":"lora_model_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/lora-adapters/delete-lora-model.md","api_endpoint":"https://api.deepinfra.com/lora-model/{lora_model_name}"},"summary":"Delete Lora Model","description":"Delete Lora Model | Delete Lora Model | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/model-families/names":{"get":{"tags":["Models"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/model-families-names.md","api_endpoint":"https://api.deepinfra.com/model-families/names"},"summary":"Model Families Names","description":"Model Families Names | Model Families Names | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/model-families/{family_name}":{"get":{"tags":["Models"],"parameters":[{"name":"family_name","in":"path","description":"family_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/model-family.md","api_endpoint":"https://api.deepinfra.com/model-families/{family_name}"},"summary":"Model Family","description":"Model Family | Model Family | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/models/list":{"get":{"tags":["Models"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/models-list.md","api_endpoint":"https://api.deepinfra.com/models/list"},"summary":"Models List","description":"Models List | Models List | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/models/deployment/list":{"get":{"tags":["Models"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/models-deployment-list.md","api_endpoint":"https://api.deepinfra.com/models/deployment/list"},"summary":"Models Deployment List","description":"Models Deployment List | Models Deployment List | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/models/lora/list":{"get":{"tags":["Models"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/models-lora-list.md","api_endpoint":"https://api.deepinfra.com/models/lora/list"},"summary":"Models Lora List","description":"Models Lora List | Models Lora List | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/openrouter/models":{"get":{"tags":["Models"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/openrouter-models.md","api_endpoint":"https://api.deepinfra.com/openrouter/models"},"summary":"Openrouter Models","description":"Openrouter Models | Openrouter Models | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/models/{model_name}/publicity":{"post":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"model_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/model-publicity.md","api_endpoint":"https://api.deepinfra.com/models/{model_name}/publicity"},"summary":"Model Publicity","description":"Model Publicity | Model Publicity | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"public":{"type":"boolean","description":"whether to make the model public of private","required":true,"enum":[true,false]}}},"example":{"public":[false]}}}}}},"/models/{model_name}/meta":{"post":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"model_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/model-meta-update.md","api_endpoint":"https://api.deepinfra.com/models/{model_name}/meta"},"summary":"Model Meta Update","description":"Model Meta Update | Model Meta Update | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"cover_img_url":{"type":"string","description":"dataurl or regular url to cover image (empty to delete)"},"description":{"type":"string","description":"short model description in plain text"},"github_url":{"type":"string","description":"source code project link (empty to delete)"},"license_url":{"type":"string","description":"usage license link (empty to delete)"},"paper_url":{"type":"string","description":"paper/research link (empty to delete)"},"readme":{"type":"string","description":"markdown flavored model readme"},"reported_type":{"type":"string","description":"model type"},"sample_output_url":{"type":"string","description":"dataurl or regular url to a sample of this model's output, shown on the model page before the first run (empty to delete)"}}},"example":{"cover_img_url":["string"],"description":["string"],"github_url":["string"],"license_url":["string"],"paper_url":["string"],"readme":["string"],"reported_type":["automatic-speech-recognition"],"sample_output_url":["string"]}}}}}},"/models/{model_name}":{"delete":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"model_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"version","in":"query","description":"delete a particular version, pass 'ALL' to wipe everything","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/model-delete.md","api_endpoint":"https://api.deepinfra.com/models/{model_name}"},"summary":"Model Delete","description":"Model Delete | Model Delete | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}},"get":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"model_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"version","in":"query","description":"version (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/models-info.md","api_endpoint":"https://api.deepinfra.com/models/{model_name}"},"summary":"Models Info","description":"Models Info | Models Info | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/models/featured":{"get":{"tags":["Models"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/models-featured.md","api_endpoint":"https://api.deepinfra.com/models/featured"},"summary":"Models Featured","description":"Models Featured | Models Featured | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/models/{model_name}/schema/{variantKey}":{"get":{"tags":["Models"],"parameters":[{"name":"model_name","in":"path","description":"model_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"variantKey","in":"path","description":"variantKey (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":"","items":{"type":"string","enum":["default","openai-completions","openai-chat-completions","openai-embeddings","openai-speech-to-text","openai-tts","openai-images","openai-images-variations","openai-images-edits","elevenlabs-tts","create-voice","read-voice","update-voice","delete-voice","list-voices","ai-sdk"]}}},{"name":"version","in":"query","description":"version (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/model-schema.md","api_endpoint":"https://api.deepinfra.com/models/{model_name}/schema/{variantKey}"},"summary":"Model Schema","description":"Model Schema | Model Schema | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/inference/deploy/{deploy_id}":{"post":{"tags":["Inference"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/inference/inference-deploy.md","api_endpoint":"https://api.deepinfra.com/v1/inference/deploy/{deploy_id}"},"summary":"Inference Deploy","description":"Inference Deploy | Inference Deploy | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/inference/{model_name}":{"post":{"tags":["Inference"],"parameters":[{"name":"model_name","in":"path","description":"model_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"version","in":"query","description":"model version to run inference against","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/inference/inference-model.md","api_endpoint":"https://api.deepinfra.com/v1/inference/{model_name}"},"summary":"Inference Model","description":"Inference Model | Inference Model | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/tokenize":{"post":{"tags":["Tokenizer"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/tokenizer/tokenize.md","api_endpoint":"https://api.deepinfra.com/v1/tokenize"},"summary":"Tokenize","description":"Tokenize | Tokenize | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"messages":{"type":"array","description":"chat messages to tokenize (chat form)","items":{"type":"object","properties":{}}},"model":{"type":"string","description":"model name","required":true},"prompt":{"type":"string","description":"text to tokenize (completion form)"},"return_token_strs":{"type":"boolean","description":"also return the per-token strings (vLLM)","enum":[true,false]}}},"example":{"messages":[[{}]],"model":["string"],"prompt":["string"],"return_token_strs":[false]}}}}}},"/v1/detokenize":{"post":{"tags":["Tokenizer"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/tokenizer/detokenize.md","api_endpoint":"https://api.deepinfra.com/v1/detokenize"},"summary":"Detokenize","description":"Detokenize | Detokenize | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"model":{"type":"string","description":"model name","required":true},"tokens":{"type":"array","description":"token ids to detokenize","items":{"type":"number"}}}},"example":{"model":["string"],"tokens":[[0]]}}}}}},"/v1/models":{"get":{"tags":["Models"],"parameters":[{"name":"filter","in":"query","description":"filter (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"sort_by","in":"query","description":"sort_by (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/openai-models.md","api_endpoint":"https://api.deepinfra.com/v1/models"},"summary":"Openai Models","description":"Openai Models | Openai Models | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/images/generations":{"post":{"tags":["Image Generation"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/image-generation/openai-images-generations.md","api_endpoint":"https://api.deepinfra.com/v1/images/generations"},"summary":"Openai Images Generations","description":"Openai Images Generations | Generate image using OpenAI Images API | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"model":{"type":"string","description":"The model to use for image generation.","required":true},"n":{"type":"number","description":"The number of images to generate."},"prompt":{"type":"string","description":"A text description of desired image(s).","required":true},"quality":{"type":"string","description":"The quality of the image that will be generated."},"response_format":{"type":"string","description":"The format in which the generated images are returned: 'b64_json' (default) or 'url'. For most models 'url' points to a temporary copy we host that expires after about a day; for some provider-backed models it is the provider's own URL with the provider's own lifetime."},"size":{"type":"string","description":"The size of the generated images. Available sizes depend on the model."},"style":{"type":"string","description":"The style of the generated images."},"user":{"type":"string","description":"A unique identifier representing your end-user, which can help to monitor and detect abuse."}}},"example":{"model":["string"],"n":[1],"prompt":["string"],"quality":["string"],"response_format":["b64_json"],"size":["1024x1024"],"style":["string"],"user":["string"]}}}}}},"/v1/images/variations":{"post":{"tags":["Image Generation"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/image-generation/openai-images-variations.md","api_endpoint":"https://api.deepinfra.com/v1/images/variations"},"summary":"Openai Images Variations","description":"Openai Images Variations | Generate a similar image using OpenAI Images Variations API | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"image":{"type":"string","format":"binary","description":"Image to use as the basis of the variation(s) (multipart file upload). body.image (string field from the documented request schema)","required":true},"inp":{"type":"object","description":"body.inp (object field from the documented request schema)","properties":{"image":{"type":"string","description":"Input image bytes for variation task","required":true},"model":{"type":"string","description":"The model to use.","required":true},"n":{"type":"number","description":"The number of images to generate."},"response_format":{"type":"string","description":"The format in which the generated images are returned: 'b64_json' (default) or 'url'. For most models 'url' points to a temporary copy we host that expires after about a day; for some provider-backed models it is the provider's own URL with the provider's own lifetime."},"size":{"type":"string","description":"The size of the generated images. Available sizes depend on the model."},"user":{"type":"string","description":"A unique identifier representing your end-user, which can help to monitor and detect abuse."}}},"model":{"type":"string","description":"body.model (string field from the documented request schema)","required":true},"response_format":{"type":"string","description":"body.response_format (string field from the documented request schema)"}}},"example":{"image":["string"],"inp":[{"image":"string","model":"string","n":1,"response_format":"b64_json","size":"1024x1024","user":"string"}],"model":["string"],"response_format":["b64_json"]}}}}}},"/v1/images/edits":{"post":{"tags":["Image Generation"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/image-generation/openai-images-edits.md","api_endpoint":"https://api.deepinfra.com/v1/images/edits"},"summary":"Openai Images Edits","description":"Openai Images Edits | Edit image using OpenAI Images Edits API | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"image":{"type":"string","format":"binary","description":"The image to edit (multipart file upload). body.image (string field from the documented request schema)","required":true},"inp":{"type":"object","description":"body.inp (object field from the documented request schema)","properties":{"image":{"type":"string","description":"Input image bytes for editing task","required":true},"mask":{"type":"string","description":"An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as image."},"model":{"type":"string","description":"The model to use.","required":true},"n":{"type":"number","description":"The number of images to generate."},"prompt":{"type":"string","description":"A text description of the desired image edits.","required":true},"response_format":{"type":"string","description":"The format in which the generated images are returned: 'b64_json' (default) or 'url'. For most models 'url' points to a temporary copy we host that expires after about a day; for some provider-backed models it is the provider's own URL with the provider's own lifetime."},"size":{"type":"string","description":"The size of the generated images. Available sizes depend on the model."},"user":{"type":"string","description":"A unique identifier representing your end-user, which can help to monitor and detect abuse."}}},"model":{"type":"string","description":"body.model (string field from the documented request schema)","required":true},"prompt":{"type":"string","description":"body.prompt (string field from the documented request schema)","required":true},"response_format":{"type":"string","description":"body.response_format (string field from the documented request schema)"}}},"example":{"image":["string"],"inp":[{"image":"string","mask":"string","model":"string","n":1,"prompt":"string","response_format":"b64_json","size":"1024x1024","user":"string"}],"model":["string"],"prompt":["string"],"response_format":["b64_json"]}}}}}},"/v1/feedback":{"post":{"tags":["Utilities"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/utilities/submit-feedback.md","api_endpoint":"https://api.deepinfra.com/v1/feedback"},"summary":"Submit Feedback","description":"Submit Feedback | Submit feedback | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"contact_email":{"type":"string","description":"Optional contact email to reach you back"},"message":{"type":"string","description":"The message you'd like to send to deepinfra team","required":true}}},"example":{"contact_email":["string"],"message":["string"]}}}}}},"/v1/audio/speech":{"post":{"tags":["Audio"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-deepinfra-source","in":"query","description":"x-deepinfra-source (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/audio/openai-audio-speech.md","api_endpoint":"https://api.deepinfra.com/v1/audio/speech"},"summary":"Openai Audio Speech","description":"Openai Audio Speech | Openai Audio Speech | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"extra_body":{"type":"object","description":"Extra body parameters for the model.","properties":{}},"fail_fast":{"type":"boolean","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.","enum":[true,false]},"input":{"type":"string","description":"Text to convert to speech","required":true},"model":{"type":"string","description":"model name","required":true},"response_format":{"type":"string","description":"Select the desired format for the speech output. Supported formats include mp3, opus, flac, wav, and pcm."},"service_tier":{"type":"string","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'."},"speed":{"type":"number","description":"speed of the speech"},"voice":{"type":"string","description":"Preset voices to use for the speech."}}},"example":{"extra_body":[{}],"fail_fast":[false],"input":["string"],"model":["string"],"response_format":["wav"],"service_tier":["default"],"speed":[1],"voice":["string"]}}}}}},"/v1/audio/transcriptions":{"post":{"tags":["Audio"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-deepinfra-source","in":"query","description":"x-deepinfra-source (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/audio/openai-audio-transcriptions.md","api_endpoint":"https://api.deepinfra.com/v1/audio/transcriptions"},"summary":"Openai Audio Transcriptions","description":"Openai Audio Transcriptions | Openai Audio Transcriptions | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"file":{"type":"string","format":"binary","description":"The audio file to transcribe (multipart file upload; mp3/mp4/mpeg/mpga/m4a/wav/webm). body.file (string field from the documented request schema)","required":true},"language":{"type":"string","description":"body.language (string field from the documented request schema)"},"model":{"type":"string","description":"body.model (string field from the documented request schema)","required":true},"prompt":{"type":"string","description":"body.prompt (string field from the documented request schema)"},"response_format":{"type":"string","description":"body.response_format (string field from the documented request schema)"},"service_tier":{"type":"string","description":"body.service_tier (string field from the documented request schema)"},"temperature":{"type":"number","description":"body.temperature (number field from the documented request schema)"},"timestamp_granularities":{"type":"array","description":"body.timestamp_granularities (array field from the documented request schema)","items":{"type":"string"}}}},"example":{"file":["string"],"language":["string"],"model":["string"],"prompt":["string"],"response_format":["json"],"service_tier":["string"],"temperature":[0],"timestamp_granularities":[["segment"]]}}}}}},"/v1/audio/translations":{"post":{"tags":["Audio"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-deepinfra-source","in":"query","description":"x-deepinfra-source (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/audio/openai-audio-translations.md","api_endpoint":"https://api.deepinfra.com/v1/audio/translations"},"summary":"Openai Audio Translations","description":"Openai Audio Translations | Openai Audio Translations | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"file":{"type":"string","format":"binary","description":"The audio file to translate to English (multipart file upload; mp3/mp4/mpeg/mpga/m4a/wav/webm). body.file (string field from the documented request schema)","required":true},"model":{"type":"string","description":"body.model (string field from the documented request schema)","required":true},"prompt":{"type":"string","description":"body.prompt (string field from the documented request schema)"},"response_format":{"type":"string","description":"body.response_format (string field from the documented request schema)"},"service_tier":{"type":"string","description":"body.service_tier (string field from the documented request schema)"},"temperature":{"type":"number","description":"body.temperature (number field from the documented request schema)"}}},"example":{"file":["string"],"model":["string"],"prompt":["string"],"response_format":["json"],"service_tier":["string"],"temperature":[0]}}}}}},"/v1/videos":{"post":{"tags":["Videos"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/videos/create-video-generation.md","api_endpoint":"https://api.deepinfra.com/v1/videos"},"summary":"Create video generation (native)","description":"Create Video Generation | Create Video Generation | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"aspect_ratio":{"type":"string","description":"body.aspect_ratio (string field from the documented request schema)"},"image_url":{"type":"string","description":"First-frame image for image-to-video (i2v): an http(s) URL or a data: URI. Omit for text-to-video."},"model":{"type":"string","description":"body.model (string field from the documented request schema)","required":true},"negative_prompt":{"type":"string","description":"body.negative_prompt (string field from the documented request schema)"},"prompt":{"type":"string","description":"body.prompt (string field from the documented request schema)","required":true},"seconds":{"type":"number","description":"body.seconds (number field from the documented request schema)"},"seed":{"type":"number","description":"body.seed (number field from the documented request schema)"},"size":{"type":"string","description":"body.size (string field from the documented request schema)"},"style":{"type":"string","description":"body.style (string field from the documented request schema)"}}},"example":{"aspect_ratio":["string"],"image_url":["string"],"model":["string"],"negative_prompt":["string"],"prompt":["string"],"seconds":[0],"seed":[0],"size":["string"],"style":["string"]}}}}}},"/v1/openai/videos":{"post":{"tags":["Videos"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/videos/create-video-generation-1.md","api_endpoint":"https://api.deepinfra.com/v1/openai/videos"},"summary":"Create video generation (OpenAI compatible)","description":"Create Video Generation | Create Video Generation | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"aspect_ratio":{"type":"string","description":"body.aspect_ratio (string field from the documented request schema)"},"image_url":{"type":"string","description":"First-frame image for image-to-video (i2v): an http(s) URL or a data: URI. Omit for text-to-video."},"model":{"type":"string","description":"body.model (string field from the documented request schema)","required":true},"negative_prompt":{"type":"string","description":"body.negative_prompt (string field from the documented request schema)"},"prompt":{"type":"string","description":"body.prompt (string field from the documented request schema)","required":true},"seconds":{"type":"number","description":"body.seconds (number field from the documented request schema)"},"seed":{"type":"number","description":"body.seed (number field from the documented request schema)"},"size":{"type":"string","description":"body.size (string field from the documented request schema)"},"style":{"type":"string","description":"body.style (string field from the documented request schema)"}}},"example":{"aspect_ratio":["string"],"image_url":["string"],"model":["string"],"negative_prompt":["string"],"prompt":["string"],"seconds":[0],"seed":[0],"size":["string"],"style":["string"]}}}}}},"/v1/videos/{video_id}":{"get":{"tags":["Videos"],"parameters":[{"name":"video_id","in":"path","description":"video_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/videos/get-video-generation.md","api_endpoint":"https://api.deepinfra.com/v1/videos/{video_id}"},"summary":"Get video generation (native)","description":"Get Video Generation | Get Video Generation | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/openai/videos/{video_id}":{"get":{"tags":["Videos"],"parameters":[{"name":"video_id","in":"path","description":"video_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/videos/get-video-generation-1.md","api_endpoint":"https://api.deepinfra.com/v1/openai/videos/{video_id}"},"summary":"Get video generation (OpenAI compatible)","description":"Get Video Generation | Get Video Generation | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/videos/{video_id}/content":{"get":{"tags":["Videos"],"parameters":[{"name":"video_id","in":"path","description":"video_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"variant","in":"query","description":"variant (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/videos/get-video-content.md","api_endpoint":"https://api.deepinfra.com/v1/videos/{video_id}/content"},"summary":"Get video content (native)","description":"Get Video Content | Get Video Content | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/openai/videos/{video_id}/content":{"get":{"tags":["Videos"],"parameters":[{"name":"video_id","in":"path","description":"video_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"variant","in":"query","description":"variant (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/videos/get-video-content-1.md","api_endpoint":"https://api.deepinfra.com/v1/openai/videos/{video_id}/content"},"summary":"Get video content (OpenAI compatible)","description":"Get Video Content | Get Video Content | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/logs/query":{"get":{"tags":["Logs And Metrics"],"parameters":[{"name":"deploy_id","in":"query","description":"the deploy id to get the logs from","required":true,"schema":{"type":"string","example":""}},{"name":"from","in":"query","description":"start of period, in fractional seconds since unix epoch (inclusive)","required":false,"schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"how many items to return at most (default 100, in [1, 1000])","required":false,"schema":{"type":"number","example":""}},{"name":"to","in":"query","description":"end of period, in fractional seconds since unix epoch (exclusive)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/logs-&-metrics/logs-query.md","api_endpoint":"https://api.deepinfra.com/v1/logs/query"},"summary":"Logs Query","description":"Logs Query | Query inference logs.\n* Without timestamps (from/to) returns last `limit` messages (in last month).\n* With `from` only, returns first `limit` messages after `from` (inclusive).\n* With `to` only, returns last `limit` messages before `to` (inclusive).\n* With both `from` and `to`, return the first `limit` messages after `from`, but not later than `to`.\n* `from` and `to` should be no more than a month apart. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/deployment_logs/query":{"get":{"tags":["Logs And Metrics"],"parameters":[{"name":"deploy_id","in":"query","description":"the deploy id to get the logs from","required":true,"schema":{"type":"string","example":""}},{"name":"from","in":"query","description":"start of period, in fractional seconds since unix epoch (inclusive)","required":false,"schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"how many items to return at most (default 100, in [1, 1000])","required":false,"schema":{"type":"number","example":""}},{"name":"pod_name","in":"query","description":"the pod name to get the logs from","required":false,"schema":{"type":"string","example":""}},{"name":"to","in":"query","description":"end of period, in fractional seconds since unix epoch (exclusive)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/logs-&-metrics/deployment-logs-query.md","api_endpoint":"https://api.deepinfra.com/v1/deployment_logs/query"},"summary":"Deployment Logs Query","description":"Deployment Logs Query | Query deployment logs.\n* Without timestamps (from/to) returns last `limit` messages (in last month).\n* With `from` only, returns first `limit` messages after `from` (inclusive).\n* With `to` only, returns last `limit` messages before `to` (inclusive).\n* With both `from` and `to`, return the first `limit` messages after `from`, but not later than `to`.\n* `from` and `to` should be no more than a month apart. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/voices":{"get":{"tags":["Text To Speech"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/text-to-speech/get-voices.md","api_endpoint":"https://api.deepinfra.com/v1/voices"},"summary":"Get Voices","description":"Get Voices | Get available voices for a given user | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/text-to-speech/{voice_id}/stream":{"post":{"tags":["Text To Speech"],"parameters":[{"name":"voice_id","in":"path","description":"voice_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"output_format","in":"query","description":"output_format (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/text-to-speech/text-to-speech-stream.md","api_endpoint":"https://api.deepinfra.com/v1/text-to-speech/{voice_id}/stream"},"summary":"Text To Speech Stream","description":"Text To Speech Stream | Text To Speech Stream | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"text":{"type":"string","description":"Text to convert to speech","required":true},"language_code":{"type":"string","description":"ISO 639-1, 2-letter language code"},"model_id":{"type":"string","description":"Model ID to use for the conversion"},"output_format":{"type":"string","description":"Select the desired format for the speech output. Supported formats include mp3, opus, flac, wav, and pcm."}}},"example":{"text":["string"],"language_code":["string"],"model_id":["hexgrad/Kokoro-82M"],"output_format":["wav"]}}}}}},"/v1/text-to-speech/{voice_id}":{"post":{"tags":["Text To Speech"],"parameters":[{"name":"voice_id","in":"path","description":"voice_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"output_format","in":"query","description":"output_format (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/text-to-speech/text-to-speech.md","api_endpoint":"https://api.deepinfra.com/v1/text-to-speech/{voice_id}"},"summary":"Text To Speech","description":"Text To Speech | Text To Speech | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"text":{"type":"string","description":"Text to convert to speech","required":true},"language_code":{"type":"string","description":"ISO 639-1, 2-letter language code"},"model_id":{"type":"string","description":"Model ID to use for the conversion"},"output_format":{"type":"string","description":"Select the desired format for the speech output. Supported formats include mp3, opus, flac, wav, and pcm."}}},"example":{"text":["string"],"language_code":["string"],"model_id":["hexgrad/Kokoro-82M"],"output_format":["wav"]}}}}}},"/v1/voices/{voice_id}":{"get":{"tags":["Text To Speech"],"parameters":[{"name":"voice_id","in":"path","description":"voice_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/text-to-speech/get-voice.md","api_endpoint":"https://api.deepinfra.com/v1/voices/{voice_id}"},"summary":"Get Voice","description":"Get Voice | Get a voice by its id | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"delete":{"tags":["Text To Speech"],"parameters":[{"name":"voice_id","in":"path","description":"voice_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/text-to-speech/delete-voice.md","api_endpoint":"https://api.deepinfra.com/v1/voices/{voice_id}"},"summary":"Delete Voice","description":"Delete Voice | Delete Voice | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/voices/add":{"post":{"tags":["Text To Speech"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/text-to-speech/create-voice.md","api_endpoint":"https://api.deepinfra.com/v1/voices/add"},"summary":"Create Voice","description":"Create Voice | Create a new voice | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"description":{"type":"string","description":"body.description (string field from the documented request schema)","required":true},"files":{"type":"string","format":"binary","description":"Audio sample files to create the voice from (multipart file upload; multiple files accepted). body.files (array field from the documented request schema)","required":true},"name":{"type":"string","description":"body.name (string field from the documented request schema)","required":true}}},"example":{"description":["string"],"files":[["string"]],"name":["string"]}}}}}},"/v1/voices/{voice_id}/edit":{"post":{"tags":["Text To Speech"],"parameters":[{"name":"voice_id","in":"path","description":"voice_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/text-to-speech/update-voice.md","api_endpoint":"https://api.deepinfra.com/v1/voices/{voice_id}/edit"},"summary":"Update Voice","description":"Update Voice | Update Voice | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"description":{"type":"string","description":"body.description (string field from the documented request schema)","required":true},"name":{"type":"string","description":"body.name (string field from the documented request schema)","required":true}}},"example":{"description":["string"],"name":["string"]}}}}}},"/v1/lora/create":{"post":{"tags":["LoRA Adapters"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/lora-adapters/create-lora.md","api_endpoint":"https://api.deepinfra.com/v1/lora/create"},"summary":"Create Lora","description":"Create Lora | Create Lora | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"base_model":{"type":"string","description":"body.base_model (string field from the documented request schema)","required":true},"description":{"type":"string","description":"body.description (string field from the documented request schema)"},"lora_name":{"type":"string","description":"body.lora_name (string field from the documented request schema)","required":true},"private":{"type":"boolean","description":"body.private (boolean field from the documented request schema)","required":true,"enum":[true,false]},"source":{"type":"object","description":"body.source (object field from the documented request schema)","required":true,"properties":{"type":{"type":"string","description":"body.source.type (string field from the documented request schema)","required":true},"civit_url":{"type":"string","description":"body.source.civit_url (string field from the documented request schema)"}}}}},"example":{"base_model":["string"],"description":[""],"lora_name":["string"],"private":[false],"source":[{"type":"civitai","civit_url":"string"}]}}}}}},"/v1/lora/{lora_name}/status":{"get":{"tags":["LoRA Adapters"],"parameters":[{"name":"lora_name","in":"path","description":"lora_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/lora-adapters/get-lora-status.md","api_endpoint":"https://api.deepinfra.com/v1/lora/{lora_name}/status"},"summary":"Get Lora Status","description":"Get Lora Status | Get Lora Status | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/lora/{lora_name}":{"get":{"tags":["LoRA Adapters"],"parameters":[{"name":"lora_name","in":"path","description":"lora_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/lora-adapters/get-lora.md","api_endpoint":"https://api.deepinfra.com/v1/lora/{lora_name}"},"summary":"Get Lora","description":"Get Lora | Get Lora | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"patch":{"tags":["LoRA Adapters"],"parameters":[{"name":"lora_name","in":"path","description":"lora_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/lora-adapters/update-lora.md","api_endpoint":"https://api.deepinfra.com/v1/lora/{lora_name}"},"summary":"Update Lora","description":"Update Lora | Update Lora | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"description":{"type":"string","description":"body.description (string field from the documented request schema)"},"private":{"type":"boolean","description":"body.private (boolean field from the documented request schema)","enum":[true,false]}}},"example":{"description":["string"],"private":[false]}}}}},"delete":{"tags":["LoRA Adapters"],"parameters":[{"name":"lora_name","in":"path","description":"lora_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/lora-adapters/delete-lora.md","api_endpoint":"https://api.deepinfra.com/v1/lora/{lora_name}"},"summary":"Delete Lora","description":"Delete Lora | Delete Lora | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/model/{model_name}/loras":{"get":{"tags":["LoRA Adapters"],"parameters":[{"name":"model_name","in":"path","description":"model_name (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/lora-adapters/get-model-loras.md","api_endpoint":"https://api.deepinfra.com/v1/model/{model_name}/loras"},"summary":"Get Model Loras","description":"Get Model Loras | Get Model Loras | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/user/loras":{"get":{"tags":["LoRA Adapters"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/lora-adapters/get-user-loras.md","api_endpoint":"https://api.deepinfra.com/v1/user/loras"},"summary":"Get User Loras","description":"Get User Loras | Get User Loras | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/containers/params":{"get":{"tags":["GPU Rentals"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/gpu-rentals/container-rentals-get-params.md","api_endpoint":"https://api.deepinfra.com/v1/containers/params"},"summary":"Container Rentals Get Params","description":"Container Rentals Get Params | Container Rentals Get Params | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/containers/gpu_availability":{"get":{"tags":["GPU Rentals"],"parameters":[{"name":"base_model","in":"query","description":"base_model (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"source","in":"query","description":"source (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/gpu-rentals/rent-gpu-availability.md","api_endpoint":"https://api.deepinfra.com/v1/containers/gpu_availability"},"summary":"Rent Gpu Availability","description":"Rent Gpu Availability | Rent Gpu Availability | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/containers":{"post":{"tags":["GPU Rentals"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/gpu-rentals/container-rentals-start.md","api_endpoint":"https://api.deepinfra.com/v1/containers"},"summary":"Container Rentals Start","description":"Container Rentals Start | Container Rentals Start | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"cloud_init_user_data":{"type":"string","description":"Cloud Init User Data","required":true},"container_image":{"type":"string","description":"Container Image","required":true},"gpu_config":{"type":"string","description":"GPU config","required":true},"name":{"type":"string","description":"Container Name","required":true}}},"example":{"cloud_init_user_data":["string"],"container_image":["string"],"gpu_config":["string"],"name":["string"]}}}}},"get":{"tags":["GPU Rentals"],"parameters":[{"name":"state","in":"query","description":"whether to return active or inactive containers","required":false,"schema":{"type":"string","example":"","items":{"type":"string","enum":["active","inactive"]}}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/gpu-rentals/container-rentals-list.md","api_endpoint":"https://api.deepinfra.com/v1/containers"},"summary":"Container Rentals List","description":"Container Rentals List | Container Rentals List | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/containers/{container_id}":{"get":{"tags":["GPU Rentals"],"parameters":[{"name":"container_id","in":"path","description":"container_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/gpu-rentals/container-rentals-get.md","api_endpoint":"https://api.deepinfra.com/v1/containers/{container_id}"},"summary":"Container Rentals Get","description":"Container Rentals Get | Container Rentals Get | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"patch":{"tags":["GPU Rentals"],"parameters":[{"name":"container_id","in":"path","description":"container_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/gpu-rentals/container-rentals-update.md","api_endpoint":"https://api.deepinfra.com/v1/containers/{container_id}"},"summary":"Container Rentals Update","description":"Container Rentals Update | Container Rentals Update | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"Container Name","required":true}}},"example":{"name":["string"]}}}}},"delete":{"tags":["GPU Rentals"],"parameters":[{"name":"container_id","in":"path","description":"container_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/gpu-rentals/container-rentals-delete.md","api_endpoint":"https://api.deepinfra.com/v1/containers/{container_id}"},"summary":"Container Rentals Delete","description":"Container Rentals Delete | Container Rentals Delete | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/request-costs":{"post":{"tags":["Logs And Metrics"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/logs-&-metrics/get-request-costs.md","api_endpoint":"https://api.deepinfra.com/v1/request-costs"},"summary":"Get Request Costs","description":"Get Request Costs | Get Request Costs | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"requestIds":{"type":"array","description":"body.requestIds (array field from the documented request schema)","required":true,"items":{"type":"string"}}}},"example":{"requestIds":[["string"]]}}}}}},"/v2/hardware":{"get":{"tags":["Models"],"parameters":[{"name":"model","in":"query","description":"Model name (NVIDIA NemoClaw format)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/models/get-hardware.md","api_endpoint":"https://api.deepinfra.com/v2/hardware"},"summary":"Get Hardware","description":"Get Hardware | Get Hardware | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/completions":{"post":{"tags":["Text Completions"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-deepinfra-source","in":"query","description":"x-deepinfra-source (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/text-completions/openai-completions.md","api_endpoint":"https://api.deepinfra.com/v1/completions"},"summary":"Openai Completions","description":"Openai Completions | Openai Completions | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"data":{"type":"object","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":{"type":"array","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."},"video":{"type":"array","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."}}},"echo":{"type":"boolean","description":"return prompt as part of the respons","enum":[true,false]},"fail_fast":{"type":"boolean","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.","enum":[true,false]},"frequency_penalty":{"type":"number","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."},"ignore_eos":{"type":"boolean","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.","enum":[true,false]},"logprobs":{"type":"number","description":"return top tokens and their log-probabilities"},"max_tokens":{"type":"number","description":"The maximum number of tokens to generate in the completion.\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."},"min_p":{"type":"number","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."},"model":{"type":"string","description":"model name","required":true},"models":{"type":"array","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.","items":{"type":"string"}},"n":{"type":"number","description":"number of sequences to return"},"presence_penalty":{"type":"number","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."},"prompt":{"type":"string","description":"input prompt - a single string is currently supported","required":true},"prompt_cache_key":{"type":"string","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."},"prompt_cache_options":{"type":"object","description":"Prompt cache options for this request's prefix, e.g. {\"ttl\": \"1h\"}.","properties":{"mode":{"type":"string","description":"Prompt caching mode; 'explicit' requests explicit caching."},"ttl":{"type":"string","description":"Requested cache retention for this request's prefix."}}},"repetition_penalty":{"type":"number","description":"Alternative penalty for repetition, but multiplicative instead of additive (> 1 penalize, < 1 encourage)"},"response_format":{"type":"object","description":"The format of the response. Currently, only json is supported.","properties":{"type":{"type":"string","description":"body.response_format.type (string field from the documented request schema)"}}},"return_tokens_as_token_ids":{"type":"boolean","description":"return tokens as token ids","enum":[true,false]},"seed":{"type":"number","description":"Seed for random number generator. If not provided, a random seed is used. Determinism is not guaranteed."},"service_tier":{"type":"string","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'."},"stop":{"type":"string","description":"up to 16 sequences where the API will stop generating further tokens"},"stop_token_ids":{"type":"array","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.","items":{"type":"number"}},"stream":{"type":"boolean","description":"whether to stream the output via SSE or return the full response","enum":[true,false]},"stream_options":{"type":"object","description":"streaming options","properties":{"continuous_usage_stats":{"type":"boolean","description":"whether to include usage stats continuously with each streaming event","enum":[true,false]},"include_usage":{"type":"boolean","description":"whether to include usage data","enum":[true,false]}}},"temperature":{"type":"number","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"},"top_k":{"type":"number","description":"Sample from the best k (number of) tokens. 0 means off"},"top_p":{"type":"number","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."},"user":{"type":"string","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."}}},"example":{"data":[{"image":["string"],"video":["string"]}],"echo":[false],"fail_fast":[false],"frequency_penalty":[0],"ignore_eos":[false],"logprobs":[0],"max_tokens":[0],"min_p":[0],"model":["string"],"models":[["string"]],"n":[1],"presence_penalty":[0],"prompt":["string"],"prompt_cache_key":["string"],"prompt_cache_options":[{"mode":"explicit","ttl":"5m"}],"repetition_penalty":[1],"response_format":[{"type":"text"}],"return_tokens_as_token_ids":[false],"seed":[0],"service_tier":["default"],"stop":["string"],"stop_token_ids":[[0]],"stream":[false],"stream_options":[{"continuous_usage_stats":false,"include_usage":true}],"temperature":[1],"top_k":[0],"top_p":[1],"user":["string"]}}}}}},"/v1/chat/completions":{"post":{"tags":["Chat Completions"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-deepinfra-source","in":"query","description":"x-deepinfra-source (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/chat-completions/openai-chat-completions.md","api_endpoint":"https://api.deepinfra.com/v1/chat/completions"},"summary":"Openai Chat Completions","description":"Openai Chat Completions | Openai Chat Completions | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"chat_template_kwargs":{"type":"object","description":"Chat template kwargs.","properties":{}},"continue_final_message":{"type":"boolean","description":"If set, the final assistant message is used as a prefix for the model to continue generating from, rather than starting a new turn. Only applicable when the last message in the conversation is an assistant message.","enum":[true,false]},"fail_fast":{"type":"boolean","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.","enum":[true,false]},"frequency_penalty":{"type":"number","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."},"ignore_eos":{"type":"boolean","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.","enum":[true,false]},"logprobs":{"type":"boolean","description":"Whether to return log probabilities of the output tokens or not.If true, returns the log probabilities of each output token returned in the `content` of `message`.","enum":[true,false]},"max_tokens":{"type":"number","description":"The maximum number of tokens to generate in the chat completion.\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."},"messages":{"type":"array","description":"conversation messages: (user,assistant,tool)*,user including one system message anywhere","required":true,"items":{"type":"object","properties":{"cache_control":{"type":"object","description":"Cache control for prompt caching"},"content":{"type":"string","description":"the message content","required":true},"role":{"type":"string","description":"the role of the author of this message"},"tool_call_id":{"type":"string","description":"body.messages.tool_call_id (string field from the documented request schema)","required":true}}}},"min_p":{"type":"number","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."},"model":{"type":"string","description":"model name","required":true},"models":{"type":"array","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.","items":{"type":"string"}},"n":{"type":"number","description":"number of sequences to return"},"presence_penalty":{"type":"number","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."},"prompt_cache_key":{"type":"string","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."},"prompt_cache_options":{"type":"object","description":"Prompt cache options for this request's prefix, e.g. {\"ttl\": \"1h\"}.","properties":{"mode":{"type":"string","description":"Prompt caching mode; 'explicit' requests explicit caching."},"ttl":{"type":"string","description":"Requested cache retention for this request's prefix."}}},"reasoning":{"type":"object","description":"Reasoning configuration.","properties":{"effort":{"type":"string","description":"Constrains effort on reasoning for reasoning models. Set to none to disable reasoning entirely if the model supports it."},"enabled":{"type":"boolean","description":"Enable or disable reasoning with default parameters.","enum":[true,false]}}},"reasoning_effort":{"type":"string","description":"Constrains effort on reasoning for reasoning models. Currently supported values are none, minimal, low, medium, high, xhigh, and max. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Setting to none disables reasoning entirely if the model supports."},"repetition_penalty":{"type":"number","description":"Alternative penalty for repetition, but multiplicative instead of additive (> 1 penalize, < 1 encourage)"},"response_format":{"type":"object","description":"The format of the response. Currently, only json is supported.","properties":{"type":{"type":"string","description":"body.response_format.type (string field from the documented request schema)"}}},"seed":{"type":"number","description":"Seed for random number generator. If not provided, a random seed is used. Determinism is not guaranteed."},"service_tier":{"type":"string","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'."},"stop":{"type":"string","description":"up to 16 sequences where the API will stop generating further tokens"},"stop_token_ids":{"type":"array","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.","items":{"type":"number"}},"stream":{"type":"boolean","description":"whether to stream the output via SSE or return the full response","enum":[true,false]},"stream_options":{"type":"object","description":"streaming options","properties":{"continuous_usage_stats":{"type":"boolean","description":"whether to include usage stats continuously with each streaming event","enum":[true,false]},"include_usage":{"type":"boolean","description":"whether to include usage data","enum":[true,false]}}},"temperature":{"type":"number","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"},"tool_choice":{"type":"string","description":"Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. required means the model must call a function. defined tool means the model must call that specific tool. none is the default when no functions are present. auto is the default if functions are present."},"tools":{"type":"array","description":"A list of tools the model may call. Currently, only functions are supported as a tool.","items":{"type":"object","properties":{"type":{"type":"string","description":"body.tools.type (string field from the documented request schema)"},"cache_control":{"type":"object","description":"Cache control for prompt caching"},"function":{"type":"object","description":"body.tools.function (object field from the documented request schema)","required":true}}}},"top_k":{"type":"number","description":"Sample from the best k (number of) tokens. 0 means off"},"top_p":{"type":"number","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."},"user":{"type":"string","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."}}},"example":{"chat_template_kwargs":[{}],"continue_final_message":[false],"fail_fast":[false],"frequency_penalty":[0],"ignore_eos":[false],"logprobs":[false],"max_tokens":[0],"messages":[[{"cache_control":{},"content":"string","role":"tool","tool_call_id":"string"}]],"min_p":[0],"model":["string"],"models":[["string"]],"n":[1],"presence_penalty":[0],"prompt_cache_key":["string"],"prompt_cache_options":[{"mode":"explicit","ttl":"5m"}],"reasoning":[{"effort":"none","enabled":false}],"reasoning_effort":["none"],"repetition_penalty":[1],"response_format":[{"type":"text"}],"seed":[0],"service_tier":["default"],"stop":["string"],"stop_token_ids":[[0]],"stream":[false],"stream_options":[{"continuous_usage_stats":false,"include_usage":true}],"temperature":[1],"tool_choice":["none"],"tools":[[{"type":"function","cache_control":{},"function":{"description":"string","name":"string","parameters":{}}}]],"top_k":[0],"top_p":[1],"user":["string"]}}}}}},"/v1/embeddings":{"post":{"tags":["Embeddings"],"parameters":[{"name":"user-agent","in":"query","description":"user-agent (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-deepinfra-source","in":"query","description":"x-deepinfra-source (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/embeddings/openai-embeddings.md","api_endpoint":"https://api.deepinfra.com/v1/embeddings"},"summary":"Openai Embeddings","description":"Openai Embeddings | Openai Embeddings | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"dimensions":{"type":"number","description":"The number of dimensions in the embedding. If not provided, the model's default will be used.If provided bigger than model's default, the embedding will be padded with zeros."},"encoding_format":{"type":"string","description":"format used when encoding"},"fail_fast":{"type":"boolean","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.","enum":[true,false]},"input":{"type":"string","description":"text or multimodal content to embed. Each item is either a string, or a list of content parts ({\"type\":\"text\"} / {\"type\":\"image_url\"}) for multimodal embedding models such as nvidia/llama-nemotron-embed-vl-1b-v2.","required":true},"input_type":{"type":"string","description":"Role hint for asymmetric retrieval models: 'query' embeds a search query, 'passage'/'document' embeds a document. Controls the query:/passage: prefix on VL embedding models; ignored by symmetric models."},"model":{"type":"string","description":"model name","required":true},"service_tier":{"type":"string","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'."}}},"example":{"dimensions":[0],"encoding_format":["float"],"fail_fast":[false],"input":["string"],"input_type":["query"],"model":["string"],"service_tier":["default"]}}}}}},"/anthropic/v1/messages":{"post":{"tags":["Chat Completions"],"parameters":[{"name":"anthropic-beta","in":"query","description":"anthropic-beta (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"anthropic-version","in":"query","description":"anthropic-version (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-deepinfra-service-tier","in":"query","description":"x-deepinfra-service-tier (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-deepinfra-source","in":"query","description":"x-deepinfra-source (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/chat-completions/anthropic-messages.md","api_endpoint":"https://api.deepinfra.com/anthropic/v1/messages"},"summary":"Anthropic Messages","description":"Anthropic Messages | Anthropic Messages | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"fail_fast":{"type":"boolean","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.","enum":[true,false]},"max_tokens":{"type":"number","description":"body.max_tokens (number field from the documented request schema)"},"messages":{"type":"array","description":"body.messages (array field from the documented request schema)","required":true,"items":{"type":"object","properties":{}}},"metadata":{"type":"object","description":"body.metadata (object field from the documented request schema)","properties":{}},"model":{"type":"string","description":"body.model (string field from the documented request schema)","required":true},"models":{"type":"array","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.","items":{"type":"string"}},"prompt_cache_key":{"type":"string","description":"body.prompt_cache_key (string field from the documented request schema)"},"service_tier":{"type":"string","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'."},"stop_sequences":{"type":"array","description":"body.stop_sequences (array field from the documented request schema)","items":{"type":"string"}},"stream":{"type":"boolean","description":"body.stream (boolean field from the documented request schema)","enum":[true,false]},"system":{"type":"string","description":"body.system (string field from the documented request schema)"},"temperature":{"type":"number","description":"body.temperature (number field from the documented request schema)"},"thinking":{"type":"object","description":"Anthropic `thinking` config: {type: enabled|disabled|adaptive, budget_tokens}.\n`enabled` is a legacy pre-spec field this endpoint used to accept; it only\napplies when `type` is absent.","properties":{"type":{"type":"string","description":"body.thinking.type (string field from the documented request schema)"},"budget_tokens":{"type":"number","description":"body.thinking.budget_tokens (number field from the documented request schema)"},"enabled":{"type":"boolean","description":"body.thinking.enabled (boolean field from the documented request schema)","enum":[true,false]}}},"tool_choice":{"type":"object","description":"body.tool_choice (object field from the documented request schema)","properties":{}},"tools":{"type":"array","description":"body.tools (array field from the documented request schema)","items":{"type":"object","properties":{"description":{"type":"string","description":"body.tools.description (string field from the documented request schema)"},"input_schema":{"type":"object","description":"body.tools.input_schema (object field from the documented request schema)","required":true},"name":{"type":"string","description":"body.tools.name (string field from the documented request schema)","required":true}}}},"top_k":{"type":"number","description":"body.top_k (number field from the documented request schema)"},"top_p":{"type":"number","description":"body.top_p (number field from the documented request schema)"}}},"example":{"fail_fast":[false],"max_tokens":[0],"messages":[[{}]],"metadata":[{}],"model":["string"],"models":[["string"]],"prompt_cache_key":["string"],"service_tier":["default"],"stop_sequences":[["string"]],"stream":[false],"system":["string"],"temperature":[1],"thinking":[{"type":"enabled","budget_tokens":0,"enabled":false}],"tool_choice":[{}],"tools":[[{"description":"string","input_schema":{},"name":"string"}]],"top_k":[0],"top_p":[0]}}}}}},"/anthropic/v1/messages/count_tokens":{"post":{"tags":["Chat Completions"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/chat-completions/anthropic-messages-count-tokens.md","api_endpoint":"https://api.deepinfra.com/anthropic/v1/messages/count_tokens"},"summary":"Anthropic Messages Count Tokens","description":"Anthropic Messages Count Tokens | Anthropic Messages Count Tokens | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"messages":{"type":"array","description":"body.messages (array field from the documented request schema)","required":true,"items":{"type":"object","properties":{}}},"model":{"type":"string","description":"body.model (string field from the documented request schema)","required":true},"system":{"type":"string","description":"body.system (string field from the documented request schema)"},"thinking":{"type":"object","description":"Anthropic `thinking` config: {type: enabled|disabled|adaptive, budget_tokens}.\n`enabled` is a legacy pre-spec field this endpoint used to accept; it only\napplies when `type` is absent.","properties":{"type":{"type":"string","description":"body.thinking.type (string field from the documented request schema)"},"budget_tokens":{"type":"number","description":"body.thinking.budget_tokens (number field from the documented request schema)"},"enabled":{"type":"boolean","description":"body.thinking.enabled (boolean field from the documented request schema)","enum":[true,false]}}},"tool_choice":{"type":"object","description":"body.tool_choice (object field from the documented request schema)","properties":{}},"tools":{"type":"array","description":"body.tools (array field from the documented request schema)","items":{"type":"object","properties":{"description":{"type":"string","description":"body.tools.description (string field from the documented request schema)"},"input_schema":{"type":"object","description":"body.tools.input_schema (object field from the documented request schema)","required":true},"name":{"type":"string","description":"body.tools.name (string field from the documented request schema)","required":true}}}}}},"example":{"messages":[[{}]],"model":["string"],"system":["string"],"thinking":[{"type":"enabled","budget_tokens":0,"enabled":false}],"tool_choice":[{}],"tools":[[{"description":"string","input_schema":{},"name":"string"}]]}}}}}},"/v1/api-tokens":{"get":{"tags":["Authentication"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/get-api-tokens.md","api_endpoint":"https://api.deepinfra.com/v1/api-tokens"},"summary":"Get Api Tokens","description":"Get Api Tokens | Get Api Tokens | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"post":{"tags":["Authentication"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/create-api-token.md","api_endpoint":"https://api.deepinfra.com/v1/api-tokens"},"summary":"Create Api Token","description":"Create Api Token | Create Api Token | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"body.name (string field from the documented request schema)","required":true}}},"example":{"name":["string"]}}}}}},"/v1/api-tokens/{api_token}":{"get":{"tags":["Authentication"],"parameters":[{"name":"api_token","in":"path","description":"api_token (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/get-api-token.md","api_endpoint":"https://api.deepinfra.com/v1/api-tokens/{api_token}"},"summary":"Get Api Token","description":"Get Api Token | Get Api Token | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"delete":{"tags":["Authentication"],"parameters":[{"name":"api_token","in":"path","description":"api_token (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/delete-api-token.md","api_endpoint":"https://api.deepinfra.com/v1/api-tokens/{api_token}"},"summary":"Delete Api Token","description":"Delete Api Token | Delete Api Token | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/api-tokens/{api_token}/vercel_export":{"post":{"tags":["Authentication"],"parameters":[{"name":"api_token","in":"path","description":"api_token (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/export-api-token-to-vercel.md","api_endpoint":"https://api.deepinfra.com/v1/api-tokens/{api_token}/vercel_export"},"summary":"Export Api Token To Vercel","description":"Export Api Token To Vercel | Export Api Token To Vercel | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"env_development":{"type":"boolean","description":"body.env_development (boolean field from the documented request schema)","required":true,"enum":[true,false]},"env_preview":{"type":"boolean","description":"body.env_preview (boolean field from the documented request schema)","required":true,"enum":[true,false]},"env_production":{"type":"boolean","description":"body.env_production (boolean field from the documented request schema)","required":true,"enum":[true,false]},"is_sensitive":{"type":"boolean","description":"body.is_sensitive (boolean field from the documented request schema)","required":true,"enum":[true,false]},"project_id_or_name":{"type":"string","description":"body.project_id_or_name (string field from the documented request schema)","required":true}}},"example":{"env_development":[false],"env_preview":[false],"env_production":[false],"is_sensitive":[false],"project_id_or_name":["string"]}}}}}},"/v1/scoped-jwt":{"post":{"tags":["Authentication"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/create-scoped-jwt.md","api_endpoint":"https://api.deepinfra.com/v1/scoped-jwt"},"summary":"Create Scoped Jwt","description":"Create Scoped Jwt | Create Scoped Jwt | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"api_key_name":{"type":"string","description":"body.api_key_name (string field from the documented request schema)","required":true},"expires_at":{"type":"number","description":"unix timestamp when the token should expire"},"expires_delta":{"type":"number","description":"how many seconds in the future should the token be valid for"},"models":{"type":"array","description":"allow inference only to the specified model names","items":{"type":"string"}},"spending_limit":{"type":"number","description":"only allow spending that much USD until the token becomes invalid"}}},"example":{"api_key_name":["string"],"expires_at":[0],"expires_delta":[0],"models":[["string"]],"spending_limit":[0]}}}}},"get":{"tags":["Authentication"],"parameters":[{"name":"jwtoken","in":"query","description":"jwtoken (query parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/inspect-scoped-jwt.md","api_endpoint":"https://api.deepinfra.com/v1/scoped-jwt"},"summary":"Inspect Scoped Jwt","description":"Inspect Scoped Jwt | Inspect Scoped Jwt | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/ssh_keys":{"get":{"tags":["Authentication"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/get-ssh-keys.md","api_endpoint":"https://api.deepinfra.com/v1/ssh_keys"},"summary":"Get Ssh Keys","description":"Get Ssh Keys | Get Ssh Keys | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"post":{"tags":["Authentication"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/create-ssh-key.md","api_endpoint":"https://api.deepinfra.com/v1/ssh_keys"},"summary":"Create Ssh Key","description":"Create Ssh Key | Create Ssh Key | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"key":{"type":"string","description":"SSH Key content","required":true},"name":{"type":"string","description":"SSH Key name","required":true}}},"example":{"key":["string"],"name":["string"]}}}}}},"/v1/ssh_keys/{ssh_key_id}":{"delete":{"tags":["Authentication"],"parameters":[{"name":"ssh_key_id","in":"path","description":"ssh_key_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/authentication/delete-ssh-key.md","api_endpoint":"https://api.deepinfra.com/v1/ssh_keys/{ssh_key_id}"},"summary":"Delete Ssh Key","description":"Delete Ssh Key | Delete Ssh Key | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/files":{"get":{"tags":["Files And Batches"],"parameters":[{"name":"after","in":"query","description":"after (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"limit (query parameter from the official API reference)","required":false,"schema":{"type":"number","example":""}},{"name":"order","in":"query","description":"order (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"purpose","in":"query","description":"purpose (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/files-&-batches/list-files.md","api_endpoint":"https://api.deepinfra.com/v1/files"},"summary":"List Files","description":"List Files | List Files | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"post":{"tags":["Files And Batches"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/files-&-batches/openai-files.md","api_endpoint":"https://api.deepinfra.com/v1/files"},"summary":"Openai Files","description":"Openai Files | Openai Files | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"file":{"type":"string","format":"binary","description":"File(s) to upload (multipart file upload; multiple files accepted). body.file (array field from the documented request schema)","required":true},"purpose":{"type":"string","description":"body.purpose (string field from the documented request schema)","required":true}}},"example":{"file":[["string"]],"purpose":["string"]}}}}}},"/v1/files/{file_id}":{"get":{"tags":["Files And Batches"],"parameters":[{"name":"file_id","in":"path","description":"file_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/files-&-batches/get-file.md","api_endpoint":"https://api.deepinfra.com/v1/files/{file_id}"},"summary":"Get File","description":"Get File | Get File | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"delete":{"tags":["Files And Batches"],"parameters":[{"name":"file_id","in":"path","description":"file_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/files-&-batches/delete-file.md","api_endpoint":"https://api.deepinfra.com/v1/files/{file_id}"},"summary":"Delete File","description":"Delete File | Delete File | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/files/{file_id}/content":{"get":{"tags":["Files And Batches"],"parameters":[{"name":"file_id","in":"path","description":"file_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/files-&-batches/get-file-content.md","api_endpoint":"https://api.deepinfra.com/v1/files/{file_id}/content"},"summary":"Get File Content","description":"Get File Content | Get File Content | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/images/{image_id}":{"get":{"tags":["Image Generation"],"parameters":[{"name":"image_id","in":"path","description":"image_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/image-generation/get-generated-image.md","api_endpoint":"https://api.deepinfra.com/v1/images/{image_id}"},"summary":"Get Generated Image","description":"Get Generated Image | Serve a `response_format=url` image; unauthenticated, 404 once expired. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/batches":{"get":{"tags":["Files And Batches"],"parameters":[{"name":"after","in":"query","description":"after (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"limit (query parameter from the official API reference)","required":false,"schema":{"type":"number","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/files-&-batches/retrieve-openai-batches.md","api_endpoint":"https://api.deepinfra.com/v1/batches"},"summary":"Retrieve Openai Batches","description":"Retrieve Openai Batches | Retrieve Openai Batches | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"post":{"tags":["Files And Batches"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/files-&-batches/create-openai-batch.md","api_endpoint":"https://api.deepinfra.com/v1/batches"},"summary":"Create Openai Batch","description":"Create Openai Batch | Create Openai Batch | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"completion_window":{"type":"string","description":"The time frame within which the batch should be processed. Currently only 24h is supported.","required":true},"endpoint":{"type":"string","description":"The endpoint to be used for all requests in the batch. Currently /v1/chat/completions, /v1/completions, /v1/embeddings are supported.","required":true},"input_file_id":{"type":"string","description":"The ID of an uploaded file that contains requests for the new batch.","required":true},"metadata":{"type":"object","description":"Optional metadata to be stored with the batch.","properties":{}},"output_expires_after":{"type":"object","description":"The expiration policy for the output and/or error file generated for the batch.","properties":{"anchor":{"type":"string","description":"The anchor timestamp after which the expiration policy applies. Currently only created_at is supported."},"seconds":{"type":"number","description":"The number of seconds after the anchor time that the output and error files will expire. Must be between 3600 (1 hour) and 2592000 (30 days)."}}}}},"example":{"completion_window":["string"],"endpoint":["/v1/chat/completions"],"input_file_id":["string"],"metadata":[{}],"output_expires_after":[{"anchor":"created_at","seconds":2592000}]}}}}}},"/v1/batches/{batch_id}":{"get":{"tags":["Files And Batches"],"parameters":[{"name":"batch_id","in":"path","description":"batch_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/files-&-batches/retrieve-openai-batch.md","api_endpoint":"https://api.deepinfra.com/v1/batches/{batch_id}"},"summary":"Retrieve Openai Batch","description":"Retrieve Openai Batch | Retrieve Openai Batch | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/batches/{batch_id}/cancel":{"post":{"tags":["Files And Batches"],"parameters":[{"name":"batch_id","in":"path","description":"batch_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/files-&-batches/cancel-openai-batch.md","api_endpoint":"https://api.deepinfra.com/v1/batches/{batch_id}/cancel"},"summary":"Cancel Openai Batch","description":"Cancel Openai Batch | Cancel Openai Batch | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/deploy/{deploy_id}/rebalance":{"post":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-rebalance.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}/rebalance"},"summary":"Deploy Rebalance","description":"Deploy Rebalance | Start a GPU pool rebalance: move GPUs from this deployment onto another\ndeployment you own, one instance at a time and without downtime. Moving all\ninstances stops this deployment; start it again later to resume it. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"count":{"type":"number","description":"Number of target instances to create.","required":true},"dry_run":{"type":"boolean","description":"Validate and preview without moving anything.","enum":[true,false]},"target_deploy_id":{"type":"string","description":"Deployment to grow using GPUs freed from this one.","required":true}}},"example":{"count":[0],"dry_run":[false],"target_deploy_id":["string"]}}}}},"get":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-rebalance-status.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}/rebalance"},"summary":"Deploy Rebalance Status","description":"Deploy Rebalance Status | Status of GPU pool rebalances touching this deployment. A just-started\nrebalance can take a moment to appear. A finished or cancelled rebalance\nleaves both deployments' min/max instances fixed at the final counts; edit\nthem to resume autoscaling. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/deploy/{deploy_id}/rebalance/cancel":{"post":{"tags":["Dedicated Models"],"parameters":[{"name":"deploy_id","in":"path","description":"deploy_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/dedicated-models/deploy-rebalance-cancel.md","api_endpoint":"https://api.deepinfra.com/deploy/{deploy_id}/rebalance/cancel"},"summary":"Deploy Rebalance Cancel","description":"Deploy Rebalance Cancel | Stop an in-flight GPU pool rebalance; instances already moved stay, and\nboth deployments keep min/max instances fixed at their current counts. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"replace_id":{"type":"string","description":"Rebalance to cancel; defaults to the active one."}}},"example":{"replace_id":["string"]}}}}}},"/v1/agents":{"post":{"tags":["Agents"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/create-instance.md","api_endpoint":"https://api.deepinfra.com/v1/agents"},"summary":"Create Instance","description":"Create Instance | Create Instance | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"agent_type_id":{"type":"string","description":"Agent type identifier"},"name":{"type":"string","description":"Instance name","required":true},"plan_id":{"type":"string","description":"Plan identifier"}}},"example":{"agent_type_id":["openclaw"],"name":["string"],"plan_id":["standard"]}}}}},"get":{"tags":["Agents"],"parameters":[{"name":"state","in":"query","description":"Which instances to return: active, inactive, or all (both)","required":false,"schema":{"type":"string","example":"","items":{"type":"string","enum":["active","inactive","all"]}}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/list-instances.md","api_endpoint":"https://api.deepinfra.com/v1/agents"},"summary":"List Instances","description":"List Instances | List Instances | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/agents/catalog":{"get":{"tags":["Agents"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/get-catalog.md","api_endpoint":"https://api.deepinfra.com/v1/agents/catalog"},"summary":"Get Catalog","description":"Get Catalog | Get Catalog | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/agents/{instance_id}":{"get":{"tags":["Agents"],"parameters":[{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/get-instance.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}"},"summary":"Get Instance","description":"Get Instance | Get Instance | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"patch":{"tags":["Agents"],"parameters":[{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/rename-instance.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}"},"summary":"Rename Instance","description":"Rename Instance | Rename Instance | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"Instance name","required":true}}},"example":{"name":["string"]}}}}},"delete":{"tags":["Agents"],"parameters":[{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/delete-instance.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}"},"summary":"Delete Instance","description":"Delete Instance | Delete Instance | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/agents/{instance_id}/launch_token":{"post":{"tags":["Agents"],"parameters":[{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/create-dashboard-launch-token.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}/launch_token"},"summary":"Create Dashboard Launch Token","description":"Create Dashboard Launch Token | Mint a single-use launch URL for the dashboard.\nCalled by the launcher page right when readyz flips ready. The launch URL\nis used as a top-level navigation; /launch then sets the oc_auth cookie\nand 302s into the proxied dashboard.\nThe user's bearer token is stashed in Redis under the token's jti and\nretrieved (atomic GETDEL) on /launch redeem — this keeps the bearer out of\nthe URL and out of any signed payload while preserving the existing proxy\nauth flow (oc_auth cookie value = bearer token).\nRefuses instances whose agent_type has has_dashboard=False (e.g. hermes). | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/agents/{instance_id}/stop":{"post":{"tags":["Agents"],"parameters":[{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/stop-instance.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}/stop"},"summary":"Stop Instance","description":"Stop Instance | Stop Instance | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/agents/{instance_id}/start":{"post":{"tags":["Agents"],"parameters":[{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/start-instance.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}/start"},"summary":"Start Instance","description":"Start Instance | Start Instance | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/agents/{instance_id}/update":{"post":{"tags":["Agents"],"parameters":[{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/update-instance-version.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}/update"},"summary":"Update Instance Version","description":"Update Instance Version | Update Instance Version | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/agents/{instance_id}/backups":{"get":{"tags":["Agents"],"parameters":[{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/list-backups.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}/backups"},"summary":"List Backups","description":"List Backups | List Backups | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/agents/{instance_id}/backup":{"post":{"tags":["Agents"],"parameters":[{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/create-backup.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}/backup"},"summary":"Create Backup","description":"Create Backup | Create Backup | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/agents/{instance_id}/backups/{backup_id}/restore":{"post":{"tags":["Agents"],"parameters":[{"name":"backup_id","in":"path","description":"backup_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"instance_id","in":"path","description":"instance_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/agents/restore-backup.md","api_endpoint":"https://api.deepinfra.com/v1/agents/{instance_id}/backups/{backup_id}/restore"},"summary":"Restore Backup","description":"Restore Backup | Restore Backup | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/sandboxes":{"post":{"tags":["Sandboxes"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/create-sandbox.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes"},"summary":"Create Sandbox","description":"Create Sandbox | Create a new sandbox instance with the given plan and settings. The sandbox starts in CREATING state and transitions to RUNNING asynchronously. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"plan":{"type":"string","description":"body.plan (string field from the documented request schema)"},"tags":{"type":"object","description":"body.tags (object field from the documented request schema)","properties":{}},"timeout_seconds":{"type":"number","description":"body.timeout_seconds (number field from the documented request schema)"}}},"example":{"plan":[""],"tags":[{}],"timeout_seconds":[0]}}}}},"get":{"tags":["Sandboxes"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/list-sandboxes.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes"},"summary":"List Sandboxes","description":"List Sandboxes | List Sandboxes | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/sandboxes/catalog":{"get":{"tags":["Sandboxes"],"parameters":[{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/list-sandbox-plans.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes/catalog"},"summary":"List Sandbox Plans","description":"List Sandbox Plans | Returns all available sandbox plans with their resource specs and pricing. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/v1/sandboxes/{sandbox_id}":{"get":{"tags":["Sandboxes"],"parameters":[{"name":"sandbox_id","in":"path","description":"sandbox_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/get-sandbox.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes/{sandbox_id}"},"summary":"Get Sandbox","description":"Get Sandbox | Get Sandbox | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"delete":{"tags":["Sandboxes"],"parameters":[{"name":"sandbox_id","in":"path","description":"sandbox_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/delete-sandbox.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes/{sandbox_id}"},"summary":"Delete Sandbox","description":"Delete Sandbox | Delete Sandbox | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/sandboxes/{sandbox_id}/stop":{"post":{"tags":["Sandboxes"],"parameters":[{"name":"sandbox_id","in":"path","description":"sandbox_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/stop-sandbox.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes/{sandbox_id}/stop"},"summary":"Stop Sandbox","description":"Stop Sandbox | Stop Sandbox | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/sandboxes/{sandbox_id}/start":{"post":{"tags":["Sandboxes"],"parameters":[{"name":"sandbox_id","in":"path","description":"sandbox_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/start-sandbox.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes/{sandbox_id}/start"},"summary":"Start Sandbox","description":"Start Sandbox | Start Sandbox | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/v1/sandboxes/{sandbox_id}/exec":{"post":{"tags":["Sandboxes"],"parameters":[{"name":"sandbox_id","in":"path","description":"sandbox_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/exec-command.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes/{sandbox_id}/exec"},"summary":"Exec Command","description":"Exec Command | Run a command in the sandbox. Streams NDJSON lines (application/x-ndjson): {\"stdout\": ...}/{\"stderr\": ...} chunks followed by exactly one terminal {\"returncode\": N} or {\"error\": msg} line. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"command":{"type":"array","description":"body.command (array field from the documented request schema)","required":true,"items":{"type":"string"}},"timeout_seconds":{"type":"number","description":"Seconds to allow the command to run before it's killed. 0 uses the server default (60s). Capped at 1800s (30 minutes)."}}},"example":{"command":[["string"]],"timeout_seconds":[0]}}}}}},"/v1/sandboxes/{sandbox_id}/fs/content":{"put":{"tags":["Sandboxes"],"parameters":[{"name":"sandbox_id","in":"path","description":"sandbox_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"path","in":"query","description":"path (query parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/write-file.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes/{sandbox_id}/fs/content"},"summary":"Write File","description":"Write File | Write the raw request body (application/octet-stream, max 100 MiB) to an absolute path inside the sandbox. | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}},"get":{"tags":["Sandboxes"],"parameters":[{"name":"sandbox_id","in":"path","description":"sandbox_id (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"path","in":"query","description":"path (query parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"x-api-key","in":"query","description":"x-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"xi-api-key","in":"query","description":"xi-api-key (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/sandboxes/read-file.md","api_endpoint":"https://api.deepinfra.com/v1/sandboxes/{sandbox_id}/fs/content"},"summary":"Read File","description":"Read File | Read a file from an absolute path inside the sandbox; returns raw bytes (application/octet-stream). | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/payment/checklist":{"get":{"tags":["Billing"],"parameters":[{"name":"compute_owed","in":"query","description":"compute_owed (query parameter from the official API reference)","required":false,"schema":{"type":"boolean","example":"","items":{"type":"string","enum":[true,false]}}},{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/get-checklist.md","api_endpoint":"https://api.deepinfra.com/payment/checklist"},"summary":"Get Checklist","description":"Get Checklist | Get Checklist | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/payment/config":{"get":{"tags":["Billing"],"parameters":[{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/get-config.md","api_endpoint":"https://api.deepinfra.com/payment/config"},"summary":"Get Config","description":"Get Config | Get Config | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]},"post":{"tags":["Billing"],"parameters":[{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/set-config.md","api_endpoint":"https://api.deepinfra.com/payment/config"},"summary":"Set Config","description":"Set Config | Set Config | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"limit":{"type":"number","description":"Set usage limit (in USD). Negative means no limit.null/not-set means don't change it"}}},"example":{"limit":[0]}}}}}},"/payment/billing-portal":{"get":{"tags":["Billing"],"parameters":[{"name":"return_url","in":"query","description":"return_url (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/billing-portal.md","api_endpoint":"https://api.deepinfra.com/payment/billing-portal"},"summary":"Billing Portal","description":"Billing Portal | Billing Portal | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/payment/invoices":{"get":{"tags":["Billing"],"parameters":[{"name":"invoice_type","in":"query","description":"invoice_type (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"limit (query parameter from the official API reference)","required":false,"schema":{"type":"number","example":""}},{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"starting_after","in":"query","description":"starting_after (query parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/list-invoices.md","api_endpoint":"https://api.deepinfra.com/payment/invoices"},"summary":"List Invoices","description":"List Invoices | List Invoices | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/payment/usage":{"get":{"tags":["Billing"],"parameters":[{"name":"from","in":"query","description":"start of period in YYYY.MM, current(-N), unix_timestamp (in seconds, UTC) format","required":true,"schema":{"type":"string","example":""}},{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"to","in":"query","description":"end of period (if missing a single month marked by from is return), same format as from","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/usage.md","api_endpoint":"https://api.deepinfra.com/payment/usage"},"summary":"Usage","description":"Usage | Usage | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/payment/usage/tokens":{"get":{"tags":["Billing"],"parameters":[{"name":"from","in":"query","description":"start of period in YYYY.MM, current(-N), unix_timestamp (in seconds, UTC) format","required":true,"schema":{"type":"string","example":""}},{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"to","in":"query","description":"end of period (if missing a single month marked by from is return), same format as from","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/usage-tokens.md","api_endpoint":"https://api.deepinfra.com/payment/usage/tokens"},"summary":"Usage Tokens","description":"Usage Tokens | Usage Tokens | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/payment/usage/rent":{"get":{"tags":["Billing"],"parameters":[{"name":"from","in":"query","description":"start of period, in seconds since unix epoch","required":true,"schema":{"type":"number","example":""}},{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"to","in":"query","description":"end of period, in seconds since unix epoch","required":false,"schema":{"type":"number","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/usage-rent.md","api_endpoint":"https://api.deepinfra.com/payment/usage/rent"},"summary":"Usage Rent","description":"Usage Rent | Usage Rent | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/payment/usage/{api_token}":{"get":{"tags":["Billing"],"parameters":[{"name":"api_token","in":"path","description":"api_token (path parameter from the official API reference)","required":true,"schema":{"type":"string","example":""}},{"name":"from","in":"query","description":"start of period in YYYY.MM, current(-N), unix_timestamp (in seconds, UTC) format","required":true,"schema":{"type":"string","example":""}},{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"to","in":"query","description":"end of period (if missing a single month marked by from is return), same format as from","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/usage-api-token.md","api_endpoint":"https://api.deepinfra.com/payment/usage/{api_token}"},"summary":"Usage Api Token","description":"Usage Api Token | Usage Api Token | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}]}},"/payment/deepstart/application":{"post":{"tags":["Billing"],"parameters":[{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/deepstart-apply.md","api_endpoint":"https://api.deepinfra.com/payment/deepstart/application"},"summary":"Deepstart Apply","description":"Deepstart Apply | Deepstart Apply | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"ceo":{"type":"string","description":"body.ceo (string field from the documented request schema)","required":true},"company":{"type":"string","description":"body.company (string field from the documented request schema)","required":true},"created_at":{"type":"number","description":"body.created_at (number field from the documented request schema)"},"deal":{"type":"string","description":"body.deal (string field from the documented request schema)"},"founded_on":{"type":"string","description":"body.founded_on (string field from the documented request schema)","required":true},"funding":{"type":"string","description":"body.funding (string field from the documented request schema)","required":true},"id":{"type":"string","description":"body.id (string field from the documented request schema)"},"status":{"type":"string","description":"body.status (string field from the documented request schema)"},"uid":{"type":"string","description":"body.uid (string field from the documented request schema)"},"website":{"type":"string","description":"body.website (string field from the documented request schema)","required":true}}},"example":{"ceo":["string"],"company":["string"],"created_at":[0],"deal":["string"],"founded_on":["string"],"funding":["string"],"id":["string"],"status":["pending"],"uid":["string"],"website":["string"]}}}}}},"/payment/funds":{"post":{"tags":["Billing"],"parameters":[{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}},{"name":"use_checkout","in":"query","description":"use_checkout (query parameter from the official API reference)","required":false,"schema":{"type":"boolean","example":"","items":{"type":"string","enum":[true,false]}}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/add-funds.md","api_endpoint":"https://api.deepinfra.com/payment/funds"},"summary":"Add Funds","description":"Add Funds | Add Funds | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"amount":{"type":"number","description":"Amount to add in cents","required":true}}},"example":{"amount":[0]}}}}}},"/payment/topup":{"post":{"tags":["Billing"],"parameters":[{"name":"session","in":"query","description":"session (path parameter from the official API reference)","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.deepinfra.com/api-reference/billing/setup-topup.md","api_endpoint":"https://api.deepinfra.com/payment/topup"},"summary":"Setup Topup","description":"Setup Topup | Setup Topup | Source: official OpenAPI spec at https://api.deepinfra.com/openapi.json","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"amount":{"type":"number","description":"Amount to top up in cents"},"enabled":{"type":"boolean","description":"If true, top up will be triggered when balance goes below threshold","enum":[true,false]},"threshold":{"type":"number","description":"Top up threshold in cents, if balance goes below this value, top up will be triggered"}}},"example":{"amount":[0],"enabled":[true],"threshold":[0]}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}]}