DeepInfra Inference API
Native DeepInfra inference API for models and deployments.
Native DeepInfra inference API for models and deployments.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/deepinfra:deepinfra-inference-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: DeepInfra Inference API
description: The DeepInfra API provides serverless AI inference, custom model deployments, and GPU rentals.
version: 1.0.0
servers:
- url: https://api.deepinfra.com
tags:
- name: Inference
description: Native DeepInfra inference API for models and deployments.
paths:
/v1/inference/deploy/{deploy_id}:
post:
tags:
- Inference
summary: Inference Deploy
operationId: inference_deploy_v1_inference_deploy__deploy_id__post
security:
- HTTPBearer: []
parameters:
- name: deploy_id
in: path
required: true
schema:
type: string
title: Deploy Id
- name: xi-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Xi-Api-Key
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/DeepError'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/DeepError'
description: Not Found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/inference/{model_name}:
post:
tags:
- Inference
summary: Inference Model
operationId: inference_model_v1_inference__model_name__post
security:
- HTTPBearer: []
parameters:
- name: model_name
in: path
required: true
schema:
type: string
title: Model Name
- name: version
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: model version to run inference against
title: Version
description: model version to run inference against
- name: xi-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Xi-Api-Key
- name: x-api-key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/DeepError'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/DeepError'
description: Not Found
'423':
content:
application/json:
schema:
$ref: '#/components/schemas/DeepError'
description: Locked
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
DeepError:
properties:
error:
type: string
title: Error
description: Error
examples:
- Model not found
type: object
required:
- error
title: DeepError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer