DeepInfra Videos API
The Videos API from DeepInfra — 6 operation(s) for videos.
The Videos API from DeepInfra — 6 operation(s) for videos.
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-videos-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 Videos 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: Videos
paths:
/v1/videos:
post:
tags:
- Videos
summary: Create Video Generation
operationId: create_video_generation_v1_videos_post
security:
- HTTPBearer: []
parameters:
- 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
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VideoGenerationIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VideoGenerationOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/openai/videos:
post:
tags:
- Videos
summary: Create Video Generation
operationId: create_video_generation_v1_openai_videos_post
security:
- HTTPBearer: []
parameters:
- 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
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/VideoGenerationIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VideoGenerationOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/videos/{video_id}:
get:
tags:
- Videos
summary: Get Video Generation
operationId: get_video_generation_v1_videos__video_id__get
security:
- HTTPBearer: []
parameters:
- name: video_id
in: path
required: true
schema:
type: string
title: Video 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:
$ref: '#/components/schemas/VideoGenerationOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/openai/videos/{video_id}:
get:
tags:
- Videos
summary: Get Video Generation
operationId: get_video_generation_v1_openai_videos__video_id__get
security:
- HTTPBearer: []
parameters:
- name: video_id
in: path
required: true
schema:
type: string
title: Video 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:
$ref: '#/components/schemas/VideoGenerationOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/videos/{video_id}/content:
get:
tags:
- Videos
summary: Get Video Content
operationId: get_video_content_v1_videos__video_id__content_get
security:
- HTTPBearer: []
parameters:
- name: video_id
in: path
required: true
schema:
type: string
title: Video Id
- name: variant
in: query
required: false
schema:
type: string
default: video
title: Variant
- 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: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/openai/videos/{video_id}/content:
get:
tags:
- Videos
summary: Get Video Content
operationId: get_video_content_v1_openai_videos__video_id__content_get
security:
- HTTPBearer: []
parameters:
- name: video_id
in: path
required: true
schema:
type: string
title: Video Id
- name: variant
in: query
required: false
schema:
type: string
default: video
title: Variant
- 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: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
VideoGenerationIn:
properties:
model:
type: string
title: Model
prompt:
type: string
title: Prompt
negative_prompt:
anyOf:
- type: string
- type: 'null'
title: Negative Prompt
aspect_ratio:
anyOf:
- type: string
- type: 'null'
title: Aspect Ratio
size:
anyOf:
- type: string
- type: 'null'
title: Size
seconds:
anyOf:
- type: integer
- type: 'null'
title: Seconds
seed:
anyOf:
- type: integer
- type: 'null'
title: Seed
style:
anyOf:
- type: string
- type: 'null'
title: Style
image_url:
anyOf:
- type: string
- type: 'null'
title: Image Url
description: 'First-frame image for image-to-video (i2v): an http(s) URL or a data: URI. Omit for text-to-video.'
type: object
required:
- model
- prompt
title: VideoGenerationIn
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
VideoGenerationOut:
properties:
id:
type: string
title: Id
object:
type: string
title: Object
default: video.generation.job
created_at:
type: integer
title: Created At
status:
type: string
title: Status
model:
type: string
title: Model
data:
anyOf:
- items:
additionalProperties: true
type: object
type: array
- type: 'null'
title: Data
error:
anyOf:
- type: string
- type: 'null'
title: Error
type: object
required:
- id
- created_at
- status
- model
title: VideoGenerationOut
securitySchemes:
HTTPBearer:
type: http
scheme: bearer