How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

xAI Videos API

The Videos API from xAI — 4 operation(s) for videos.

xAI Videos API is one of 17 APIs that xAI publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Video. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and an AsyncAPI specification.

This API exposes 4 operations across 4 paths, and defines 14 schemas. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against the base URL https://api.x.ai/v1.

4 operations 4 paths 14 schemas 1 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Base URL
https://api.x.ai/v1
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

xAI Videos API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerAuth).

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 1 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

Videos 4
POST
/v1/videos/edits
Edit a video based on a prompt.
handle_edit_video_request body → 200400422
POST
/v1/videos/extensions
Extend a video by generating continuation content.
handle_extend_video_request body → 200400422
POST
/v1/videos/generations
Generate a video from a text prompt and optionally an image.
handle_generate_video_request body → 200400422
GET
/v1/videos/{request_id}
Get the result of a deferred video generation request
handle_get_deferred_video_request 1 param → 200202400404

Schemas 14

The contract defines 14 schemas that model the data the API accepts and returns. The most detailed are GenerateVideoRequest (9 properties), VideoResponse (6 properties), ExtendVideoRequest (5 properties), EditVideoRequest (5 properties). Each schema is shown below with its type and property counts.

VideoOutput
object
Output destination for generated video.
1 property 1 required
VideoAspectRatio
string
Aspect ratio for video generation.
GeneratedVideo
object
Generated video.
3 properties 2 required
VideoResponse
object
Video generation response.
6 properties 2 required
VideoErrorCode
string
Machine-readable error codes for video generation failures. These are the codes that can appear in VideoError.code when polling a deferred video generation res…
VideoUrl
object
Video input for editing and extension requests. Accepts a public URL, a base64-encoded data URL, or a fileid from the xAI Files API.
2 properties
MediaUsage
object
Billing and cost information for media generation requests (image and video).
1 property 1 required
EditVideoRequest
object
Request for editing video for /v1/videos/edits endpoint
5 properties 2 required
ImageUrl
object
Image input for generation and editing requests. Accepts a public URL, a base64-encoded data URL, or a fileid from the xAI Files API.
2 properties
VideoError
object
Structured error returned when video generation fails.
2 properties 2 required
StartDeferredResponse
object
Response for starting a deferred operation.
1 property 1 required
VideoResolution
string
Resolution for video generation.
ExtendVideoRequest
object
Request for extending a video for /v1/videos/extensions endpoint
5 properties 2 required
GenerateVideoRequest
object
Request to generate video for /v1/videos/generations endpoint
9 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

xai-videos-api-openapi.yml Raw ↑

Other APIs xAI publishes across the network.

xAI Api Key API
xAI Chat API
xAI Complete API
xAI Completions API
xAI Documents API
xAI Embedding Models API
xAI Embeddings API
xAI Files API
xAI Image Generation Models API
xAI Images API
xAI Language Models API
xAI Messages API
Where this information came from

This is an independent, third-party profile of xAI Videos API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.